|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.ara.TaskWrapper
public abstract class TaskWrapper
Wrap an instance of a Task
| Field Summary | |
|---|---|
protected Task |
wrappedTask
The wrapped Task instance. |
| Fields inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
| Constructor Summary | |
|---|---|
TaskWrapper()
|
|
| Method Summary | |
|---|---|
void |
addTaskListener(TaskListener task)
Add a Task to this class. |
Object |
call()
|
void |
cancelTask(String message,
String httpCode)
Cancel the task. |
void |
clearTaskListeners()
Remove all listeners |
abstract void |
doTask()
Execute the Task |
abstract void |
execute()
Execute the Task< using this thread or a Pipeline. |
KeepAliveStats |
getKeepAliveStats()
Gets the KeepAliveStats associated with this task. |
boolean |
getRecycle()
Return true if this Task will be recycled. |
RequestGroupInfo |
getRequestGroupInfo()
Gets the RequestGroupInfo from this task. |
SelectionKey |
getSelectionKey()
Return the SelectionKey associated with this tasks. |
SelectorThread |
getSelectorThread()
Returns the SelectorThread used by this task. |
ArrayList |
getTaskListeners()
Return the ArrauList containing the listeners. |
int |
getType()
Return this Tash type. |
Task |
getWrappedTask()
Return the wrapped Task |
boolean |
isMonitoringEnabled()
Returns true if monitoring has been enabled, false
otherwise. |
void |
recycle()
Recycle this task. |
void |
removeTaskListener(TaskListener task)
Remove a Task to this class. |
abstract void |
run()
Execute the Task< using this thread or a Pipeline. |
void |
setRecycle(boolean recycle)
Recycle the Task after every doTask invokation. |
void |
setSelectionKey(SelectionKey key)
Set the SelectionKey |
void |
setSelectorThread(SelectorThread selectorThread)
Set the SelectorThread used by this task. |
abstract Task |
wrap(Task task)
Wrap an instance of a Task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
getPipeline, setPipeline |
| Field Detail |
|---|
protected Task wrappedTask
Task instance.
| Constructor Detail |
|---|
public TaskWrapper()
| Method Detail |
|---|
public abstract void doTask()
throws IOException
Task
doTask in interface TaskIOExceptionpublic abstract Task wrap(Task task)
Task
public abstract void execute()
Task< using this thread or a Pipeline.
execute in interface Taskpublic abstract void run()
Task< using this thread or a Pipeline.
run in interface Runnablepublic Task getWrappedTask()
Task
public void addTaskListener(TaskListener task)
TaskTask to this class.
addTaskListener in interface Task
public Object call()
throws Exception
call in interface CallableException
public void cancelTask(String message,
String httpCode)
Task
cancelTask in interface Taskpublic void clearTaskListeners()
Task
clearTaskListeners in interface Taskpublic KeepAliveStats getKeepAliveStats()
TaskKeepAliveStats associated with this task.
getKeepAliveStats in interface Taskpublic boolean getRecycle()
Tasktrue if this Task will be recycled.
getRecycle in interface Taskpublic RequestGroupInfo getRequestGroupInfo()
TaskRequestGroupInfo from this task.
getRequestGroupInfo in interface Taskpublic SelectionKey getSelectionKey()
TaskSelectionKey associated with this tasks.
getSelectionKey in interface Taskpublic SelectorThread getSelectorThread()
TaskSelectorThread used by this task.
getSelectorThread in interface Taskpublic ArrayList getTaskListeners()
TaskArrauList containing the listeners.
getTaskListeners in interface Taskpublic int getType()
TaskTash type.
getType in interface Taskpublic boolean isMonitoringEnabled()
Tasktrue if monitoring has been enabled, false
otherwise.
isMonitoringEnabled in interface Taskpublic void recycle()
Task
recycle in interface Taskpublic void removeTaskListener(TaskListener task)
TaskTask to this class.
removeTaskListener in interface Taskpublic void setRecycle(boolean recycle)
Task
setRecycle in interface Taskpublic void setSelectionKey(SelectionKey key)
TaskSelectionKey
setSelectionKey in interface Taskpublic void setSelectorThread(SelectorThread selectorThread)
TaskSelectorThread used by this task.
setSelectorThread in interface Task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||