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

Handles the protocol and commands to set up the session with the server. More...

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

List of all members.

Public Member Functions

 RemoteDBOpener (DatabaseAccessInfo connectionInfo)
SpaceTimeDataController openDBAndCreateSTDC (IWorkbenchWindow window, IStatusLineManager statusMgr) throws InvalExperimentException, Exception
 This prepares the database for retrieving data and creates a SpaceTimeDataController from that data.
void end ()

Private Member Functions

LocalTunneling createSSHTunnel (IWorkbenchWindow window, LocalTunneling tunnel, int port) throws JSchException
TraceName[] formatTraceNames (int traceCount) throws IOException
GZIPInputStream getXmlStream (String serverURL, int port, int xmlMessagePortNumber) throws IOException
void connectToServer (IWorkbenchWindow window, String serverURL, int port) throws UnknownHostException, IOException
void initDataIOStream () throws IOException
void sendInfoPacket (DataOutputStream _sender, SpaceTimeDataControllerRemote stData) throws IOException
boolean sendOpenDB (String serverPathToDB) throws IOException, SocketException

Private Attributes

final DatabaseAccessInfo connectionInfo
DataOutputStream sender
DataInputStream receiver

Static Private Attributes

static final int PROTOCOL_VERSION = 0x00010001
static final String LOCALHOST = "localhost"
static Socket serverConnection = null
static LocalTunneling tunnelMain
static LocalTunneling tunnelXML
static RemoteUserInfo remoteUserInfo

Detailed Description

Handles the protocol and commands to set up the session with the server.

For more information on message structure, see protocol documentation at the end of RemoteDataReceiver

Author:
Philip Taffet

Definition at line 39 of file RemoteDBOpener.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.RemoteDBOpener ( DatabaseAccessInfo  connectionInfo  ) 

Definition at line 74 of file RemoteDBOpener.java.


Member Function Documentation

void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.connectToServer ( IWorkbenchWindow  window,
String  serverURL,
int  port 
) throws UnknownHostException, IOException [private]
LocalTunneling edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.createSSHTunnel ( IWorkbenchWindow  window,
LocalTunneling  tunnel,
int  port 
) throws JSchException [private]
void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.end (  )  [virtual]
TraceName [] edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.formatTraceNames ( int  traceCount  )  throws IOException [private]
GZIPInputStream edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.getXmlStream ( String  serverURL,
int  port,
int  xmlMessagePortNumber 
) throws IOException [private]
void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.initDataIOStream (  )  throws IOException [private]
SpaceTimeDataController edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.openDBAndCreateSTDC ( IWorkbenchWindow  window,
IStatusLineManager  statusMgr 
) throws InvalExperimentException, Exception [virtual]

This prepares the database for retrieving data and creates a SpaceTimeDataController from that data.

The local implementation (LocalDBOpener) should return a SpaceTimeDataControllerLocal while the remote implementation (RemoteDBOpener) should return a SpaceTimeDataControllerRemote.

Parameters:
window 
args The command line arguments used to start the application
statusMgr 
Returns:
Exceptions:
IOException 
Exception 
InvalExperimentException 

Implements edu.rice.cs.hpc.traceviewer.db.AbstractDBOpener.

Definition at line 88 of file RemoteDBOpener.java.

References edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.connectionInfo, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.connectToServer(), edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.createSSHTunnel(), edu.rice.cs.hpc.traceviewer.db.DatabaseAccessInfo.databasePath, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.formatTraceNames(), edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.getXmlStream(), edu.rice.cs.hpc.traceviewer.db.DatabaseAccessInfo.isTunnelEnabled(), edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.LOCALHOST, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.receiver, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.remoteUserInfo, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.sender, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.sendInfoPacket(), edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.sendOpenDB(), edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.serverConnection, edu.rice.cs.hpc.traceviewer.db.DatabaseAccessInfo.serverName, edu.rice.cs.hpc.traceviewer.db.DatabaseAccessInfo.serverPort, edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.tunnelMain, and edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.tunnelXML.

void edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.sendInfoPacket ( DataOutputStream  _sender,
SpaceTimeDataControllerRemote  stData 
) throws IOException [private]
boolean edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.sendOpenDB ( String  serverPathToDB  )  throws IOException, SocketException [private]

Member Data Documentation

final String edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener.LOCALHOST = "localhost" [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