AbstractDBOpener.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.traceviewer.db;
00002 
00003 import java.io.IOException;
00004 
00005 import org.eclipse.jface.action.IStatusLineManager;
00006 import org.eclipse.ui.IWorkbenchWindow;
00007 
00008 import edu.rice.cs.hpc.data.experiment.InvalExperimentException;
00009 import edu.rice.cs.hpc.traceviewer.spaceTimeData.SpaceTimeDataController;
00010 import edu.rice.cs.hpc.traceviewer.db.local.LocalDBOpener;
00011 import edu.rice.cs.hpc.traceviewer.db.remote.RemoteDBOpener;
00012 
00022 public abstract class AbstractDBOpener {
00023 
00024     
00025 
00042     public abstract SpaceTimeDataController openDBAndCreateSTDC(IWorkbenchWindow window, IStatusLineManager statusMgr)
00043             throws IOException, InvalExperimentException, Exception;
00044 
00045     // Our current policy on closing: Except for back-to-back connections to the
00046     // same server, we should close the server when we are making a new
00047     // connection, local or remote.
00048 
00049     
00050     /*****
00051      * closing the database.
00052      * The caller is responsible to call this method to terminate the connection (in case of remote database)
00053      * or closing local file (local database)
00054      */
00055     public abstract void end();
00056 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1