diff options
| author | Zandra Hird <[email protected]> | 2015-04-27 16:37:27 +0200 |
|---|---|---|
| committer | Zandra Hird <[email protected]> | 2015-04-27 16:37:27 +0200 |
| commit | 861145a503c77d8144033f38d288bdda31699edd (patch) | |
| tree | bb7c4578d2acea7e6f2460ae4248314d2070417d /lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java | |
| parent | 9d46162f7a670a4b403a82ebb5600c95bb278529 (diff) | |
| parent | fd76d49c7d7bbed4775818390e47b958ee50f469 (diff) | |
| download | otp-861145a503c77d8144033f38d288bdda31699edd.tar.gz otp-861145a503c77d8144033f38d288bdda31699edd.tar.bz2 otp-861145a503c77d8144033f38d288bdda31699edd.zip | |
Merge branch 'x0id/jinterface_transport_factory'
* x0id/jinterface_transport_factory:
jinterface: transport factory implementation
fix typo error from recent merge
OTP-12686
Diffstat (limited to 'lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java')
| -rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java index b996ba6f6c..dd1d299297 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpLocalNode.java @@ -29,12 +29,7 @@ public class OtpLocalNode extends AbstractNode { private int refId[]; protected int port; - protected java.net.Socket epmd; - - protected OtpLocalNode() { - super(); - init(); - } + protected OtpTransport epmd; /** * Create a node with the given name and the default cookie. @@ -45,6 +40,16 @@ public class OtpLocalNode extends AbstractNode { } /** + * Create a node with the given name, transport factory and the default + * cookie. + */ + protected OtpLocalNode(final String node, + final OtpTransportFactory transportFactory) { + super(node, transportFactory); + init(); + } + + /** * Create a node with the given name and cookie. */ protected OtpLocalNode(final String node, final String cookie) { @@ -52,6 +57,15 @@ public class OtpLocalNode extends AbstractNode { init(); } + /** + * Create a node with the given name, cookie and transport factory. + */ + protected OtpLocalNode(final String node, final String cookie, + final OtpTransportFactory transportFactory) { + super(node, cookie, transportFactory); + init(); + } + private void init() { serial = 0; pidCount = 1; @@ -77,7 +91,7 @@ public class OtpLocalNode extends AbstractNode { * @param s * The socket connecting this node to Epmd. */ - protected void setEpmd(final java.net.Socket s) { + protected void setEpmd(final OtpTransport s) { epmd = s; } @@ -86,7 +100,7 @@ public class OtpLocalNode extends AbstractNode { * * @return The socket connecting this node to Epmd. */ - protected java.net.Socket getEpmd() { + protected OtpTransport getEpmd() { return epmd; } |
