|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.mss.MssHost
public class MssHost
The MssHost
class
Field Summary |
---|
Fields inherited from interface jgroup.relacs.mss.MssConstants |
---|
ALL, EHANDLER_PRIORITY, HEADER_SIZE, MINIMUM_ALIVE_VALUE, MSS_HEADER_SIZE, MSSUSER_PRIORITY, NACKSUPPRESSION, NI_PRIORITY, OVERHEAD_SIZE, ROUTING_ENABLED, TRAILER_SIZE, UNDEF, UNREACHABLE |
Fields inherited from interface jgroup.relacs.mss.MssTag |
---|
ASYN, CONGESTION, EXTERNFC, FWDROUTING, IAMALIVE, JG, LOCALFC, NACK, NOTLASTFRAGMENT, PING_OBJECT, QSYN, REMOTENACK, ROUTING, SENT, SENTNACK, SYN, TAGTYPE, TOPOLOGY |
Constructor Summary | |
---|---|
MssHost(TransportConfig config,
EndPoint hostEndPoint,
jgroup.relacs.mss.NI ni,
jgroup.relacs.mss.Cluster cluster,
EventHandler ehandler)
Builds a host object identified by hostEndPoint . |
Method Summary | |
---|---|
void |
abortTimeout()
Aborts the timeout that has been set up for performing periodic synchronization ping. |
boolean |
checkSynId(int msgId)
Checks if the given message identifier corresponds to the last SYN message sent from this host. |
boolean |
equals(java.lang.Object obj)
Compares two objects for content equality. |
void |
flush()
Flush the sent queue up until the last message ACKed. |
void |
flush(int lastMsgAcked)
Flush the sent queue up until the last message ACKed. |
jgroup.relacs.mss.Cluster |
getCluster()
|
int |
getClusterIndex()
Get this host's position (index) in the cluster. |
EndPoint |
getEndPoint()
|
int |
getIncarnationId()
|
int |
getIndex()
Get this host's position (index) in the hosttable. |
jgroup.relacs.mss.MsgFlowRcvrSide |
getMsgFlow()
|
int |
getTimeout()
Returns the timeout value associated with this host. |
int |
hashCode()
Returns a hash code value for this host. |
boolean |
isIn(jgroup.relacs.mss.Cluster theCluster)
Returns true if this host is in the given cluster; otherwise false is returned. |
boolean |
isLocal()
|
boolean |
isReachable()
Returns true if this host is considered reachable. |
boolean |
isReachable(int threshold)
Returns true if this host is considered reachable within the given threshold . |
void |
printReachParams()
Method used to print the reachability and timeout parameters associated with this host, if they have changed since its last invocation. |
void |
scheduleTimeout()
Schedule a timer for the synchronization (QSYN) message sent to this member. |
void |
setAsReachable()
Mark this host as reachable. |
void |
setClusterIndex(int index)
Set this host's position (index) in the cluster. |
void |
setIncarnationId(int incarnationId)
|
void |
setIndex(int index)
Set this host's position (index) in the hosttable. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
updateTimeout(int t)
Recompute the round-trip timeout, standard deviation and timeout values associated with this host. |
boolean |
wasReachable()
Returns true if this host was reachable on prior to the last reachability update. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MssHost(TransportConfig config, EndPoint hostEndPoint, jgroup.relacs.mss.NI ni, jgroup.relacs.mss.Cluster cluster, EventHandler ehandler) throws ConfigurationException
hostEndPoint
.
ConfigurationException
Method Detail |
---|
public EndPoint getEndPoint()
public boolean isLocal()
public int getIncarnationId()
public void setIncarnationId(int incarnationId)
public boolean isIn(jgroup.relacs.mss.Cluster theCluster)
public jgroup.relacs.mss.Cluster getCluster()
public int getClusterIndex()
public void setClusterIndex(int index)
public void setIndex(int index)
public int getIndex()
public int getTimeout()
public void updateTimeout(int t)
t
- an int
valuepublic void abortTimeout()
public void scheduleTimeout()
public boolean checkSynId(int msgId)
msgId
- The message identifier to check if was the last SYN message sent.
MssHost
is equal to the given message identifier; otherwise false
is returned.public boolean isReachable(int threshold)
threshold
.
public boolean isReachable()
threshold
equal to
MINIMUM_ALIVE_VALUE
.
public boolean wasReachable()
public void setAsReachable()
public void flush()
public void flush(int lastMsgAcked)
lastMsgAcked
- The last message ACKed.public jgroup.relacs.mss.MsgFlowRcvrSide getMsgFlow()
public void printReachParams()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |