|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Member
The Member interface, defines a member in the group.
Each member can carry a set of properties, defined by the actual implementation.
A member is identified by the host/ip/uniqueId
The host is what interface the member is listening to, to receive data
The port is what port the member is listening to, to receive data
The uniqueId defines the session id for the member. This is an important feature
since a member that has crashed and the starts up again on the same port/host is
not guaranteed to be the same member, so no state transfers will ever be confused
Field Summary | |
---|---|
static byte[] |
SHUTDOWN_PAYLOAD
When a member leaves the cluster, the payload of the memberDisappeared member will be the following bytes. |
Method Summary | |
---|---|
byte[] |
getCommand()
returns the command associated with this member |
byte[] |
getDomain()
Domain for this cluster |
byte[] |
getHost()
Returns the listen host for the ChannelReceiver implementation |
long |
getMemberAliveTime()
Contains information on how long this member has been online. |
String |
getName()
Returns the name of this node, should be unique within the group. |
byte[] |
getPayload()
returns the payload associated with this member |
int |
getPort()
Returns the listen port for the ChannelReceiver implementation |
int |
getSecurePort()
Returns the secure listen port for the ChannelReceiver implementation. |
int |
getUdpPort()
Returns the UDP port that this member is listening to for UDP messages. |
byte[] |
getUniqueId()
returns a UUID unique for this member over all sessions. |
boolean |
isFailing()
|
boolean |
isReady()
The current state of the member |
boolean |
isSuspect()
The current state of the member |
Field Detail |
---|
static final byte[] SHUTDOWN_PAYLOAD
Method Detail |
---|
String getName()
byte[] getHost()
ChannelReceiver
int getPort()
ChannelReceiver
int getSecurePort()
ChannelReceiver
int getUdpPort()
long getMemberAliveTime()
boolean isReady()
boolean isSuspect()
boolean isFailing()
byte[] getUniqueId()
byte[] getPayload()
byte[] getCommand()
byte[] getDomain()
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |