| java.lang.Object org.apache.catalina.cluster.mcast.McastMember
MEMBER_NAME | final public static transient String MEMBER_NAME(Code) | | |
TCP_LISTEN_HOST | final public static transient String TCP_LISTEN_HOST(Code) | | |
TCP_LISTEN_PORT | final public static transient String TCP_LISTEN_PORT(Code) | | Public properties specific to this implementation
|
digits | final static transient char[] digits(Code) | | Digits, used for "superfast" de-serialization of an
IP address
|
host | protected String host(Code) | | The listen host for this member
|
memberAliveTime | protected long memberAliveTime(Code) | | The number of milliseconds since this members was
created, is kept track of using the start time
|
msgCount | protected int msgCount(Code) | | Counter for how many messages have been sent from this member
|
port | protected int port(Code) | | The tcp listen port for this member
|
McastMember | public McastMember(String name, String host, int port, long aliveTime)(Code) | | Construct a new member object
Parameters: name - - the name of this member, cluster unique Parameters: host - - the tcp listen host Parameters: port - - the tcp listen port |
equals | public boolean equals(Object o)(Code) | | Returns true if the param o is a McastMember with the same name
Parameters: o - |
getData | protected byte[] getData(long startTime) throws Exception(Code) | | Create a data package to send over the wire representing this member.
This is faster than serialization.
- the bytes for this member deserialized throws: Exception - |
getHost | public String getHost()(Code) | | Return the TCP listen host for this member
IP address or host name |
getMember | protected static McastMember getMember(byte[] data)(Code) | | Deserializes a member from data sent over the wire
Parameters: data - - the bytes received a member object. |
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 cluster.
nr of milliseconds since this member started. |
getMemberProperties | public java.util.HashMap getMemberProperties()(Code) | | a Hashmap containing the following properties: 1. tcpListenPort - the port this member listens to for messages - string 2. tcpListenHost - the host address of this member - string 3. memberName - the name of this member - string
|
getName | public String getName()(Code) | | Return the name of this object
a unique name to the cluster |
getPort | public int getPort()(Code) | | Return the listen port of this member
- tcp listen port |
inc | protected void inc()(Code) | | Increment the message count.
|
setMemberAliveTime | public void setMemberAliveTime(long time)(Code) | | |
setMsgCount | public void setMsgCount(int msgCount)(Code) | | |
setPort | public void setPort(int port)(Code) | | |
toString | public String toString()(Code) | | String representation of this object
|
|
|