Package com.yahoo.concurrent.maintenance
Class JobControl
java.lang.Object
com.yahoo.concurrent.maintenance.JobControl
Provides status over running maintenance jobs.
This is multi-thread safe.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a snapshot containing the currently inactive jobs in thisboolean
Returns true if this job is not currently deactivatedjobs()
Returns a snapshot of the set of jobs started on this system (whether deactivated or not).Acquire lock for running given jobvoid
Run given job (inactive or not) immediatelyvoid
started
(String jobSimpleClassName, Maintainer maintainer) Notifies this that a job was started
-
Constructor Details
-
JobControl
-
-
Method Details
-
started
Notifies this that a job was started -
jobs
Returns a snapshot of the set of jobs started on this system (whether deactivated or not). Each job is represented by its simple (omitting package) class name. -
inactiveJobs
Returns a snapshot containing the currently inactive jobs in this -
isActive
Returns true if this job is not currently deactivated -
run
Run given job (inactive or not) immediately -
lockJob
Acquire lock for running given job
-