org.objectweb.tribe.faultdetection
Interface FaultDetectionListener


public interface FaultDetectionListener

Call back listener interface for the ping service

Version:
1.0
Author:
Nicolas Modrzyk

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

EVENT_INTERRUPTED

public static final int EVENT_INTERRUPTED
UDPPingThread thread was interrupted

See Also:
Constant Field Values

EVENT_QUIT

public static final int EVENT_QUIT
UDPPingThread thread is quitting

See Also:
Constant Field Values

EVENT_ERROR_LOCAL_ADDRESS

public static final int EVENT_ERROR_LOCAL_ADDRESS
UDPPingThread thread cannot access local address

See Also:
Constant Field Values

THREAD_ALIVE

public static final int THREAD_ALIVE
Thread is responding to ping

See Also:
Constant Field Values

THREAD_SUSPECTED

public static final int THREAD_SUSPECTED
Thread did not respond to last ping

See Also:
Constant Field Values

THREAD_LOST

public static final int THREAD_LOST
Thread contact was lost

See Also:
Constant Field Values
Method Detail

suspect

public void suspect(Address address)
Notifify that the Address is suspected of failure

Parameters:
address - Address suspected

noResponse

public void noResponse(Address address)
Notify that the Address did not respond to the last ping

Parameters:
address - Address that did not respond

lastPing

public void lastPing(Address address)
Notify that this was the lastPing on the Address

Parameters:
address -

pingServiceEvent

public void pingServiceEvent(int event)
Something special has occured to the ping service: the thread was interrupted, the service was stopped ...

Parameters:
event - an id of the event that happened

alive

public void alive(Address address)
Notify that the given address is alive

Parameters:
address -


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.