Rice Pastry API

rice.pastry.testing
Class LeafSetTest.TestNodeHandle

java.lang.Object
  extended byjava.util.Observable
      extended byrice.p2p.commonapi.NodeHandle
          extended byrice.pastry.NodeHandle
              extended byrice.pastry.testing.LeafSetTest.TestNodeHandle
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
LeafSetTest

public static class LeafSetTest.TestNodeHandle
extends NodeHandle
implements java.lang.Comparable

DESCRIBE THE CLASS

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
jeffh
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.pastry.NodeHandle
LIVENESS_ALIVE, LIVENESS_DEAD, LIVENESS_SUSPECTED, localnode, logger
 
Fields inherited from class rice.p2p.commonapi.NodeHandle
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED
 
Constructor Summary
LeafSetTest.TestNodeHandle(Id id)
          Constructor for TestNodeHandle.
 
Method Summary
 int compareTo(java.lang.Object o)
          DESCRIBE THE METHOD
 boolean equals(java.lang.Object obj)
          DESCRIBE THE METHOD
 int getLiveness()
          Gets the Liveness attribute of the TestNodeHandle object
 Id getNodeId()
          Gets the NodeId attribute of the TestNodeHandle object
 int hashCode()
          DESCRIBE THE METHOD
 boolean ping()
          DESCRIBE THE METHOD
 int proximity()
          DESCRIBE THE METHOD
 void receiveMessage(Message m)
          DESCRIBE THE METHOD
 void serialize(OutputBuffer buf)
          DESCRIBE THE METHOD
 java.lang.String toString()
          DESCRIBE THE METHOD
 
Methods inherited from class rice.pastry.NodeHandle
assertLocalNode, bootstrap, checkLiveness, getId, getLocalNode, isAlive
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeafSetTest.TestNodeHandle

public LeafSetTest.TestNodeHandle(Id id)
Constructor for TestNodeHandle.

Parameters:
id - DESCRIBE THE PARAMETER
Method Detail

getNodeId

public Id getNodeId()
Gets the NodeId attribute of the TestNodeHandle object

Specified by:
getNodeId in class NodeHandle
Returns:
The NodeId value

getLiveness

public int getLiveness()
Gets the Liveness attribute of the TestNodeHandle object

Specified by:
getLiveness in class NodeHandle
Returns:
The Liveness value

proximity

public int proximity()
DESCRIBE THE METHOD

Specified by:
proximity in class NodeHandle
Returns:
DESCRIBE THE RETURN VALUE

ping

public boolean ping()
DESCRIBE THE METHOD

Specified by:
ping in class NodeHandle
Returns:
DESCRIBE THE RETURN VALUE

equals

public boolean equals(java.lang.Object obj)
DESCRIBE THE METHOD

Specified by:
equals in class NodeHandle
Parameters:
obj - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

hashCode

public int hashCode()
DESCRIBE THE METHOD

Specified by:
hashCode in class NodeHandle
Returns:
DESCRIBE THE RETURN VALUE

receiveMessage

public void receiveMessage(Message m)
DESCRIBE THE METHOD

Specified by:
receiveMessage in class NodeHandle
Parameters:
m - DESCRIBE THE PARAMETER

compareTo

public int compareTo(java.lang.Object o)
DESCRIBE THE METHOD

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

toString

public java.lang.String toString()
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
DESCRIBE THE METHOD

Specified by:
serialize in class NodeHandle
Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection