org.almendra.janet.ade.executor.executors
Class EvictCommandsExecutor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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
-