public class AbstractMonitorableTask extends AbstractCancellableTask implements MonitorableTask
Modifier and Type | Field and Description |
---|---|
protected SimpleTaskStatus |
taskStatus |
cancellationRequested
Modifier | Constructor and Description |
---|---|
protected |
AbstractMonitorableTask() |
protected |
AbstractMonitorableTask(boolean autoAddTaskStatus) |
protected |
AbstractMonitorableTask(java.lang.String taskName) |
protected |
AbstractMonitorableTask(java.lang.String taskName,
boolean autoAddTaskStatus) |
Modifier and Type | Method and Description |
---|---|
void |
cancelRequest()
Request to the task that cancel.
|
protected SimpleTaskStatus |
getSimpleTaskStatus() |
TaskStatus |
getTaskStatus() |
void |
setTaskName(java.lang.String name) |
isCancellationRequested
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isCancellationRequested
protected SimpleTaskStatus taskStatus
protected AbstractMonitorableTask(java.lang.String taskName, boolean autoAddTaskStatus)
protected AbstractMonitorableTask(java.lang.String taskName)
protected AbstractMonitorableTask(boolean autoAddTaskStatus)
protected AbstractMonitorableTask()
public void setTaskName(java.lang.String name)
public TaskStatus getTaskStatus()
getTaskStatus
in interface MonitorableTask
protected SimpleTaskStatus getSimpleTaskStatus()
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
cancelRequest
in class AbstractCancellableTask