Package org.jobrunr.server
Class JobZooKeeper
- java.lang.Object
-
- org.jobrunr.server.JobZooKeeper
-
- All Implemented Interfaces:
java.lang.Runnable
public class JobZooKeeper extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description JobZooKeeper(BackgroundJobServer backgroundJobServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Thread
getThreadProcessingJob(Job job)
int
getWorkQueueSize()
boolean
isMaster()
void
notifyThreadIdle()
void
run()
void
setIsMaster(boolean isMaster)
void
startProcessing(Job job, java.lang.Thread thread)
void
stop()
void
stopProcessing(Job job)
-
-
-
Constructor Detail
-
JobZooKeeper
public JobZooKeeper(BackgroundJobServer backgroundJobServer)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
stop
public void stop()
-
setIsMaster
public void setIsMaster(boolean isMaster)
-
isMaster
public boolean isMaster()
-
startProcessing
public void startProcessing(Job job, java.lang.Thread thread)
-
stopProcessing
public void stopProcessing(Job job)
-
getWorkQueueSize
public int getWorkQueueSize()
-
getThreadProcessingJob
public java.lang.Thread getThreadProcessingJob(Job job)
-
notifyThreadIdle
public void notifyThreadIdle()
-
-