public class JobStatusDTO extends Object implements Serializable
Constructor and Description |
---|
JobStatusDTO() |
Modifier and Type | Method and Description |
---|---|
String |
getExceptionMessage() |
long |
getFinishedMillis() |
List<LogMessage> |
getLastLogMessages() |
Long |
getNextExecutionDelay() |
Object |
getResult() |
boolean |
isDone() |
void |
setDone(boolean done) |
void |
setExceptionMessage(String exceptionMessage) |
void |
setFinishedMillis(long finishedMillis) |
void |
setLastLogMessages(List<LogMessage> lastLogMessages) |
void |
setNextExecutionDelay(Long nextExceutionDelay) |
void |
setResult(Object result) |
public boolean isDone()
getExceptionMessage()
return a non-null
message.public void setDone(boolean done)
done
- The finished flag to set.public String getExceptionMessage()
null
, the job finished normallypublic void setExceptionMessage(String exceptionMessage)
exceptionMessage
- The message describing the exception,
which stopped the job.public List<LogMessage> getLastLogMessages()
null
, if no messages have been logged in
the meanwhile.public void setLastLogMessages(List<LogMessage> lastLogMessages)
lastLogMessages
- The log messages accumulated since the last
status query to set.public long getFinishedMillis()
isDone()
returns true
.public void setFinishedMillis(long finishedMillis)
finishedMillis
- The termination timestamp of the job to set.public Long getNextExecutionDelay()
getFinishedMillis()
in milliseconds.
If null
, this is a one-time job or a timed job,
which is finished and will not be executed again.
If isDone()
returns false
, this was the
intended next executio since the last execution.public void setNextExecutionDelay(Long nextExceutionDelay)
nextExceutionDelay
- The next execution delay for a timed job to set.public void setResult(Object result)
result
- The result of the job to set. Please assure,
that the result is a serializable by your RPC framework.Copyright © 2016 Clazzes.org. All rights reserved.