org.almendra.janet.ade.commands
Class ExecuteWorkloadCommand
java.lang.Object
org.almendra.janet.ade.commands.ExecutorAnchorCommand
org.almendra.janet.ade.commands.ExecuteWorkloadCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICommand, ICommandHolder
- Direct Known Subclasses:
- ExecuteWorkloadBalancingCommand, ExecuteWorkloadSharingCommand
public abstract class ExecuteWorkloadCommand
- extends ExecutorAnchorCommand
- implements ICommandHolder
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentEnvelope
protected transient CommandEnvelope currentEnvelope
capabilityPath
protected java.lang.String capabilityPath
isMustAccept
protected boolean isMustAccept
ExecuteWorkloadCommand
public ExecuteWorkloadCommand()
- Creates a new
ExecuteWorkloadCommand
object.
ExecuteWorkloadCommand
public ExecuteWorkloadCommand(ExecutorAnchor anchor)
- Creates a new
ExecuteWorkloadCommand
object.
ExecuteWorkloadCommand
public ExecuteWorkloadCommand(java.lang.String capabilityPath)
- Creates a new
ExecuteWorkloadCommand
object.
getCurrentEnvelope
public CommandEnvelope getCurrentEnvelope()
- Returns:
- Returns the currentEnvelope.
setCurrentEnvelope
public void setCurrentEnvelope(CommandEnvelope currentEnvelope)
- Parameters:
currentEnvelope
- The currentEnvelope to set.
getCommand
public abstract ICommand getCommand()
- Specified by:
getCommand
in interface ICommandHolder
getLogEventName
public abstract java.lang.String getLogEventName()
- Returns:
getLogTypeName
public abstract java.lang.String getLogTypeName()
- Returns:
getInterpreter
public abstract IInterpreter getInterpreter()
- Returns:
getCapabilityPath
public java.lang.String getCapabilityPath()
- Returns:
- Returns the capabilityPath.
workloadCommandArrived
public abstract void workloadCommandArrived(ExecutorAnchor anchor,
CommandEnvelope env,
java.lang.String capabilityPath)
- Parameters:
anchor
- env
- capabilityPath
-
prepareBeforeSending
public abstract void prepareBeforeSending()
isMustAccept
public boolean isMustAccept()
- Returns:
- Returns the isMustAccept.
setMustAccept
public void setMustAccept(boolean isMustAccept)
- Parameters:
isMustAccept
- The isMustAccept to set.