|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.mss.RoutingTable
public final class RoutingTable
The RoutingTable
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 |
Constructor Summary | |
---|---|
RoutingTable()
Default constructor for externalization |
|
RoutingTable(jgroup.relacs.mss.ClusterTable ct,
int threshold)
|
Method Summary | |
---|---|
int |
getMarshalSize()
Returns the number of bytes required to marshal this routing table instance. |
static int |
getMaxSize(int numOfHosts,
int numOfClusters)
Returns the maximum number of bytes required to marshal a routing table instance, when the reachability set includes all hosts in the system. |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
void |
splitHorizonOff()
Reverts all negative routing costs to positive. |
void |
splitHorizonOn(EndPoint key)
Negate the cost as reverse poison |
java.lang.String |
toString()
Returns a string representation of this object |
boolean |
updateReachability()
Updates the reachability information for all clusters in the clustertable. |
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RoutingTable()
public RoutingTable(jgroup.relacs.mss.ClusterTable ct, int threshold)
Method Detail |
---|
public int getMarshalSize()
public static int getMaxSize(int numOfHosts, int numOfClusters)
public boolean updateReachability()
public void splitHorizonOn(EndPoint key)
public void splitHorizonOff()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- the stream to be read
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- the stream to be written
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |