Package com.hazelcast.instance
Class EndpointQualifier
java.lang.Object
com.hazelcast.instance.EndpointQualifier
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public final class EndpointQualifier extends Object implements IdentifiedDataSerializable
An
EndpointQualifier
is a (ProtocolType, String)
tuple that uniquely identifies groups
of network connections sharing a common ProtocolType
and the same network settings, when Hazelcast
is configured with AdvancedNetworkConfig
enabled.
In some cases, just the ProtocolType
is enough (eg since there can be only a single
MEMBER
server socket, there can be only one instance of
ServerSocketEndpointConfig
network
configuration for MEMBER
connections).
When just the ProtocolType
is not enough (for example when configuring outgoing WAN
connections to 2 different target clusters), a String identifier
is used to uniquely
identify the network configuration.
- Since:
- 3.12
- See Also:
AdvancedNetworkConfig
,EndpointConfig
-
Field Summary
Fields Modifier and Type Field Description static EndpointQualifier
CLIENT
static EndpointQualifier
MEMBER
static EndpointQualifier
MEMCACHE
static EndpointQualifier
REST
-
Constructor Summary
Constructors Constructor Description EndpointQualifier()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getClassId()
Returns type identifier for this class.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.String
getIdentifier()
ProtocolType
getType()
int
hashCode()
void
readData(ObjectDataInput in)
Reads fields from the input streamstatic EndpointQualifier
resolve(ProtocolType protocolType, String identifier)
static EndpointQualifier
resolveForConfig(ProtocolType protocolType, String identifier)
String
toMetricsPrefixString()
String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
Field Details
-
MEMBER
-
CLIENT
-
REST
-
MEMCACHE
-
-
Constructor Details
-
EndpointQualifier
public EndpointQualifier()
-
-
Method Details
-
getIdentifier
-
getType
-
equals
-
hashCode
public int hashCode() -
toMetricsPrefixString
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
toString
-
resolveForConfig
- Returns:
- resolved endpoint qualifier when it is passed from the user via configuration
-
resolve
-