Package org.ow2.clif.supervisor.api
Interface SupervisorInfo
-
- All Known Implementing Classes:
SupervisorImpl
public interface SupervisorInfoInterface used to send blade state information from a CLIF server to the Supervisor- Author:
- Julien Buret, Nicolas Droze, Bruno Dillenseger, Joan Chaumont
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSUPERVISOR_INFO
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalarm(java.lang.String id, AlarmEvent alarm)Informs that an alarm occurredjava.util.Map<java.lang.String,ClifDeployDefinition>getDefinitions()BladeStategetGlobalState(java.lang.String[] selBladesId)Get global state for these blades.voidsetBladeState(java.lang.String id, BladeState state)Informs that the state of a host has changed.voidsetDefinitions(java.util.Map<java.lang.String,ClifDeployDefinition> definitions)voidwaitEndOfRun(java.lang.String[] selBladesId)Test if these blades are Running or not.booleanwaitForState(java.lang.String[] selBladesId, BladeState state)Wait until a target state is reached.voidwaitStationaryState(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 objectstate- The new state of the scenario
-
setDefinitions
void setDefinitions(java.util.Map<java.lang.String,ClifDeployDefinition> definitions)
-
getDefinitions
java.util.Map<java.lang.String,ClifDeployDefinition> getDefinitions()
-
alarm
void alarm(java.lang.String id, AlarmEvent alarm)Informs that an alarm occurred- Parameters:
id- blade identifier of the event sourcealarm- 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.InterruptedExceptionTest 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.InterruptedExceptionTest 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.InterruptedExceptionWait until a target state is reached.- Parameters:
selBladesId- blades of interest's identifiers, or null for every bladestate- target state to wait for- Throws:
java.lang.InterruptedException
-
-