Package com.hazelcast.config
Class AliasedDiscoveryConfig<T extends AliasedDiscoveryConfig<T>>
java.lang.Object
com.hazelcast.config.AliasedDiscoveryConfig<T>
- Type Parameters:
- T- Subclass that extends- AliasedDiscoveryConfig.
- All Implemented Interfaces:
- DataSerializable,- IdentifiedDataSerializable
- Direct Known Subclasses:
- AwsConfig,- AzureConfig,- EurekaConfig,- GcpConfig,- KubernetesConfig
public abstract class AliasedDiscoveryConfig<T extends AliasedDiscoveryConfig<T>>
extends Object
implements IdentifiedDataSerializable
Configuration for discovery strategy aliases, e.g. <gcp>.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionAliasedDiscoveryConfig(AliasedDiscoveryConfig aliasedDiscoveryConfig) protectedAliasedDiscoveryConfig(String tag, boolean enabled, boolean usePublicIp, Map<String, String> properties) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintReturns DataSerializableFactory factory ID for this class.Returns all properties.getProperty(String name) Returns property value by the property name.getTag()inthashCode()booleanChecks whether the given join mechanism is enabled.booleanChecks whether the public or private IP should be used to connect to Hazelcast members.voidReads fields from the input streamsetEnabled(boolean enabled) Enables or disables the join mechanism based on the given discovery config.setProperty(String name, String value) Sets the property understood by the given SPI Discovery Strategy.setUsePublicIp(boolean usePublicIp) Decides whether the public or private IP should be used to connect to Hazelcast members.toString()voidWrites object fields to output streamMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializablegetClassId
- 
Constructor Details- 
AliasedDiscoveryConfig
- 
AliasedDiscoveryConfig
- 
AliasedDiscoveryConfig
 
- 
- 
Method Details- 
setEnabledEnables or disables the join mechanism based on the given discovery config.- Parameters:
- enabled-- trueif enabled
- Returns:
- the updated discovery config
 
- 
isEnabledpublic boolean isEnabled()Checks whether the given join mechanism is enabled.- Returns:
- trueif enabled
 
- 
setPropertySets the property understood by the given SPI Discovery Strategy.Note that it interprets and stores as fields the following properties: "enabled", "use-public-ip". - Parameters:
- name- property name
- value- property value
- Returns:
- the updated discovery config
 
- 
getPropertyReturns property value by the property name.- Parameters:
- name- property name
- Returns:
- property value
 
- 
getPropertiesReturns all properties.- Returns:
- all properties
 
- 
setUsePublicIpDecides whether the public or private IP should be used to connect to Hazelcast members.- Parameters:
- usePublicIp-- truefor public IP,- falsefor private IP
- Returns:
- the updated discovery config
 
- 
isUsePublicIppublic boolean isUsePublicIp()Checks whether the public or private IP should be used to connect to Hazelcast members.- Returns:
- truefor public IP,- falsefor private IP
 
- 
getTag
- 
toString
- 
getFactoryIdpublic int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
- getFactoryIdin interface- IdentifiedDataSerializable
- Returns:
- factory ID
 
- 
writeDataDescription copied from interface:DataSerializableWrites object fields to output stream- Specified by:
- writeDatain interface- DataSerializable
- Parameters:
- out- output
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the output stream has been closed.
 
- 
readDataDescription copied from interface:DataSerializableReads fields from the input stream- Specified by:
- readDatain interface- DataSerializable
- Parameters:
- in- input
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the input stream has been closed.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-