|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Call back listener interface for the ping service
Field Summary | |
static int |
EVENT_ERROR_LOCAL_ADDRESS
UDPPingThread thread cannot access local address |
static int |
EVENT_INTERRUPTED
UDPPingThread thread was interrupted |
static int |
EVENT_QUIT
UDPPingThread thread is quitting |
static int |
THREAD_ALIVE
Thread is responding to ping |
static int |
THREAD_LOST
Thread contact was lost |
static int |
THREAD_SUSPECTED
Thread did not respond to last ping |
Method Summary | |
void |
alive(Address address)
Notify that the given address is alive |
void |
lastPing(Address address)
Notify that this was the lastPing on the Address |
void |
noResponse(Address address)
Notify that the Address did not respond to the last ping |
void |
pingServiceEvent(int event)
Something special has occured to the ping service: the thread was interrupted, the service was stopped ... |
void |
suspect(Address address)
Notifify that the Address is suspected of failure |
Field Detail |
public static final int EVENT_INTERRUPTED
public static final int EVENT_QUIT
public static final int EVENT_ERROR_LOCAL_ADDRESS
public static final int THREAD_ALIVE
public static final int THREAD_SUSPECTED
public static final int THREAD_LOST
Method Detail |
public void suspect(Address address)
Address
is suspected of failure
address
- Address
suspectedpublic void noResponse(Address address)
Address
did not respond to the last ping
address
- Address
that did not respondpublic void lastPing(Address address)
Address
address
- public void pingServiceEvent(int event)
event
- an id of the event that happenedpublic void alive(Address address)
address
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |