T
- Subclass that extends AliasedDiscoveryConfig
.public abstract class AliasedDiscoveryConfig<T extends AliasedDiscoveryConfig<T>> extends Object implements IdentifiedDataSerializable
Modifier | Constructor and Description |
---|---|
|
AliasedDiscoveryConfig(AliasedDiscoveryConfig aliasedDiscoveryConfig) |
protected |
AliasedDiscoveryConfig(String tag) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
Map<String,String> |
getProperties()
Returns all properties.
|
String |
getProperty(String name)
Returns property value by the property name.
|
String |
getTag() |
int |
hashCode() |
boolean |
isEnabled()
Checks whether the given join mechanism is enabled.
|
boolean |
isUsePublicIp()
Checks whether the public or private IP should be used to connect to Hazelcast members.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
T |
setEnabled(boolean enabled)
Enables or disables the join mechanism based on the given discovery config.
|
T |
setProperty(String name,
String value)
Sets the property understood by the given SPI Discovery Strategy.
|
T |
setUsePublicIp(boolean usePublicIp)
Decides whether the public or private IP should be used to connect to Hazelcast members.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClassId
protected AliasedDiscoveryConfig(String tag)
public AliasedDiscoveryConfig(AliasedDiscoveryConfig aliasedDiscoveryConfig)
public T setEnabled(boolean enabled)
enabled
- true
if enabledpublic boolean isEnabled()
true
if enabledpublic T setProperty(String name, String value)
Note that it interprets and stores as fields the following properties: "enabled", "use-public-ip".
name
- property namevalue
- property valuepublic String getProperty(String name)
name
- property namepublic Map<String,String> getProperties()
public T setUsePublicIp(boolean usePublicIp)
usePublicIp
- true
for public IP, false
for private IPpublic boolean isUsePublicIp()
true
for public IP, false
for private IPpublic String getTag()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2024 Hazelcast, Inc.. All rights reserved.