public class PeerNode
extends java.lang.Object
OtpPeer class, adding some additional
information.| Constructor | Description |
|---|---|
PeerNode(com.ericsson.otp.erlang.OtpPeer node) |
Creates a new object using the given node.
|
PeerNode(java.lang.String node) |
Creates a new object using the given node.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getFailureCount() |
Gets the number of failed connections.
|
java.util.Date |
getLastConnectSuccess() |
Gets the date of the last successful connection.
|
java.util.Date |
getLastFailedConnect() |
Gets the date of the last failed connection.
|
com.ericsson.otp.erlang.OtpPeer |
getNode() |
Gets the OTP node that is being wrapped.
|
java.lang.String |
toString() |
Returns a string representation of this node.
|
public PeerNode(com.ericsson.otp.erlang.OtpPeer node)
node - the node to wrappublic PeerNode(java.lang.String node)
node - the name of the node to wrappublic com.ericsson.otp.erlang.OtpPeer getNode()
public java.util.Date getLastFailedConnect()
null)public int getFailureCount()
List.size() since this does not require a conversion.public java.util.Date getLastConnectSuccess()
public java.lang.String toString()
toString in class java.lang.Object