Package com.highdeal.admin.hci
Class GlobalAndUnitaryOperation
java.lang.Object
com.highdeal.admin.hci.TargetedOperation
com.highdeal.admin.hci.GlobalAndUnitaryOperation
This class implements the targeted operation and enables to define
several targets with instance type and/or instance id.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalAndUnitaryOperation constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInstanceId(InstanceId instanceId) Add an instance id into the list of operation targetsvoidaddInstanceType(InstanceType instanceType) Add an instance type into the list of operation targetsGet collection of targeted instance typesvoidupdateTargets(SystemStatus systemStatus) Updates the collection of targeted instance IDs given the system status.Methods inherited from class com.highdeal.admin.hci.TargetedOperation
getInstanceIds, getOperation
-
Constructor Details
-
GlobalAndUnitaryOperation
GlobalAndUnitaryOperation constructor- Parameters:
op- The concrete operation for which to define targets
-
-
Method Details
-
addInstanceType
Add an instance type into the list of operation targets- Parameters:
instanceType- The instance type to add
-
getInstanceTypes
Get collection of targeted instance types- Returns:
- The collection of targeted instance types
-
addInstanceId
Add an instance id into the list of operation targets- Parameters:
instanceId- The instance id to add
-
updateTargets
Description copied from class:TargetedOperationUpdates the collection of targeted instance IDs given the system status.- Specified by:
updateTargetsin classTargetedOperation- Parameters:
systemStatus- The system status
-