org.almendra.janet.cas.schedulers
Class ApplicationScheduler
java.lang.Object
org.almendra.commons.threads.ActiveObject
org.almendra.commons.threads.ActiveSchedulingObject
org.almendra.janet.cas.schedulers.AbstractScheduler
org.almendra.janet.cas.schedulers.CommandScheduler
org.almendra.janet.cas.schedulers.PriorityCommandScheduler
org.almendra.janet.cas.schedulers.ArbitratedScheduler
org.almendra.janet.cas.schedulers.ApplicationScheduler
- All Implemented Interfaces:
- java.lang.Runnable, INamedObject, IExecutable, ISimpleActiveObject, ILoggable
public class ApplicationScheduler
- extends ArbitratedScheduler
- implements IExecutable
- Author:
- Oliver Plohmann
Methods inherited from class org.almendra.janet.cas.schedulers.ArbitratedScheduler |
commandAdded, executableAdded, finishedExecution, getApplicationName, getCapabilityName, getCurrentAgentName, getLogName, isRunning, isSleeping, isWaiting, justCreated, setLogger, setNew, setScheduled, setSleeping, setWaiting |
Methods inherited from class org.almendra.janet.cas.schedulers.CommandScheduler |
accept, executableRemoved, execute, execute, execute, isDaemon, logExecuting, logInterpreterNotFound, messageResuming, messageSuspending, monitorFinishedCommand, monitorRemovedWaitingCommand, monitorStartedCommand, registeredLogEvents |
Methods inherited from class org.almendra.commons.threads.ActiveSchedulingObject |
add, available, doActivity, executePrimary, finishedExecution, getNext, getNextPrim, getQueueSize, hasNext, isIdle, remove, resuming, startingExecution, suspending |
Methods inherited from class org.almendra.commons.threads.ActiveObject |
getName, getPriority, isActive, isVerbose, run, setActive, setName, setPriority, setVerbose, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
LOGGER_OBJECT_NAME
public static final java.lang.String LOGGER_OBJECT_NAME
- See Also:
- Constant Field Values
ApplicationScheduler
protected ApplicationScheduler()
ApplicationScheduler
public ApplicationScheduler(Arbitrator arbitrator,
AbstractApplication application,
Capability capability,
Logger logger,
boolean verbose,
int numPriorities)
- Parameters:
node
- arbitrator
- verbose
- numPriorities
-
getNumberOfSchedulersInSameApplication
public int getNumberOfSchedulersInSameApplication()
- Specified by:
getNumberOfSchedulersInSameApplication
in class ArbitratedScheduler
- Returns:
getLoggerObjectName
protected java.lang.String getLoggerObjectName()
- Specified by:
getLoggerObjectName
in class ArbitratedScheduler
getMaxPriority
public int getMaxPriority()
- Specified by:
getMaxPriority
in class ArbitratedScheduler