org.ow2.clif.supervisor.api
Interface SupervisorInfo

All Known Implementing Classes:
SupervisorImpl

public interface SupervisorInfo

Interface used to send blade state information from a CLIF server to the Supervisor

Author:
Julien Buret, Nicolas Droze, Bruno Dillenseger, Joan Chaumont

Field Summary
static java.lang.String SUPERVISOR_INFO
           
 
Method Summary
 void alarm(java.lang.String id, AlarmEvent alarm)
          Informs that an alarm occurred
 java.util.Map getDefinitions()
           
 BladeState getGlobalState(java.lang.String[] selBladesId)
          Get global state for these blades.
 void setBladeState(java.lang.String id, BladeState state)
          Informs that the state of a host has changed.
 void setDefinitions(java.util.Map definitions)
           
 void waitEndOfRun(java.lang.String[] selBladesId)
          Test if these blades are Running or not.
 boolean waitForState(java.lang.String[] selBladesId, BladeState state)
          Wait until a target state is reached.
 void waitStationaryState(java.lang.String[] selBladesId)
          Test if these blades are stationary or not.
 

Field Detail

SUPERVISOR_INFO

static final java.lang.String SUPERVISOR_INFO
See Also:
Constant Field Values
Method Detail

setBladeState

void setBladeState(java.lang.String id,
                   BladeState state)
Informs that the state of a host has changed.

Parameters:
id - the scenario globally unique identifier object
state - The new state of the scenario

setDefinitions

void setDefinitions(java.util.Map definitions)

getDefinitions

java.util.Map getDefinitions()

alarm

void alarm(java.lang.String id,
           AlarmEvent alarm)
Informs that an alarm occurred

Parameters:
id - blade identifier of the event source
alarm - alarm event

getGlobalState

BladeState getGlobalState(java.lang.String[] selBladesId)
Get global state for these blades.

Parameters:
selBladesId - blades of interest's identifiers, or null for every blade
Returns:
the global state.

waitStationaryState

void waitStationaryState(java.lang.String[] selBladesId)
                         throws java.lang.InterruptedException
Test if these blades are stationary or not.

Parameters:
selBladesId - blades of interest's identifiers, or null for every blade
Throws:
java.lang.InterruptedException

waitEndOfRun

void waitEndOfRun(java.lang.String[] selBladesId)
                  throws java.lang.InterruptedException
Test if these blades are Running or not.

Parameters:
selBladesId - blades of interest's identifiers, or null for every blade
Throws:
java.lang.InterruptedException

waitForState

boolean waitForState(java.lang.String[] selBladesId,
                     BladeState state)
                     throws java.lang.InterruptedException
Wait until a target state is reached.

Parameters:
selBladesId - blades of interest's identifiers, or null for every blade
state - target state to wait for
Throws:
java.lang.InterruptedException