Class NaruSchedulerImpl
java.lang.Object
net.thevpc.naru.impl.engine.scheduler.NaruSchedulerImpl
- All Implemented Interfaces:
NaruScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidvoidawaitTermination(long timeout) voidvoidhold()booleanisHeld()voidonTaskStatusChanged(NaruTask task) voidonTerminated(long tid) voidonUnhold(long tid) voidready(long id) intvoidvoidvoidresume()voidvoidvoidshutdown()voidstart()status()voidstep(long... tids) voidstepAll()voidstepAny()voidtick(long tid) int
-
Constructor Details
-
NaruSchedulerImpl
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceNaruScheduler
-
reloadState
public void reloadState() -
awaitTermination
public void awaitTermination()- Specified by:
awaitTerminationin interfaceNaruScheduler
-
awaitTermination
public void awaitTermination(long timeout) - Specified by:
awaitTerminationin interfaceNaruScheduler
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceNaruScheduler
-
hold
public void hold()- Specified by:
holdin interfaceNaruScheduler
-
resume
public void resume()- Specified by:
resumein interfaceNaruScheduler
-
onUnhold
public void onUnhold(long tid) -
isHeld
public boolean isHeld()- Specified by:
isHeldin interfaceNaruScheduler
-
onTerminated
public void onTerminated(long tid) -
tick
public void tick(long tid) - Specified by:
tickin interfaceNaruScheduler
-
stepAny
public void stepAny()- Specified by:
stepAnyin interfaceNaruScheduler
-
step
public void step(long... tids) - Specified by:
stepin interfaceNaruScheduler
-
stepAll
public void stepAll()- Specified by:
stepAllin interfaceNaruScheduler
-
runRetention
public void runRetention()- Specified by:
runRetentionin interfaceNaruScheduler
-
runBlockedDrain
public void runBlockedDrain()- Specified by:
runBlockedDrainin interfaceNaruScheduler
-
requeue
-
onTaskStatusChanged
-
enqueue
-
ready
public void ready(long id) -
status
- Specified by:
statusin interfaceNaruScheduler
-
workerCount
public int workerCount()- Specified by:
workerCountin interfaceNaruScheduler
-
activeCount
public int activeCount()- Specified by:
activeCountin interfaceNaruScheduler
-
readyCount
public int readyCount()- Specified by:
readyCountin interfaceNaruScheduler
-