public class DummyJobRunner extends java.lang.Object implements PersistentJobRunner
PersistentJobRunner.CheckpointLock| Constructor and Description |
|---|
DummyJobRunner(Executor executor,
ClientContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasLoaded()
Has the queue started yet?
|
PersistentJobRunner.CheckpointLock |
lock()
Obtain a lock which will prevent checkpointing until it is unlocked.
|
boolean |
newSalt()
For persistent requests, return true if the bloom filter salt has changed when loading the
requests.
|
void |
queue(PersistentJob job,
int priority)
Start a job immediately unless we are about to write a checkpoint.
|
void |
queueInternal(PersistentJob job)
Start an "internal" job.
|
void |
queueInternal(PersistentJob job,
int threadPriority)
Start an "internal" job.
|
void |
queueNormalOrDrop(PersistentJob job)
Queue the job at low thread priority or drop it if persistence is disabled.
|
void |
setCheckpointASAP()
Commit ASAP.
|
boolean |
shuttingDown()
If true, the node is shutting down
|
public DummyJobRunner(Executor executor, ClientContext context)
public void queue(PersistentJob job, int priority)
PersistentJobRunnerqueue in interface PersistentJobRunnerjob - The job to run now or after the checkpoint.priority - The priority of the job.public void queueNormalOrDrop(PersistentJob job)
PersistentJobRunnerqueueNormalOrDrop in interface PersistentJobRunnerpublic void setCheckpointASAP()
PersistentJobRunnersetCheckpointASAP in interface PersistentJobRunnerpublic boolean hasLoaded()
PersistentJobRunnerhasLoaded in interface PersistentJobRunnerpublic void queueInternal(PersistentJob job, int threadPriority)
PersistentJobRunnerqueueInternal in interface PersistentJobRunnerpublic void queueInternal(PersistentJob job)
PersistentJobRunnerqueueInternal in interface PersistentJobRunnerpublic PersistentJobRunner.CheckpointLock lock()
PersistentJobRunnerlock in interface PersistentJobRunnerpublic boolean newSalt()
PersistentJobRunnernewSalt in interface PersistentJobRunnerpublic boolean shuttingDown()
PersistentJobRunnershuttingDown in interface PersistentJobRunner