Constructor and Description |
---|
PeerNode(OtpPeer node)
Creates a new object using the given node.
|
PeerNode(String node)
Creates a new object using the given node.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PeerNode(OtpPeer node)
node
- the node to wrappublic PeerNode(String node)
node
- the name of the node to wrappublic OtpPeer getNode()
public Date getLastFailedConnect()
null
)public int getFailureCount()
List.size()
since this does not require a conversion.public Date getLastConnectSuccess()