| org.apache.catalina.tribes.Member
All known Subclasses: org.apache.catalina.tribes.membership.MemberImpl,
Member | public interface Member (Code) | | 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
author: Filip Hanik version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Field Summary | |
final public static byte[] | SHUTDOWN_PAYLOAD When a member leaves the cluster, the payload of the memberDisappeared member
will be the following bytes. |
SHUTDOWN_PAYLOAD | final public static byte[] SHUTDOWN_PAYLOAD(Code) | | When a member leaves the cluster, the payload of the memberDisappeared member
will be the following bytes. This indicates a soft shutdown, and not a crash
|
getCommand | public byte[] getCommand()(Code) | | returns the command associated with this member
byte[] |
getDomain | public byte[] getDomain()(Code) | | Domain for this cluster
byte[] |
getHost | public byte[] getHost()(Code) | | Returns the listen host for the ChannelReceiver implementation
IPv4 or IPv6 representation of the host address this member listens to incoming data See Also: ChannelReceiver |
getMemberAliveTime | public long getMemberAliveTime()(Code) | | Contains information on how long this member has been online.
The result is the number of milli seconds this member has been
broadcasting its membership to the group.
nr of milliseconds since this member started. |
getName | public String getName()(Code) | | Returns the name of this node, should be unique within the group.
|
getPayload | public byte[] getPayload()(Code) | | returns the payload associated with this member
byte[] |
getPort | public int getPort()(Code) | | Returns the listen port for the ChannelReceiver implementation
the listen port for this member, -1 if its not listening on an unsecure port See Also: ChannelReceiver |
getSecurePort | public int getSecurePort()(Code) | | Returns the secure listen port for the ChannelReceiver implementation.
Returns -1 if its not listening to a secure port.
the listen port for this member, -1 if its not listening on a secure port See Also: ChannelReceiver |
getUniqueId | public byte[] getUniqueId()(Code) | | returns a UUID unique for this member over all sessions.
If the member crashes and restarts, the uniqueId will be different.
byte[] |
isFailing | public boolean isFailing()(Code) | | boolean - true if the member has been confirmed to malfunction |
isReady | public boolean isReady()(Code) | | The current state of the member
boolean - true if the member is functioning correctly |
isSuspect | public boolean isSuspect()(Code) | | The current state of the member
boolean - true if the member is suspect, but the crash has not been confirmed |
|
|