org.almendra.janet.ade.commands
Class ExecuteWorkloadCommand

java.lang.Object
  extended by org.almendra.janet.ade.commands.ExecutorAnchorCommand
      extended by 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

Field Summary
protected  java.lang.String capabilityPath
           
protected  CommandEnvelope currentEnvelope
           
protected  boolean isMustAccept
           
 
Fields inherited from class org.almendra.janet.ade.commands.ExecutorAnchorCommand
anchor
 
Fields inherited from interface org.almendra.janet.cas.scheduling.ICommand
ApplicationMaxPriority, ApplicationMinPriority, InterruptPriority, SystemPriority
 
Constructor Summary
ExecuteWorkloadCommand()
          Creates a new ExecuteWorkloadCommand object.
ExecuteWorkloadCommand(ExecutorAnchor anchor)
          Creates a new ExecuteWorkloadCommand object.
ExecuteWorkloadCommand(java.lang.String capabilityPath)
          Creates a new ExecuteWorkloadCommand object.
 
Method Summary
 java.lang.String getCapabilityPath()
           
abstract  ICommand getCommand()
           
 CommandEnvelope getCurrentEnvelope()
           
abstract  IInterpreter getInterpreter()
           
abstract  java.lang.String getLogEventName()
           
abstract  java.lang.String getLogTypeName()
           
 boolean isMustAccept()
           
abstract  void prepareBeforeSending()
           
 void setCurrentEnvelope(CommandEnvelope currentEnvelope)
           
 void setMustAccept(boolean isMustAccept)
           
abstract  void workloadCommandArrived(ExecutorAnchor anchor, CommandEnvelope env, java.lang.String capabilityPath)
           
 
Methods inherited from class org.almendra.janet.ade.commands.ExecutorAnchorCommand
clone, getAnchor, setAnchor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.almendra.janet.cas.scheduling.ICommand
getPriority, getQualifiedName, toLogString
 

Field Detail

currentEnvelope

protected transient CommandEnvelope currentEnvelope

capabilityPath

protected java.lang.String capabilityPath

isMustAccept

protected boolean isMustAccept
Constructor Detail

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.

Method Detail

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.