public class OtpPeer extends AbstractNode
OtpConnection
class.Constructor and Description |
---|
OtpPeer(java.lang.String node)
Create a peer node.
|
OtpPeer(java.lang.String node,
OtpTransportFactory transportFactory)
Create a peer node with custom transport factory.
|
Modifier and Type | Method and Description |
---|---|
OtpConnection |
connect(OtpSelf self)
Deprecated.
Use the corresponding method in
OtpSelf instead. |
alive, cookie, createServerTransport, createTransport, createTransport, host, node, setCookie, toString
public OtpPeer(java.lang.String node)
node
- the name of the node.public OtpPeer(java.lang.String node, OtpTransportFactory transportFactory)
node
- the name of the node.transportFactory
- custom transport factory@Deprecated public OtpConnection connect(OtpSelf self) throws java.io.IOException, java.net.UnknownHostException, OtpAuthException
OtpSelf
instead.self
- the local node from which you wish to connect.java.net.UnknownHostException
- if the remote host could not be found.java.io.IOException
- if it was not possible to connect to the remote node.OtpAuthException
- if the connection was refused by the remote node.