org.almendra.janet.cas.agents
Class SystemAgent
java.lang.Object
org.almendra.janet.cas.agents.AbstractAgent
org.almendra.janet.cas.agents.SystemAgent
- All Implemented Interfaces:
- INamedObject, IUniqueGlobalIdObject, ILoggable, IAgent, ICommandAcceptor
public class SystemAgent
- extends AbstractAgent
- Author:
- Oliver Plohmann
Methods inherited from class org.almendra.janet.cas.agents.AbstractAgent |
accept, checkCapabilities, getAgentPath, getAgentProxy, getAllForeignAgents, getAllForeignAgents, getAllForeignAgents, getApplication, getCapability, getForeignAgent, getGlobalId, getLocalPath, getLogger, getName, getNode, getObjectSpace, getPath, getQualifiedName, getSystemApplication, getUniqueId, init, isActive, isSystemApplication, logStarted, logStopped, registeredLogEvents, setCommandEnvelope, setLogger, setName, setNode, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
CAPABILITY_NAME
public static final java.lang.String CAPABILITY_NAME
- See Also:
- Constant Field Values
scheduler
protected CommandScheduler scheduler
SystemAgent
protected SystemAgent()
SystemAgent
public SystemAgent(Node node,
SystemApplication systemApplication,
Logger logger)
- Parameters:
node
- logger
- name
-
getScheduler
protected CommandScheduler getScheduler()
- Specified by:
getScheduler
in class AbstractAgent
setScheduler
public void setScheduler(CommandScheduler scheduler)
schedulerStopped
protected void schedulerStopped()
- Specified by:
schedulerStopped
in class AbstractAgent
isSystemAgent
public boolean isSystemAgent()
- Specified by:
isSystemAgent
in interface IAgent
- Specified by:
isSystemAgent
in class AbstractAgent
prepareFinalize
protected void prepareFinalize()
- Overrides:
prepareFinalize
in class AbstractAgent
isApplicationAgent
public boolean isApplicationAgent()
- Specified by:
isApplicationAgent
in interface IAgent
- Specified by:
isApplicationAgent
in class AbstractAgent
isIdle
public boolean isIdle()
- Specified by:
isIdle
in interface IAgent
- Specified by:
isIdle
in class AbstractAgent
getQueueSize
public long getQueueSize()
- Specified by:
getQueueSize
in interface IAgent
- Specified by:
getQueueSize
in class AbstractAgent
- Returns: