com.sun.enterprise.web.ara
Class IsolationPipeline

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<Task>
                  extended by com.sun.enterprise.web.connector.grizzly.LinkedListPipeline
                      extended by 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

Field Summary
 
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
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IsolationPipeline()
           
 
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 class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.web.connector.grizzly.Pipeline
size
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

IsolationPipeline

public IsolationPipeline()
Method Detail

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.