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.Streamable
IOException
public void readFrom(DataInput in) throws IOException
readFrom
in interface org.jgroups.util.Streamable
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2010-2014. All Rights Reserved.