org.almendra.janet.cas.node
Class SchedulerAnchor
java.lang.Object
org.almendra.janet.cas.node.SchedulerAnchor
- All Implemented Interfaces:
- ISimpleActiveObject, ILoggable
public class SchedulerAnchor
- extends java.lang.Object
- implements ISimpleActiveObject, ILoggable
- Author:
- Oliver Plohmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUPREME_PRIORITY
public static final int SUPREME_PRIORITY
- See Also:
- Constant Field Values
ARBITRATOR_PRIORITY
public static final int ARBITRATOR_PRIORITY
- See Also:
- Constant Field Values
SYSTEM_PRIORITY
public static final int SYSTEM_PRIORITY
- See Also:
- Constant Field Values
APPLICATION_PRIORITY
public static final int APPLICATION_PRIORITY
- See Also:
- Constant Field Values
REDUCED_APPLICATION_PRIORITY
public static final int REDUCED_APPLICATION_PRIORITY
- See Also:
- Constant Field Values
SCHEDULER_NAME
public static final java.lang.String SCHEDULER_NAME
- See Also:
- Constant Field Values
LOGGER_OBJECT_NAME
public static final java.lang.String LOGGER_OBJECT_NAME
- See Also:
- Constant Field Values
LOG_EVENT_SCHEDULER_STARTED
public static final java.lang.String LOG_EVENT_SCHEDULER_STARTED
- See Also:
- Constant Field Values
LOG_EVENT_SCHEDULER_STOPPED
public static final java.lang.String LOG_EVENT_SCHEDULER_STOPPED
- See Also:
- Constant Field Values
node
protected Node node
logger
protected Logger logger
arbitrator
protected Arbitrator arbitrator
systemArbitrator
protected Arbitrator systemArbitrator
supremeScheduler
protected SupremeScheduler supremeScheduler
responseScheduler
protected SupremeScheduler responseScheduler
SchedulerAnchor
protected SchedulerAnchor()
SchedulerAnchor
public SchedulerAnchor(Node node,
Logger logger)
getNode
public Node getNode()
- Returns:
setNode
public void setNode(Node node)
- Parameters:
node
-
start
public void start()
- Description copied from interface:
ISimpleActiveObject
- Start the thread that runs the active object.
- Specified by:
start
in interface ISimpleActiveObject
stop
public void stop()
- Description copied from interface:
ISimpleActiveObject
- Stop the thread that runs the active object.
- Specified by:
stop
in interface ISimpleActiveObject
getArbitrator
public Arbitrator getArbitrator()
- Returns:
isIdle
public boolean isIdle()
- Returns:
registeredLogEvents
public java.util.List registeredLogEvents()
- Description copied from interface:
ILoggable
- Return list of events that may occur for an object.
- Specified by:
registeredLogEvents
in interface ILoggable
- Returns:
init
protected void init()
isActive
public boolean isActive()
- Description copied from interface:
ISimpleActiveObject
- Answer whether the thread that runs the active object is running or not.
- Specified by:
isActive
in interface ISimpleActiveObject
- Returns:
getResponseScheduler
protected SupremeScheduler getResponseScheduler()
- Returns:
- Returns the responseScheduler.
getSystemArbitrator
public Arbitrator getSystemArbitrator()
- Returns: