Package org.gearman.client
Class GearmanJobResultImpl
- java.lang.Object
-
- org.gearman.client.GearmanJobResultImpl
-
- All Implemented Interfaces:
GearmanJobResult
public class GearmanJobResultImpl extends Object implements GearmanJobResult
-
-
Constructor Summary
Constructors Constructor Description GearmanJobResultImpl(byte[] handle)
GearmanJobResultImpl(byte[] handle, boolean succeeded, byte[] results, byte[] warnings, byte[] exceptions, long numerator, long denominator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GearmanJobResultImpl
addJobResult(GearmanJobResultImpl that)
GearmanJobResult
copy()
long
getDenominator()
Retrieves the denominator value as generated by theGearmanJob
byte[]
getExceptions()
Retrieve the exceptions generated by theGearmanJob
which generated this GearmanJobResultbyte[]
getJobHandle()
Retrieves the job handle for the job which generated this GearmanJobResult.long
getNumerator()
Retrieves the numerator value as generated by theGearmanJob
byte[]
getResults()
Retrieve the results generated by theGearmanJob
which generated this GearmanJobResultbyte[]
getWarnings()
Retrieve the warnings generated by theGearmanJob
which generated this GearmanJobResultboolean
jobSucceeded()
Determine with the job completed with out encountering exceptions or problems.
-
-
-
Method Detail
-
addJobResult
public GearmanJobResultImpl addJobResult(GearmanJobResultImpl that)
-
getResults
public byte[] getResults()
Description copied from interface:GearmanJobResult
Retrieve the results generated by theGearmanJob
which generated this GearmanJobResult- Specified by:
getResults
in interfaceGearmanJobResult
- Returns:
- the results generated by the job or an empty array if no results were generated.
-
getWarnings
public byte[] getWarnings()
Description copied from interface:GearmanJobResult
Retrieve the warnings generated by theGearmanJob
which generated this GearmanJobResult- Specified by:
getWarnings
in interfaceGearmanJobResult
- Returns:
- the warnings generated by the job or an empty array if no warnings were generated.
-
getExceptions
public byte[] getExceptions()
Description copied from interface:GearmanJobResult
Retrieve the exceptions generated by theGearmanJob
which generated this GearmanJobResult- Specified by:
getExceptions
in interfaceGearmanJobResult
- Returns:
- the exceptions generated by the job or an empty array if no exceptions were generated.
-
getDenominator
public long getDenominator()
Description copied from interface:GearmanJobResult
Retrieves the denominator value as generated by theGearmanJob
- Specified by:
getDenominator
in interfaceGearmanJobResult
- Returns:
- denominator value.
-
getNumerator
public long getNumerator()
Description copied from interface:GearmanJobResult
Retrieves the numerator value as generated by theGearmanJob
- Specified by:
getNumerator
in interfaceGearmanJobResult
- Returns:
- numerator value.
-
getJobHandle
public byte[] getJobHandle()
Description copied from interface:GearmanJobResult
Retrieves the job handle for the job which generated this GearmanJobResult.- Specified by:
getJobHandle
in interfaceGearmanJobResult
- Returns:
- the job handle
-
jobSucceeded
public boolean jobSucceeded()
Description copied from interface:GearmanJobResult
Determine with the job completed with out encountering exceptions or problems.- Specified by:
jobSucceeded
in interfaceGearmanJobResult
- Returns:
- true if the job completed successfully, else false.
-
copy
public GearmanJobResult copy()
-
-