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
    • 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<java.lang.String,​ClifDeployDefinition> definitions)
      • 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