|
||||||||||
| 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.DefaultReadTask
com.sun.enterprise.web.connector.grizzly.blocking.ReadBlockingTask
public class ReadBlockingTask
Process a blocking socket. By default, SSL is using blocking mode.
| Field Summary | |
|---|---|
protected boolean |
isSecure
If the Task handling an SSL based request. |
protected PipelineStatistic |
pipelineStat
The PipelineStatistic objects used when gathering statistics. |
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.DefaultReadTask |
|---|
algorithm, byteBuffer, bytesAvailable, inputStream, maxPostSize, processorTask, taskContext, taskEvent, useByteBufferView, useDirectByteBuffer |
| 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.Task |
|---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
| Constructor Summary | |
|---|---|
ReadBlockingTask()
|
|
| Method Summary | |
|---|---|
void |
attachProcessor(DefaultProcessorTask processorTask)
Force this task to always use the same ProcessorTask
instance. |
void |
doTask()
Dispatch an Http request to a ProcessorTask |
protected void |
finishConnection()
Gracefully close the blocking socket. |
PipelineStatistic |
getPipelineStatistic()
Return the PipelineStatistic object used
to gather statistic; |
boolean |
getSecure()
Return the isSecure. |
Socket |
getSocket()
Return the current Socket used by this instance |
void |
recycle()
Clear the current state and make this object ready for another request. |
void |
setPipelineStatistic(PipelineStatistic pipelineStatistic)
Set the PipelineStatistic object used to gather statistic; |
void |
setSecure(boolean isSecure)
Set the isSecure attribute. |
void |
taskEvent(TaskEvent event)
Receive notification from other Task and recycle this task. |
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.DefaultReadTask |
|---|
attachProcessor, configureProcessorTask, detachProcessor, doTask, executeProcessorTask, getByteBuffer, getIdleTime, getProcessorTask, initialize, manageKeepAlive, registerKey, returnTask, setByteBuffer, setBytesAvailable, setIdleTime, terminate |
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.TaskBase |
|---|
addTaskListener, call, cancelTask, clearTaskListeners, execute, fireTaskEvent, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, 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 |
| Field Detail |
|---|
protected PipelineStatistic pipelineStat
PipelineStatistic objects used when gathering statistics.
protected boolean isSecure
Task handling an SSL based request.
| Constructor Detail |
|---|
public ReadBlockingTask()
| Method Detail |
|---|
public void attachProcessor(DefaultProcessorTask processorTask)
ProcessorTask
instance.
public void doTask()
throws IOException
ProcessorTask
doTask in interface TaskdoTask in class DefaultReadTaskIOExceptionpublic void recycle()
recycle in interface Taskrecycle in class DefaultReadTaskprotected void finishConnection()
finishConnection in class DefaultReadTaskpublic void taskEvent(TaskEvent event)
Task and recycle this task.
taskEvent in interface TaskListenertaskEvent in class DefaultReadTaskpublic Socket getSocket()
Socket used by this instance
getSocket in class TaskBaseSocket used by this instancepublic void setPipelineStatistic(PipelineStatistic pipelineStatistic)
PipelineStatistic object used to gather statistic;
public PipelineStatistic getPipelineStatistic()
PipelineStatistic object used
to gather statistic;
public void setSecure(boolean isSecure)
public boolean getSecure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||