Package javaforce.webui.tasks
Class Task
java.lang.Object
java.lang.Thread
javaforce.webui.tasks.Task
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected booleanFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITYFields inherited from interface javaforce.webui.tasks.Status
null_status -
Constructor Summary
ConstructorsConstructorDescriptionCreates new task with action, user, ip.Creates new task with action and parent task.Creates new task with TaskEvent.Creates new task with TaskEvent and parent task. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTask()Performs task in a thread.getError()Create standard error message.booleanfinal voidrun()voidsetPercent(int value) voidsetResult(boolean success) voidSet final task status completion.voidSet progress status update.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
running
protected boolean running -
percent
public int percent -
event
-
tasks
-
taskui
-
parent
-
-
Constructor Details
-
Task
Creates new task with action, user, ip. -
Task
Creates new task with TaskEvent. -
Task
Creates new task with action and parent task. Execution will wait until parent is completed. -
Task
Creates new task with TaskEvent and parent task. Execution will wait until parent is completed.
-
-
Method Details
-
run
public final void run() -
doTask
public void doTask()Performs task in a thread. -
setStatus
Set progress status update. -
setPercent
public void setPercent(int value) - Specified by:
setPercentin interfaceStatus
-
setResult
Set final task status completion. -
setResult
public void setResult(boolean success) -
getAction
-
getResult
-
getSuccessful
public boolean getSuccessful() -
getError
Create standard error message.
-