com.bstek.dorado.view.task
public class LongTaskThread extends java.lang.Thread implements TaskMessageListener
Constructor and Description |
---|
LongTaskThread(LongTask task) |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionListener(TaskThreadExecutionListener listener) |
void |
addMessageListener(TaskThreadMessageListener listener) |
protected void |
fireTaskAbort(LongTask task) |
protected void |
fireTaskFailure(LongTask task,
java.lang.Exception e) |
protected void |
fireTaskLog(TaskLog log) |
protected void |
fireTaskStateChange(TaskStateInfo state) |
protected void |
fireTaskSuccess(LongTask task,
java.lang.Object result) |
long |
getRunningStartTime() |
LongTask |
getTask() |
long |
getWaitingStartTime() |
void |
onLogAppend(LongTask task,
TaskLog log) |
void |
onStateChange(LongTask task,
TaskStateInfo state) |
void |
removeExecutionListener(TaskThreadExecutionListener listener) |
void |
removeMessageListener(TaskThreadMessageListener listener) |
void |
run() |
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public LongTaskThread(LongTask task)
public LongTask getTask()
public long getWaitingStartTime()
public long getRunningStartTime()
public void addMessageListener(TaskThreadMessageListener listener)
public void removeMessageListener(TaskThreadMessageListener listener)
protected void fireTaskStateChange(TaskStateInfo state)
protected void fireTaskLog(TaskLog log)
public void addExecutionListener(TaskThreadExecutionListener listener)
public void removeExecutionListener(TaskThreadExecutionListener listener)
protected void fireTaskSuccess(LongTask task, java.lang.Object result)
protected void fireTaskFailure(LongTask task, java.lang.Exception e)
protected void fireTaskAbort(LongTask task)
public void onStateChange(LongTask task, TaskStateInfo state)
onStateChange
in interface TaskMessageListener
public void onLogAppend(LongTask task, TaskLog log)
onLogAppend
in interface TaskMessageListener
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.