public class JoinMessage extends Object implements org.jgroups.util.Streamable, Externalizable
loadFactor. Upon receiving this message, members should recalculate their Consistent Hash Ring,
including this member.| Constructor and Description |
|---|
JoinMessage()
Default constructor required by the
Streamable and Externalizable interfaces. |
JoinMessage(int loadFactor,
Set<String> commandNames)
Initializes a JoinMessage with the given
loadFactor. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getCommandNames()
Returns a read-only view on the Command Names supported by the joining member.
|
int |
getLoadFactor()
Returns the loadFactor the member wishes to join with.
|
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in) |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out) |
public JoinMessage()
Streamable and Externalizable interfaces. Do not use
directly.public int getLoadFactor()
public Set<String> getCommandNames()
public void writeTo(DataOutput out) throws IOException
writeTo in interface org.jgroups.util.StreamableIOExceptionpublic void readFrom(DataInput in) throws IOException
readFrom in interface org.jgroups.util.StreamableIOExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2010-2014. All Rights Reserved.