|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.commandhandling.distributed.jgroups.JoinMessage
public class JoinMessage
This message represents a notification of a Member joining the DistributedCommandBus with a given
loadFactor. Upon receiving this message, members should recalculate their Consistent Hash Ring,
including this member.
| Constructor Summary | |
|---|---|
JoinMessage()
Default constructor required by the Streamable and Externalizable interfaces. |
|
JoinMessage(int loadFactor,
Set<String> commandNames)
Initializes a JoinMessage with the given loadFactor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoinMessage()
Streamable and Externalizable interfaces. Do not use
directly.
public JoinMessage(int loadFactor,
Set<String> commandNames)
loadFactor.
loadFactor - The loadFactor the member wishes to join withcommandNames - The command types supported by this node as fully qualified class names.| Method Detail |
|---|
public int getLoadFactor()
public Set<String> getCommandNames()
public void writeTo(DataOutput out)
throws IOException
writeTo in interface org.jgroups.util.StreamableIOException
public void readFrom(DataInput in)
throws IOException
readFrom in interface org.jgroups.util.StreamableIOException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||