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 Notifiable
s 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.
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 MachinemonitorableState
- The new state
getName
java.lang.String getName()
- Returns:
- The name of the
Notifiable
entity.