Package org.gearman.client
Class GearmanJobStatusImpl
- java.lang.Object
-
- org.gearman.client.GearmanJobStatusImpl
-
- All Implemented Interfaces:
GearmanJobStatus
,GearmanServerResponseHandler
public class GearmanJobStatusImpl extends Object implements GearmanServerResponseHandler, GearmanJobStatus
-
-
Method Summary
All Methods Instance Methods Concrete 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.void
handleEvent(GearmanPacket repsonse)
boolean
isDone()
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.String
toString()
-
-
-
Method Detail
-
getDenominator
public long getDenominator()
Description copied from interface:GearmanJobStatus
Retrieves the denominator value of theGearmanJob
at the time the GearmanJobStatus was generated.- Specified by:
getDenominator
in interfaceGearmanJobStatus
- Returns:
- denominator value.
-
getNumerator
public long getNumerator()
Description copied from interface:GearmanJobStatus
Retrieves the numerator value of theGearmanJob
at the time the GearmanJobStatus was generated.- Specified by:
getNumerator
in interfaceGearmanJobStatus
- Returns:
- numerator value.
-
isKnown
public boolean isKnown()
Description copied from interface:GearmanJobStatus
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.- Specified by:
isKnown
in interfaceGearmanJobStatus
- Returns:
- true if the job is known, else returns false.
-
isRunning
public boolean isRunning()
Description copied from interface:GearmanJobStatus
Determine if the job is currently running on a worker.- Specified by:
isRunning
in interfaceGearmanJobStatus
- Returns:
- true if the job is running, else returns false.
-
handleEvent
public void handleEvent(GearmanPacket repsonse) throws GearmanException
- Specified by:
handleEvent
in interfaceGearmanServerResponseHandler
- Throws:
GearmanException
-
isDone
public boolean isDone()
- Specified by:
isDone
in interfaceGearmanServerResponseHandler
-
-