Class GlobalAndUnitaryOperation

java.lang.Object
com.highdeal.admin.hci.TargetedOperation
com.highdeal.admin.hci.GlobalAndUnitaryOperation

public class GlobalAndUnitaryOperation extends TargetedOperation
This class implements the targeted operation and enables to define several targets with instance type and/or instance id.
  • Constructor Details

    • GlobalAndUnitaryOperation

      public GlobalAndUnitaryOperation(MessageOperation op)
      GlobalAndUnitaryOperation constructor
      Parameters:
      op - The concrete operation for which to define targets
  • Method Details

    • addInstanceType

      public void addInstanceType(InstanceType instanceType)
      Add an instance type into the list of operation targets
      Parameters:
      instanceType - The instance type to add
    • getInstanceTypes

      public Collection<InstanceType> getInstanceTypes()
      Get collection of targeted instance types
      Returns:
      The collection of targeted instance types
    • addInstanceId

      public void addInstanceId(InstanceId instanceId)
      Add an instance id into the list of operation targets
      Parameters:
      instanceId - The instance id to add
    • updateTargets

      public void updateTargets(SystemStatus systemStatus)
      Description copied from class: TargetedOperation
      Updates the collection of targeted instance IDs given the system status.
      Specified by:
      updateTargets in class TargetedOperation
      Parameters:
      systemStatus - The system status