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

Handles communication with the remote server, including asking for data and parsing data, but not opening the connection or closing the connection. More...

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

List of all members.

Public Member Functions

 RemoteDataRetriever (Socket _serverConnection, Shell _shell, int _compressionType) throws IOException
void getData (ImageTraceAttributes attributes, HashMap< Integer, CallPath > _scopeMap, final ConcurrentLinkedQueue< DecompressionItemToDo > workToDo) throws IOException
 Issues a command to the remote server for the data requested, and waits for a response.
void closeConnection () throws IOException

Static Public Member Functions

static int getTimeSleep ()
static int getTimeOut ()

Static Package Functions

static int waitAndReadInt (DataInputStream receiver) throws IOException

Package Attributes

DataInputStream receiver
BufferedInputStream rcvBacking
DataOutputStream sender
final int compressionType

Private Member Functions

void requestData (int P0, int Pn, long t0, long tn, int vertRes, int horizRes) throws IOException

Private Attributes

final Socket socket

Static Private Attributes

static final int DATA = 0x44415441
static final int HERE = 0x48455245
static final int TIME_OUT = 2000
static final int TIME_SLEEP = 50

Detailed Description

Handles communication with the remote server, including asking for data and parsing data, but not opening the connection or closing the connection.

It assumes the connection has already been opened by RemoteDBOpener and can be retrieved from SpaceTimeDataControllerRemote. See protocol documentation at the end of this file.

Author:
Philip Taffet

Definition at line 33 of file RemoteDataRetriever.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.RemoteDataRetriever ( Socket  _serverConnection,
Shell  _shell,
int  _compressionType 
) throws IOException

Member Function Documentation

void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.closeConnection (  )  throws IOException
void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.getData ( ImageTraceAttributes  attributes,
HashMap< Integer, CallPath _scopeMap,
final ConcurrentLinkedQueue< DecompressionItemToDo workToDo 
) throws IOException

Issues a command to the remote server for the data requested, and waits for a response.

Parameters:
P0 The lower bound of the ranks to get
Pn The upper bound of the ranks to get
t0 The lower bound for the time to get
tn The upper bound for the time to get
vertRes The number of pixels in the vertical direction (process axis). This is used to compute a stride so that not every rank is included
horizRes The number of pixels in the horizontal direction (time axis). This is used to compute a delta_t that controls how many samples are returned per rank
Returns:
Exceptions:
IOException 

Definition at line 94 of file RemoteDataRetriever.java.

References edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.compressionType, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.HERE, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.receiver, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.requestData(), and edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.waitAndReadInt().

Referenced by edu.rice.cs.hpc.traceviewer.db.remote.SpaceTimeDataControllerRemote.fillTracesWithData().

static int edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.getTimeOut (  )  [static]
static int edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.getTimeSleep (  )  [static]
void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.requestData ( int  P0,
int  Pn,
long  t0,
long  tn,
int  vertRes,
int  horizRes 
) throws IOException [private]
static int edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.waitAndReadInt ( DataInputStream  receiver  )  throws IOException [static, package]

Member Data Documentation

final int edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.DATA = 0x44415441 [static, private]
final int edu.rice.cs.hpc.traceviewer.db.remote.RemoteDataRetriever.HERE = 0x48455245 [static, private]

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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1