|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.management.TaskAdaptablebrooklyn.management.Task
brooklyn.util.task.TaskInternal
com.google.common.util.concurrent.ListenableFuture
@Beta public interface TaskInternal extends Task
All tasks being passed to the ExecutionManager should implement this. Users are strongly encouraged to use (or extend) BasicTask, rather than implementing a task from scratch. The methods on this interface will change in subsequent releases. Because this is marked as beta, the normal deprecation policy for these methods does not apply.
Method Summary | |
---|---|
void
|
applyTagModifier(Function modifier)
|
boolean
|
blockUntilStarted(Duration timeout)
|
boolean
|
cancel()
|
java.lang.String
|
getBlockingDetails()
returns a textual message giving details while the task is blocked |
Task
|
getBlockingTask()
returns a task that this task is blocked on |
ExecutionManager
|
getExecutionManager()
|
java.lang.Object
|
getExtraStatusText()
|
java.util.concurrent.Callable
|
getJob()
|
ExecutionList
|
getListeners()
|
java.util.Set
|
getMutableTags()
|
long
|
getQueuedTimeUtc()
if the job is queued for submission (e.g. by another task) it can indicate that fact (and time) here; note tasks can (and often are) submitted without any queueing, in which case this value may be -1 |
java.util.concurrent.Future
|
getResult()
|
void
|
initExecutionManager(ExecutionManager em)
|
void
|
initResult(ListenableFuture result)
|
boolean
|
isQueuedAndNotSubmitted()
|
boolean
|
isQueuedOrSubmitted()
|
void
|
markQueued()
marks the task as queued for execution |
void
|
resetBlockingDetails()
|
void
|
resetBlockingTask()
|
void
|
runListeners()
|
void
|
setBlockingDetails(java.lang.String blockingDetails)
allows a task user to specify why a task is blocked; for use immediately before a blocking/wait, and typically cleared immediately afterwards; referenced by management api to inspect a task which is blocking |
void
|
setBlockingTask(Task blockingTask)
|
void
|
setEndTimeUtc(long val)
|
void
|
setExtraStatusText(java.lang.Object extraStatus)
|
void
|
setJob(java.util.concurrent.Callable job)
|
void
|
setStartTimeUtc(long currentTimeMillis)
|
void
|
setSubmitTimeUtc(long currentTimeMillis)
|
void
|
setSubmittedByTask(Task task)
|
void
|
setThread(java.lang.Thread thread)
|
Methods inherited from interface Task | |
---|---|
blockUntilEnded, blockUntilEnded, blockUntilStarted, get, getDescription, getDisplayName, getEndTimeUtc, getId, getStartTimeUtc, getStatusDetail, getStatusSummary, getSubmitTimeUtc, getSubmittedByTask, getTags, getThread, getUnchecked, getUnchecked, isBegun, isError, isSubmitted |
Methods inherited from interface TaskAdaptable | |
---|---|
asTask |
Method Detail |
---|
public void applyTagModifier(Function modifier)
public boolean blockUntilStarted(Duration timeout)
public boolean cancel()
public java.lang.String getBlockingDetails()
public Task getBlockingTask()
public ExecutionManager getExecutionManager()
public java.lang.Object getExtraStatusText()
public java.util.concurrent.Callable getJob()
public ExecutionList getListeners()
public java.util.Set getMutableTags()
public long getQueuedTimeUtc()
public java.util.concurrent.Future getResult()
public void initExecutionManager(ExecutionManager em)
public void initResult(ListenableFuture result)
public boolean isQueuedAndNotSubmitted()
public boolean isQueuedOrSubmitted()
public void markQueued()
public void resetBlockingDetails()
public void resetBlockingTask()
public void runListeners()
public void setBlockingDetails(java.lang.String blockingDetails)
public void setBlockingTask(Task blockingTask)
public void setEndTimeUtc(long val)
public void setExtraStatusText(java.lang.Object extraStatus)
public void setJob(java.util.concurrent.Callable job)
public void setStartTimeUtc(long currentTimeMillis)
public void setSubmitTimeUtc(long currentTimeMillis)
public void setSubmittedByTask(Task task)
public void setThread(java.lang.Thread thread)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.