|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ericsson.otp.erlang.OtpNodeStatus
public class 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 | |
---|---|
OtpNodeStatus()
|
Method Summary | |
---|---|
void |
connAttempt(java.lang.String node,
boolean incoming,
java.lang.Object info)
Notify about failed connection attempts. |
void |
localStatus(java.lang.String node,
boolean up,
java.lang.Object info)
Notify about local node exceptions. |
void |
remoteStatus(java.lang.String node,
boolean up,
java.lang.Object info)
Notify about remote node status changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OtpNodeStatus()
Method Detail |
---|
public void remoteStatus(java.lang.String node, boolean up, java.lang.Object info)
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).public void localStatus(java.lang.String node, boolean up, java.lang.Object info)
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).public void connAttempt(java.lang.String node, boolean incoming, java.lang.Object info)
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).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |