|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
The response interface used by the core.
| Nested Class Summary | |
|---|---|
static class |
Response.Status
|
| Method Summary | |
|---|---|
void |
setAborted()
This will end the job execution and report it as a aborted. |
void |
setAborted(String message)
This will end the job execution and report it as a aborted. |
void |
setContinue(String nextCommand)
This method will continue the configuration of the job with a new command to the plugin. |
void |
setDone(String message)
This will end the job execution and report it as a success. |
void |
setDone(String message,
Job.ExecutionTime estimatedExecutionTime)
This will end the configuration of a job and set the estimated execution time for it. |
void |
setError(String message,
List<? extends Throwable> errorList)
This will end the job execution and report it as a failure. |
| Method Detail |
|---|
void setContinue(String nextCommand)
throws PermissionDeniedException
nextCommand - the next command to the plugin
PermissionDeniedException - If another command isn't allowed, ie. after an Request.COMMAND_EXECUTE command
void setDone(String message,
Job.ExecutionTime estimatedExecutionTime)
message - An optional messageestimatedExecutionTime - An estimated execution time for the job, null is the same as ExecutionTime.LONGvoid setDone(String message)
message - A message containing any relevant information about what the plugin did, or null.
void setError(String message,
List<? extends Throwable> errorList)
message - Information about the reason for the errorerrorList - Detailed information about the errorvoid setAborted()
void setAborted(String message)
message - A message containing any relevant information about what the plugin did, or null.
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||