public class JoinMessage extends Object implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
protected Address |
address |
protected int |
buildNumber |
protected ConfigCheck |
configCheck |
protected int |
dataMemberCount |
protected boolean |
liteMember |
protected Collection<Address> |
memberAddresses |
protected MemberVersion |
memberVersion
this is populated with the codebase version of the node trying to join the cluster
(ie
Node.getVersion() ). |
protected byte |
packetVersion |
protected String |
uuid |
Constructor and Description |
---|
JoinMessage() |
JoinMessage(byte packetVersion,
int buildNumber,
MemberVersion memberVersion,
Address address,
String uuid,
boolean liteMember,
ConfigCheck configCheck) |
JoinMessage(byte packetVersion,
int buildNumber,
MemberVersion memberVersion,
Address address,
String uuid,
boolean liteMember,
ConfigCheck configCheck,
Collection<Address> memberAddresses,
int dataMemberCount) |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
int |
getBuildNumber() |
ConfigCheck |
getConfigCheck() |
int |
getDataMemberCount() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Collection<Address> |
getMemberAddresses() |
int |
getMemberCount() |
MemberVersion |
getMemberVersion() |
byte |
getPacketVersion() |
String |
getUuid() |
boolean |
isLiteMember() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected byte packetVersion
protected int buildNumber
protected MemberVersion memberVersion
Node.getVersion()
).protected Address address
protected String uuid
protected boolean liteMember
protected ConfigCheck configCheck
protected Collection<Address> memberAddresses
protected int dataMemberCount
public JoinMessage()
public JoinMessage(byte packetVersion, int buildNumber, MemberVersion memberVersion, Address address, String uuid, boolean liteMember, ConfigCheck configCheck)
public JoinMessage(byte packetVersion, int buildNumber, MemberVersion memberVersion, Address address, String uuid, boolean liteMember, ConfigCheck configCheck, Collection<Address> memberAddresses, int dataMemberCount)
public byte getPacketVersion()
public int getBuildNumber()
public MemberVersion getMemberVersion()
public Address getAddress()
public String getUuid()
public boolean isLiteMember()
public ConfigCheck getConfigCheck()
public int getMemberCount()
public Collection<Address> getMemberAddresses()
public int getDataMemberCount()
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
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.