|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.management.TaskStubbrooklyn.management.Task
public interface Task extends java.util.concurrent.Future, TaskStub
Represents a unit of work for execution. When used with an ExecutionManager or ExecutionContext it will record submission time, execution start time, end time, and any result. A task can be submitted to the ExecutionManager or ExecutionContext, in which case it will be returned, or it may be created by submission of a java.lang.Runnable or Callable and thereafter it can be treated just like a java.util.concurrent.Future.
Method Summary | |
---|---|
void
|
blockUntilEnded()
Causes calling thread to block until the task is ended. |
void
|
blockUntilStarted()
Causes calling thread to block until the task is started. |
java.lang.String
|
getDescription()
|
java.lang.String
|
getDisplayName()
|
long
|
getEndTimeUtc()
|
long
|
getStartTimeUtc()
|
java.lang.String
|
getStatusDetail(boolean multiline)
Returns detailed status, suitable for a hover. |
java.lang.String
|
getStatusSummary()
|
long
|
getSubmitTimeUtc()
|
Task
|
getSubmittedByTask()
task which submitted this task, if was submitted by a task |
java.util.Set
|
getTags()
|
java.lang.Thread
|
getThread()
The thread where the task is running, if it is running. |
boolean
|
isBegun()
Whether task has started running. |
boolean
|
isError()
Whether the task threw an error, including cancellation (implies isDone()) |
boolean
|
isSubmitted()
Whether task has been submitted |
Methods inherited from interface java.util.concurrent.Future | |
---|---|
java.util.concurrent.Future#get(), java.util.concurrent.Future#get(long, java.util.concurrent.TimeUnit), java.util.concurrent.Future#cancel(boolean), java.util.concurrent.Future#isCancelled(), java.util.concurrent.Future#isDone() |
Methods inherited from interface TaskStub | |
---|---|
getId |
Method Detail |
---|
public void blockUntilEnded()
public void blockUntilStarted()
public java.lang.String getDescription()
public java.lang.String getDisplayName()
public long getEndTimeUtc()
public long getStartTimeUtc()
public java.lang.String getStatusDetail(boolean multiline)
public java.lang.String getStatusSummary()
public long getSubmitTimeUtc()
public Task getSubmittedByTask()
public java.util.Set getTags()
public java.lang.Thread getThread()
public boolean isBegun()
public boolean isError()
public boolean isSubmitted()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.