edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread Class Reference

Collaboration diagram for edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread:
Collaboration graph
[legend]

List of all members.

Classes

class  DecompressionItemToDo

Public Member Functions

 DecompressionThread (ProcessTimelineService ptlService, HashMap< Integer, CallPath > _scopeMap, ImageTraceAttributes attributes, ConcurrentLinkedQueue< DecompressionItemToDo > workToDo, ConcurrentLinkedQueue< Integer > timelinesAvailableForRendering, AtomicInteger ranksRemainingToDecompress, IThreadListener listener)
void run ()

Static Public Attributes

static final int COMPRESSION_TYPE_MASK = 0xFFFF
static final short ZLIB_COMPRESSSED = 1

Package Attributes

final ProcessTimelineService timelineServ
final HashMap< Integer, CallPathscopeMap
final ImageTraceAttributes attributes

Static Package Attributes

static boolean first = true

Private Member Functions

void decompress (DecompressionItemToDo toDecomp) throws IOException
DataRecord[] readTimeCPIDArray (byte[] packedTraceLine, int length, long t0, long tn, int compressed) throws IOException
 Reads from the stream and creates an array of Timestamp-CPID pairs containing the data for this rank.

Private Attributes

final ConcurrentLinkedQueue
< DecompressionItemToDo
workToDo
final ConcurrentLinkedQueue
< Integer > 
timelinesAvailableForRendering
final IThreadListener listener
final AtomicInteger ranksRemainingToDecompress

Detailed Description

Definition at line 32 of file DecompressionThread.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.DecompressionThread ( ProcessTimelineService  ptlService,
HashMap< Integer, CallPath _scopeMap,
ImageTraceAttributes  attributes,
ConcurrentLinkedQueue< DecompressionItemToDo workToDo,
ConcurrentLinkedQueue< Integer >  timelinesAvailableForRendering,
AtomicInteger  ranksRemainingToDecompress,
IThreadListener  listener 
)

Member Function Documentation

void edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.decompress ( DecompressionItemToDo  toDecomp  )  throws IOException [private]
DataRecord [] edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.readTimeCPIDArray ( byte[]  packedTraceLine,
int  length,
long  t0,
long  tn,
int  compressed 
) throws IOException [private]

Reads from the stream and creates an array of Timestamp-CPID pairs containing the data for this rank.

Parameters:
packedTraceLine 
length The number of Timestamp-CPID pairs in this rank (not the length in bytes)
t0 The start time
tn The end time
compressed 
Returns:
The array of data for this rank
Exceptions:
IOException 

Definition at line 168 of file DecompressionThread.java.

References edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.COMPRESSION_TYPE_MASK, and edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.ZLIB_COMPRESSSED.

Referenced by edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.decompress().

void edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.run (  ) 
Returns:
The index of a ProcessTimeline that has been uncompressed and is now ready for rendering. Returns null if there aren't any yet for any reason. The unavailability may be a temporary condition that will be resolved in a moment, or it may mean that all available timelines have been processed. Unless this method returns null, it will not return a value that it has returned before.

Definition at line 96 of file DecompressionThread.java.

References edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.decompress(), edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.first, edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.listener, edu.rice.cs.hpc.traceviewer.db.remote.IThreadListener.notify(), edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.ranksRemainingToDecompress, and edu.rice.cs.hpc.traceviewer.db.remote.DecompressionThread.workToDo.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1