public class JobFailure extends Object implements Serializable
| Constructor and Description |
|---|
JobFailure()
No-argument constructor.
|
JobFailure(JobFailure origFailure)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getBacktrace() |
String |
getError() |
Date |
getFailedAt() |
Job |
getPayload() |
String |
getQueue() |
Date |
getRetriedAt() |
Throwable |
getThrowable() |
String |
getThrowableString() |
String |
getWorker() |
int |
hashCode() |
void |
setBacktrace(List<String> backtrace)
Set the backtrace of the throwable
|
void |
setError(String error)
Set the error that occurred
|
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 |
setThrowable(Throwable throwable)
Set the throwable that occurred.
|
void |
setThrowableString(String throwableString)
Set the exception that occurred.
|
void |
setWorker(String worker)
Set the name of the worker where the job failed.
|
String |
toString() |
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 getThrowable()
public void setThrowable(Throwable throwable)
throwable - the kind of throwable that occurredpublic String getThrowableString()
public void setThrowableString(String throwableString)
throwableString - the kind of exception that occurred 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 throwablepublic 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-2015. All Rights Reserved.