com.bstek.dorado.view.task
public class DefaultTaskScheduler extends java.lang.Object implements TaskScheduler, TaskThreadExecutionListener
Constructor and Description |
---|
DefaultTaskScheduler() |
Modifier and Type | Method and Description |
---|---|
boolean |
dequeueTask(LongTaskThread taskThread) |
java.util.Set<LongTaskThread> |
getRunningTasks() |
java.util.Set<LongTaskThread> |
getWaitingTasks() |
void |
onAbort(LongTaskThread taskThread) |
void |
onFailure(LongTaskThread taskThread,
java.lang.Exception e) |
void |
onSuccess(LongTaskThread taskThread,
java.lang.Object result) |
protected void |
onTaskTernimate(LongTaskThread taskThread) |
void |
queueTask(LongTaskThread taskThread) |
void |
setTaskDefinition(LongTaskDefinition taskDefinition) |
protected void |
startTask(LongTaskThread taskThread) |
public void setTaskDefinition(LongTaskDefinition taskDefinition)
setTaskDefinition
in interface TaskScheduler
protected void startTask(LongTaskThread taskThread)
public void queueTask(LongTaskThread taskThread)
queueTask
in interface TaskScheduler
public boolean dequeueTask(LongTaskThread taskThread)
dequeueTask
in interface TaskScheduler
public java.util.Set<LongTaskThread> getRunningTasks()
getRunningTasks
in interface TaskScheduler
public java.util.Set<LongTaskThread> getWaitingTasks()
getWaitingTasks
in interface TaskScheduler
protected void onTaskTernimate(LongTaskThread taskThread)
public void onSuccess(LongTaskThread taskThread, java.lang.Object result)
onSuccess
in interface TaskThreadExecutionListener
public void onFailure(LongTaskThread taskThread, java.lang.Exception e)
onFailure
in interface TaskThreadExecutionListener
public void onAbort(LongTaskThread taskThread)
onAbort
in interface TaskThreadExecutionListener
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.