com.highdeal.admin.hci
Class TargetedOperation

java.lang.Object
  extended by com.highdeal.admin.hci.TargetedOperation
Direct Known Subclasses:
ActiveUpdaterOperation, GlobalAndUnitaryOperation, GlobalOperation, MasterDispatcherOperation, UnitaryOperation

public abstract class TargetedOperation
extends java.lang.Object

Decorator to declare targets for an admin operation.


Field Summary
protected  java.util.Set<InstanceId> instanceIds
          Set of targeted instance IDs
 
Constructor Summary
TargetedOperation(MessageOperation op)
          Builds a TargetedOperation for the given admin operation.
 
Method Summary
 java.util.Collection<InstanceId> getInstanceIds()
          Gets the collection of targeted instance IDs.
 MessageOperation getOperation()
          Gets the real admin operation for which we are declaring targets.
abstract  void updateTargets(SystemStatus systemStatus)
          Updates the collection of targeted instance IDs given the system status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceIds

protected java.util.Set<InstanceId> instanceIds
Set of targeted instance IDs

Constructor Detail

TargetedOperation

public TargetedOperation(MessageOperation op)
Builds a TargetedOperation for the given admin operation.

Parameters:
op - The admin operation for which to declare targets
Method Detail

getInstanceIds

public java.util.Collection<InstanceId> getInstanceIds()
Gets the collection of targeted instance IDs.

Returns:
The collection of targeted instance IDs

updateTargets

public abstract void updateTargets(SystemStatus systemStatus)
Updates the collection of targeted instance IDs given the system status.

Parameters:
systemStatus - The system status

getOperation

public MessageOperation getOperation()
Gets the real admin operation for which we are declaring targets.

Returns:
The real admin operation

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)