|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.connector.grizzly.TaskBase
com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask
public class AsyncProcessorTask
A Task that wraps the execution of an asynchronous execution
of a ProcessorTask. Internaly, this class invoke the associated
AsyncExecutor method to execute the ProcessorTask
lifecycle operations.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.TaskBase |
|---|
key, listeners, pipeline, recycle, selectorThread, type |
| Fields inherited from interface com.sun.enterprise.web.connector.grizzly.AsyncTask |
|---|
COMPLETED, EXECUTE, INTERRUPTED, POST_EXECUTE, PRE_EXECUTE |
| Fields inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
| Constructor Summary | |
|---|---|
AsyncProcessorTask()
|
|
| Method Summary | |
|---|---|
void |
doTask()
Execute the AsyncExecutor based on the stage
of the ProcessorTask execution. |
AsyncExecutor |
getAsyncExecutor()
Get the AsyncExecutor. |
ProcessorTask |
getProcessorTask()
Return the ProcessorTask. |
int |
getStage()
Return the stage of the current execution. |
void |
recycle()
Reset the object. |
void |
setAsyncExecutor(AsyncExecutor asyncExecutor)
Set the AsyncExecutor used by this Task
to delegate the execution of a ProcessorTask. |
void |
setProcessorTask(ProcessorTask processorTask)
Set the ProcessorTask that needs to be executed
asynchronously. |
void |
setStage(int stage)
|
void |
taskEvent(TaskEvent event)
Not used. |
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.TaskBase |
|---|
addTaskListener, call, cancelTask, clearTaskListeners, execute, fireTaskEvent, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, getSocket, getTaskListeners, getType, isMonitoringEnabled, removeTaskListener, run, setPipeline, setRecycle, setSelectionKey, setSelectorThread |
| 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 |
|---|
addTaskListener, cancelTask, clearTaskListeners, execute, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, getTaskListeners, getType, isMonitoringEnabled, removeTaskListener, setPipeline, setRecycle, setSelectionKey, setSelectorThread |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Constructor Detail |
|---|
public AsyncProcessorTask()
| Method Detail |
|---|
public void doTask()
throws IOException
AsyncExecutor based on the stage
of the ProcessorTask execution.
doTask in interface TaskIOExceptionpublic void taskEvent(TaskEvent event)
taskEvent in interface TaskListenertaskEvent in class TaskBasepublic int getStage()
stage of the current execution.
getStage in interface AsyncTaskpublic void recycle()
recycle in interface Taskrecycle in class TaskBasepublic void setAsyncExecutor(AsyncExecutor asyncExecutor)
AsyncExecutor used by this Task
to delegate the execution of a ProcessorTask.
setAsyncExecutor in interface AsyncTaskpublic AsyncExecutor getAsyncExecutor()
AsyncExecutor.
getAsyncExecutor in interface AsyncTaskpublic void setProcessorTask(ProcessorTask processorTask)
ProcessorTask that needs to be executed
asynchronously.
setProcessorTask in interface AsyncTaskpublic ProcessorTask getProcessorTask()
ProcessorTask.
getProcessorTask in interface AsyncTaskpublic void setStage(int stage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||