org.ourgrid.common.fd
Interface Notifiable

All Known Implementing Classes:
ConsumerStateNotifiable, CorePeerStateNotifiable, FakeNotifiable, GumStateNotifiable, PeerStateNotifiable, PeerStateNotifiable, TestMainMonitorable

public interface Notifiable

This interface must be implemented by entities that needs to be aware about Grid Machines state changes.


In OurGrid case the Notifiables will be the entities that will make use of FailureDetector use directly, and at least at 3.3 version will always be at the same JVM.

With this design we simplifies the architecture, send notifying messages only localy, and the interesteds entities knows how to deal with the advices.


Method Summary
 java.lang.String getName()
           
 void notifyMonitorableStateChange(java.lang.String monitorableName, GenericState monitorableState)
          This method is invoked when the Grid Machine state changes.
 

Method Detail

notifyMonitorableStateChange

void notifyMonitorableStateChange(java.lang.String monitorableName,
                                  GenericState monitorableState)
This method is invoked when the Grid Machine state changes.

Parameters:
monitorableName - The name of the Grid Machine
monitorableState - The new state

getName

java.lang.String getName()
Returns:
The name of the Notifiable entity.