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)
PersistentJobRunner
queue
in interface PersistentJobRunner
job
- The job to run now or after the checkpoint.priority
- The priority of the job.public void queueNormalOrDrop(PersistentJob job)
PersistentJobRunner
queueNormalOrDrop
in interface PersistentJobRunner
public void setCheckpointASAP()
PersistentJobRunner
setCheckpointASAP
in interface PersistentJobRunner
public boolean hasLoaded()
PersistentJobRunner
hasLoaded
in interface PersistentJobRunner
public void queueInternal(PersistentJob job, int threadPriority)
PersistentJobRunner
queueInternal
in interface PersistentJobRunner
public void queueInternal(PersistentJob job)
PersistentJobRunner
queueInternal
in interface PersistentJobRunner
public PersistentJobRunner.CheckpointLock lock()
PersistentJobRunner
lock
in interface PersistentJobRunner
public boolean newSalt()
PersistentJobRunner
newSalt
in interface PersistentJobRunner
public boolean shuttingDown()
PersistentJobRunner
shuttingDown
in interface PersistentJobRunner