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

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

public abstract class EvictCommandsExecutor
extends java.lang.Object
implements IExecutable


Field Summary
protected  ExecutorAnchor anchor
           
protected  java.lang.String capabilityPath
           
protected  int evictedCommandsCount
           
protected  IAgentProxy evictionAgent
           
protected  AgentPath evictionAgentPath
           
protected  boolean isInterrupted
           
protected  SystemApplication systemApplication
           
protected  java.lang.String token
           
 
Constructor Summary
protected EvictCommandsExecutor()
          Creates a new EvictCommandsExecutor object.
  EvictCommandsExecutor(java.lang.String token)
          Creates a new EvictCommandsExecutor object.
  EvictCommandsExecutor(SystemApplication systemApplication, AgentPath evictionAgentPath, java.lang.String capabilityPath, java.lang.String token)
          Creates a new EvictCommandsExecutor object.
 
Method Summary
protected  boolean checkIsInterrupted()
           
 int getEvictedCommandsCount()
           
 IAgentProxy getEvictionAgent()
           
protected  Logger getLogger()
           
protected  CommandEnvelope getNextCommand(java.util.List commands)
           
protected  Node getNode()
           
 int incrementEvictionCommandsCount()
           
 boolean isInterrupted()
           
 void setInterrupted(boolean isInterrupted)
           
protected abstract  void setSuspended(CommandEnvelope env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.almendra.commons.threads.IExecutable
execute
 

Field Detail

capabilityPath

protected java.lang.String capabilityPath

evictionAgentPath

protected AgentPath evictionAgentPath

evictionAgent

protected IAgentProxy evictionAgent

systemApplication

protected SystemApplication systemApplication

isInterrupted

protected boolean isInterrupted

anchor

protected ExecutorAnchor anchor

token

protected java.lang.String token

evictedCommandsCount

protected int evictedCommandsCount
Constructor Detail

EvictCommandsExecutor

protected EvictCommandsExecutor()
Creates a new EvictCommandsExecutor object.


EvictCommandsExecutor

public EvictCommandsExecutor(SystemApplication systemApplication,
                             AgentPath evictionAgentPath,
                             java.lang.String capabilityPath,
                             java.lang.String token)
Creates a new EvictCommandsExecutor object.


EvictCommandsExecutor

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

Method Detail

getEvictionAgent

public IAgentProxy getEvictionAgent()

getLogger

protected Logger getLogger()
Returns:

getNode

protected Node getNode()

isInterrupted

public boolean isInterrupted()
Returns:
Returns the isInterrupted.

setInterrupted

public void setInterrupted(boolean isInterrupted)
Parameters:
isInterrupted - The isInterrupted to set.

checkIsInterrupted

protected boolean checkIsInterrupted()

getEvictedCommandsCount

public int getEvictedCommandsCount()
Returns:
Returns the evictedCommandsCount.

incrementEvictionCommandsCount

public int incrementEvictionCommandsCount()

getNextCommand

protected CommandEnvelope getNextCommand(java.util.List commands)

setSuspended

protected abstract void setSuspended(CommandEnvelope env)
Parameters:
env -