TPTP 4.3.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.execution.recorder.http.remote
Class GlobalPacketQueue

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.eclipse.hyades.execution.recorder.http.remote.GlobalPacketQueue
All Implemented Interfaces:
java.lang.Runnable

Deprecated. This is not public API. It will be moved to internal in TPTP 5

public class GlobalPacketQueue
extends java.lang.Thread

This class is used to hold a linked list of strings that represent the data obtained from listening to the http data going from browser to server and server to browser. That data is then used to generate XML fragments and then encapsulated in strings. The generated strings are put on this 'queue' in real time, and a separated process pulls the strings off the queue and writes them to the .rec file when no other activity is taking place.


Field Summary
protected  java.util.LinkedList packetQueue
          Deprecated.  
protected  PacketWriter packetWriter
          Deprecated.  
protected  boolean shuttingDown
          Deprecated.  
protected  long timeOfLastPackedAdd
          Deprecated.  
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GlobalPacketQueue(PacketWriter writer)
          Deprecated.  
 
Method Summary
 void add(byte[] buf, int offset, int len)
          Deprecated.  
 void add(java.lang.String thisPacket)
          Deprecated.  
 void initiateShutdown()
          Deprecated.  
 java.util.Collection removeAll()
          Deprecated. Returns the LinkedList representing the queue and creates a new LinkedList to represent the queue.
protected  void removeAndWrite()
          Deprecated.  
 void run()
          Deprecated.  
protected  void waitForInactivity()
          Deprecated. Sleep until no packet has been added for PACKET_WAIT_TOLERANCE from the previous packet add.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

packetWriter

protected PacketWriter packetWriter
Deprecated. 

shuttingDown

protected boolean shuttingDown
Deprecated. 

timeOfLastPackedAdd

protected long timeOfLastPackedAdd
Deprecated. 

packetQueue

protected java.util.LinkedList packetQueue
Deprecated. 
Constructor Detail

GlobalPacketQueue

public GlobalPacketQueue(PacketWriter writer)
Deprecated. 
Method Detail

initiateShutdown

public void initiateShutdown()
Deprecated. 

run

public void run()
Deprecated. 

removeAndWrite

protected void removeAndWrite()
Deprecated. 

waitForInactivity

protected void waitForInactivity()
Deprecated. 
Sleep until no packet has been added for PACKET_WAIT_TOLERANCE from the previous packet add.


add

public void add(byte[] buf,
                int offset,
                int len)
Deprecated. 

add

public void add(java.lang.String thisPacket)
Deprecated. 

removeAll

public java.util.Collection removeAll()
Deprecated. 
Returns the LinkedList representing the queue and creates a new LinkedList to represent the queue. Returns null if no items are currently in the queue.

Returns:
LinkedList representing the queue.

TPTP 4.3.0 Testing Tools Project
Public API Specification