org.almendra.janet.cas.agents
Class SystemAgent

java.lang.Object
  extended by org.almendra.janet.cas.agents.AbstractAgent
      extended by org.almendra.janet.cas.agents.SystemAgent
All Implemented Interfaces:
INamedObject, IUniqueGlobalIdObject, ILoggable, IAgent, ICommandAcceptor

public class SystemAgent
extends AbstractAgent

Author:
Oliver Plohmann

Field Summary
static java.lang.String CAPABILITY_NAME
           
static java.lang.String NAME
           
protected  CommandScheduler scheduler
           
 
Fields inherited from class org.almendra.janet.cas.agents.AbstractAgent
capability, id, LOG_EVENT_STARTED_AGENT, LOG_EVENT_STOPPED_AGENT, logger, name, node
 
Constructor Summary
protected SystemAgent()
           
  SystemAgent(Node node, SystemApplication systemApplication, Logger logger)
           
 
Method Summary
 long getQueueSize()
           
protected  CommandScheduler getScheduler()
           
 boolean isApplicationAgent()
           
 boolean isIdle()
           
 boolean isSystemAgent()
           
protected  void prepareFinalize()
           
protected  void schedulerStopped()
           
 void setScheduler(CommandScheduler scheduler)
           
 
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
 

Field Detail

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
Constructor Detail

SystemAgent

protected SystemAgent()

SystemAgent

public SystemAgent(Node node,
                   SystemApplication systemApplication,
                   Logger logger)
Parameters:
node -
logger -
name -
Method Detail

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: