org.almendra.janet.cas.scheduling
Class CommandCallbackEnvelope

java.lang.Object
  extended by org.almendra.janet.cas.scheduling.CommandEnvelope
      extended by org.almendra.janet.cas.scheduling.CommandResponseEnvelope
          extended by org.almendra.janet.cas.scheduling.CommandCallbackEnvelope
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IExecutable, ICommandHolder, IPrioritizedObject

public class CommandCallbackEnvelope
extends CommandResponseEnvelope
implements java.io.Serializable

Author:
Oliver
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.almendra.janet.cas.scheduling.CommandResponseEnvelope
back, executed, replyToAgentPath, response, responseId
 
Fields inherited from class org.almendra.janet.cas.scheduling.CommandEnvelope
command, COMMAND_TYPE_BALANCING, COMMAND_TYPE_SHARING, currentAgent, currentScheduler, destinationAgent, executionFinished, executionStarted, history, id, isForeign, isIgnore, kind, logger, node, predefinedInterpreter, qualifiedCapabilityName, suspended, suspendedLock
 
Constructor Summary
CommandCallbackEnvelope(AgentPath agentPath, ICommand command, Logger logger, java.lang.String responseId, java.lang.String nodeName)
          Creates a new CommandCallbackEnvelope object.
 
Method Summary
protected  void callHandler()
          CommandEnvelope has arrived at the initial sender agent.
protected  java.lang.String getSpecificSuffix()
           
 boolean isSynchronousResponse()
           
 
Methods inherited from class org.almendra.janet.cas.scheduling.CommandResponseEnvelope
callHandler, execute, getReplyToAgentPath, getSuffix, isBack, prepareSendBack, sendBack, setBack, setReplyItem, setReplyToAgentPath, setResponse
 
Methods inherited from class org.almendra.janet.cas.scheduling.CommandEnvelope
aboutToBeSent, addHistoryItem, arrivedAt, clone, execute, getAccessor, getAgentDispatcher, getAgentPath, getAgentProxy, getAllForeignAgents, getApplicationEventRegistry, getApplicationName, getApplicationObjectSpace, getCapabilityName, getCapabilityPath, getClusterEventRegistry, getCommand, getCrossAgent, getCurrentAgent, getCurrentAgentProxy, getCurrentScheduler, getDestinationAgent, getDestinationAgentCapabilityPath, getDestinationAgentName, getForeignAgent, getGlobalId, getHistory, getKind, getLastHistoryItem, getLastOriginNodeName, getLocalAgentPath, getLocalCapabilityPath, getLocalizedDestinationAgentName, getLogger, getNewHistoryItem, getNode, getNodeAccessor, getNodeEventRegistry, getNodeName, getNodeNameObject, getNodeObjectSpace, getOriginAgentPath, getOriginDestinationAgentName, getOriginNodeName, getPredefinedInterpreter, getPriority, getQualifiedCapabilityName, getQualifiedDestinationAgentName, getResponseHistoryItem, invokeOnCommand, isEventHandlerCommand, isExecutionFinished, isExecutionStarted, isForeign, isIgnore, isLocal, isSuspended, isWorkloadCommand, log, reinsertIntoQueue, removeFromQueue, setArrivalTime, setCommand, setCreationTime, setCurrentAgent, setCurrentScheduler, setDestinationAgent, setEndExecutionTime, setExecutionFinished, setExecutionStarted, setHistoryItem, setIgnore, setKind, setLocalOrForeign, setLogger, setNewDestination, setNode, setPredefinedInterpreter, setSendTime, setStartExecutionTime, setSuspended, testSetSuspended, toLogString, toPrintString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandCallbackEnvelope

public CommandCallbackEnvelope(AgentPath agentPath,
                               ICommand command,
                               Logger logger,
                               java.lang.String responseId,
                               java.lang.String nodeName)
Creates a new CommandCallbackEnvelope object.

Method Detail

callHandler

protected void callHandler()
Description copied from class: CommandResponseEnvelope
CommandEnvelope has arrived at the initial sender agent. Invoke callback handler to handle the response.

Specified by:
callHandler in class CommandResponseEnvelope

getSpecificSuffix

protected java.lang.String getSpecificSuffix()
Specified by:
getSpecificSuffix in class CommandResponseEnvelope

isSynchronousResponse

public boolean isSynchronousResponse()
Overrides:
isSynchronousResponse in class CommandResponseEnvelope