org.almendra.janet.ade.executor.executors
Class EvictWaitCommandsExecutor

java.lang.Object
  extended by org.almendra.janet.ade.executor.executors.EvictCommandsExecutor
      extended by org.almendra.janet.ade.executor.executors.EvictWaitCommandsExecutor
All Implemented Interfaces:
IExecutable
Direct Known Subclasses:
EvictWaitCommandsFullyExecutor

public class EvictWaitCommandsExecutor
extends EvictCommandsExecutor
implements IExecutable


Field Summary
 
Fields inherited from class org.almendra.janet.ade.executor.executors.EvictCommandsExecutor
anchor, capabilityPath, evictedCommandsCount, evictionAgent, evictionAgentPath, isInterrupted, systemApplication, token
 
Constructor Summary
protected EvictWaitCommandsExecutor()
          Creates a new EvictWaitCommandsExecutor object.
  EvictWaitCommandsExecutor(java.lang.String token)
          Creates a new EvictWaitCommandsExecutor object.
  EvictWaitCommandsExecutor(SystemApplication application, AgentPath evictionAgent, java.lang.String capabilityPath, java.lang.String token)
          Creates a new EvictWaitCommandsExecutor object.
 
Method Summary
protected  boolean evict1CommandFromCapability()
           
 void execute(java.lang.Object object)
           
protected  void prepareEnvelopeBeforeSending(CommandEnvelope env)
           
protected  boolean sendToEvictionAgent(ExecutorAnchor anchor, CommandEnvelope env)
           
protected  void setEvictionAgent()
           
protected  void setSuspended(CommandEnvelope env)
           
 
Methods inherited from class org.almendra.janet.ade.executor.executors.EvictCommandsExecutor
checkIsInterrupted, getEvictedCommandsCount, getEvictionAgent, getLogger, getNextCommand, getNode, incrementEvictionCommandsCount, isInterrupted, setInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvictWaitCommandsExecutor

protected EvictWaitCommandsExecutor()
Creates a new EvictWaitCommandsExecutor object.


EvictWaitCommandsExecutor

public EvictWaitCommandsExecutor(java.lang.String token)
Creates a new EvictWaitCommandsExecutor object.


EvictWaitCommandsExecutor

public EvictWaitCommandsExecutor(SystemApplication application,
                                 AgentPath evictionAgent,
                                 java.lang.String capabilityPath,
                                 java.lang.String token)
Creates a new EvictWaitCommandsExecutor object.

Method Detail

execute

public void execute(java.lang.Object object)
Specified by:
execute in interface IExecutable

evict1CommandFromCapability

protected boolean evict1CommandFromCapability()
Parameters:
object -

sendToEvictionAgent

protected boolean sendToEvictionAgent(ExecutorAnchor anchor,
                                      CommandEnvelope env)
Parameters:
evictionAgent -
env -

setEvictionAgent

protected void setEvictionAgent()

prepareEnvelopeBeforeSending

protected void prepareEnvelopeBeforeSending(CommandEnvelope env)
Parameters:
env -

setSuspended

protected void setSuspended(CommandEnvelope env)
Specified by:
setSuspended in class EvictCommandsExecutor
Parameters:
env -