public final class EndpointQualifier extends Object implements IdentifiedDataSerializable
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.AdvancedNetworkConfig
,
EndpointConfig
Modifier and Type | Field and Description |
---|---|
static EndpointQualifier |
CLIENT |
static EndpointQualifier |
MEMBER |
static EndpointQualifier |
MEMCACHE |
static EndpointQualifier |
REST |
Constructor and Description |
---|
EndpointQualifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getIdentifier() |
ProtocolType |
getType() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
static EndpointQualifier |
resolve(ProtocolType protocolType,
String name) |
String |
toMetricsPrefixString() |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final EndpointQualifier MEMBER
public static final EndpointQualifier CLIENT
public static final EndpointQualifier REST
public static final EndpointQualifier MEMCACHE
public String getIdentifier()
public ProtocolType getType()
public String toMetricsPrefixString()
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.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 int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public static EndpointQualifier resolve(ProtocolType protocolType, String name)
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.