org.ourgrid.common.event
Interface EBSyncShutdownable

All Known Subinterfaces:
ShutdownEventEngine
All Known Implementing Classes:
FakeEventEngine, FakeSchedulerEventEngine, PeerEventEngine, ReplicaExecutorEventEngine, SchedulerEventEngine

public interface EBSyncShutdownable

This interface should be implemented when it is needed to perform a synchronized shutdown.


Method Summary
 boolean isAlive()
          Checks if the EBSyncShutdownable is alive.
 void shutdown(EventQueue<ShutdownResponseEvent> responseQueue)
          Shuts down the object.
 

Method Detail

shutdown

void shutdown(EventQueue<ShutdownResponseEvent> responseQueue)
Shuts down the object.

Parameters:
responseQueue - EventQueue that will contain the ShutdownResponseEvent after the object had successfully shutdown

isAlive

boolean isAlive()
Checks if the EBSyncShutdownable is alive.

Returns:
True if it is alive, false otherwise