|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.PeerNode
public class PeerNode
Wrapper class to the OtpPeer
class, adding some additional
information.
Constructor Summary | |
---|---|
PeerNode(OtpPeer node)
Creates a new object using the given node. |
|
PeerNode(String node)
Creates a new object using the given node. |
Method Summary | |
---|---|
int |
getFailureCount()
Gets the number of failed connections. |
Date |
getLastConnectSuccess()
Gets the date of the last successful connection. |
Date |
getLastFailedConnect()
Gets the date of the last failed connection. |
OtpPeer |
getNode()
Gets the OTP node that is being wrapped. |
String |
toString()
Returns a string representation of this node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerNode(OtpPeer node)
node
- the node to wrappublic PeerNode(String node)
node
- the name of the node to wrapMethod Detail |
---|
public OtpPeer getNode()
public Date getLastFailedConnect()
null
)public int getFailureCount()
List.size()
since this does not require a conversion.
public Date getLastConnectSuccess()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |