Package com.ericsson.otp.erlang
Class OtpNodeStatus
java.lang.Object
com.ericsson.otp.erlang.OtpNodeStatus
Provides a callback mechanism for receiving status change information about
other nodes in the system. Register an instance of this class (or a subclass)
with your OtpNode
when you wish to be notified about such
status changes and other similar events.
This class provides default handers that ignore all events. Applications are expected to extend this class in order to act on events that are deemed interesting.
Note that this class is likely to change in the near future
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connAttempt
(String node, boolean incoming, Object info) Notify about failed connection attempts.void
localStatus
(String node, boolean up, Object info) Notify about local node exceptions.void
remoteStatus
(String node, boolean up, Object info) Notify about remote node status changes.
-
Constructor Details
-
OtpNodeStatus
public OtpNodeStatus()
-
-
Method Details
-
remoteStatus
Notify about remote node status changes.- Parameters:
node
- the node whose status change is being indicated by this call.up
- true if the node has come up, false if it has gone down.info
- additional info that may be available, for example an exception that was raised causing the event in question (may be null).
-
localStatus
Notify about local node exceptions.- Parameters:
node
- the node whose status change is being indicated by this call.up
- true if the node has come up, false if it has gone down.info
- additional info that may be available, for example an exception that was raised causing the event in question (may be null).
-
connAttempt
Notify about failed connection attempts.- Parameters:
node
- The name of the remote nodeincoming
- The direction of the connection attempt, i.e. true for incoming, false for outgoing.info
- additional info that may be available, for example an exception that was raised causing the event in question (may be null).
-