public class JobFailure extends Object implements Serializable
| Constructor and Description |
|---|
JobFailure()
No-arg constructor
|
JobFailure(JobFailure origFailure)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getBacktrace() |
String |
getError() |
Throwable |
getException() |
String |
getExceptionString() |
Date |
getFailedAt() |
Job |
getPayload() |
String |
getQueue() |
Date |
getRetriedAt() |
String |
getWorker() |
int |
hashCode() |
void |
setBacktrace(List<String> backtrace)
Set the backtrace of the exception
|
void |
setError(String error)
Set the error that occurred
|
void |
setException(Throwable exception)
Set the exception that occured.
|
void |
setExceptionString(String exceptionString)
Set the exception that occured.
|
void |
setFailedAt(Date failedAt)
Set when the error occurred.
|
void |
setPayload(Job payload)
Set the job.
|
void |
setQueue(String queue)
Set the queue the job came from.
|
void |
setRetriedAt(Date retriedAt)
Set when the job was retried.
|
void |
setWorker(String worker)
Set the name of the worker where the job failed.
|
public JobFailure()
public JobFailure(JobFailure origFailure)
origFailure - the failure to start fromIllegalArgumentException - if the origFailure is nullpublic String getWorker()
public void setWorker(String worker)
worker - the name of the workerpublic String getQueue()
public void setQueue(String queue)
queue - the queue the job came frompublic Job getPayload()
public void setPayload(Job payload)
payload - the jobpublic Throwable getException()
public void setException(Throwable exception)
exception - the kind of exception that occuredpublic String getExceptionString()
public void setExceptionString(String exceptionString)
exceptionString - the kind of exception that occured as a stringpublic String getError()
public void setError(String error)
error - the error that occurredpublic void setBacktrace(List<String> backtrace)
backtrace - the backtrace of the exceptionpublic Date getFailedAt()
public void setFailedAt(Date failedAt)
failedAt - when the error occurredpublic Date getRetriedAt()
public void setRetriedAt(Date retriedAt)
retriedAt - when the job was retriedCopyright © 2011-2013. All Rights Reserved.