Package org.gearman.client
Interface GearmanJobStatus
-
- All Known Implementing Classes:
GearmanJobStatusImpl
public interface GearmanJobStatus
A GearmanJobStatus represents the state of a particularGearmanJob
, as known by Gearman Job Server that it was submitted to, at a specific point in time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getDenominator()
Retrieves the denominator value of theGearmanJob
at the time the GearmanJobStatus was generated.long
getNumerator()
Retrieves the numerator value of theGearmanJob
at the time the GearmanJobStatus was generated.boolean
isKnown()
Determine if the job is currently known by the Gearman Job Server to which theGearmanJob
was submitted.boolean
isRunning()
Determine if the job is currently running on a worker.
-
-
-
Method Detail
-
getDenominator
long getDenominator()
Retrieves the denominator value of theGearmanJob
at the time the GearmanJobStatus was generated.- Returns:
- denominator value.
-
getNumerator
long getNumerator()
Retrieves the numerator value of theGearmanJob
at the time the GearmanJobStatus was generated.- Returns:
- numerator value.
-
isKnown
boolean isKnown()
Determine if the job is currently known by the Gearman Job Server to which theGearmanJob
was submitted. A job is known to the Gearman Job Server if it has been submitted to the server and has not yet completed.- Returns:
- true if the job is known, else returns false.
-
isRunning
boolean isRunning()
Determine if the job is currently running on a worker.- Returns:
- true if the job is running, else returns false.
-
-