com.sun.enterprise.web.ara
Class IsolationPipeline
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<Task>
com.sun.enterprise.web.connector.grizzly.LinkedListPipeline
com.sun.enterprise.web.ara.IsolationPipeline
- All Implemented Interfaces:
- Pipeline, TaskListener, Serializable, Cloneable, Iterable<Task>, Collection<Task>, Deque<Task>, List<Task>, Queue<Task>
public class IsolationPipeline
- extends LinkedListPipeline
- implements TaskListener
Customized Pipeline which wrap the original Task
instance with an instance of IsolatedTask
- Author:
- Jeanfrancois Arcand
- See Also:
- Serialized Form
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.LinkedListPipeline |
isStarted, maxQueueSizeInBytes, maxThreads, minSpareThreads, minThreads, name, pipelineStat, port, priority, threadCount, threadsIncrement, threadsTimeout, waitingThreads, workerThreads |
|
Method Summary |
void |
addTask(Task task)
Execute the wrapped Task |
protected void |
increaseWorkerThread(int increment,
boolean startThread)
Create new WorkerThreadImpl. |
void |
initPipeline()
Initialize this pipeline by first initializing its parent, and then by
creating the caches and the rule executor engine. |
void |
taskEvent(TaskEvent event)
Return the IsolatedTask to the pool. |
void |
taskStarted(TaskEvent event)
|
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.LinkedListPipeline |
expireKey, getCurrentThreadCount, getCurrentThreadsBusy, getMaxSpareThreads, getMaxThreads, getMinSpareThreads, getName, getPipelineStatistic, getQueueSizeInBytes, getTask, getTaskQueuedCount, getWaitingThread, interruptThread, isEmpty, setMaxThreads, setMinSpareThreads, setMinThreads, setName, setPipelineStatistic, setPort, setPriority, setQueueSizeInBytes, setThreadsIncrement, setThreadsTimeout, startPipeline, stopPipeline, toString |
| Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from interface com.sun.enterprise.web.connector.grizzly.Pipeline |
size |
IsolationPipeline
public IsolationPipeline()
initPipeline
public void initPipeline()
- Initialize this pipeline by first initializing its parent, and then by
creating the caches and the rule executor engine.
- Specified by:
initPipeline in interface Pipeline- Overrides:
initPipeline in class LinkedListPipeline
increaseWorkerThread
protected void increaseWorkerThread(int increment,
boolean startThread)
- Create new
WorkerThreadImpl. This method must be invoked
from a synchronized block.
- Overrides:
increaseWorkerThread in class LinkedListPipeline
addTask
public void addTask(Task task)
- Execute the wrapped
Task
- Specified by:
addTask in interface Pipeline- Overrides:
addTask in class LinkedListPipeline
taskStarted
public void taskStarted(TaskEvent event)
taskEvent
public void taskEvent(TaskEvent event)
- Return the
IsolatedTask to the pool.
- Specified by:
taskEvent in interface TaskListener
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.