org.eclipse.test.internal.performance.results
Class DB_Results

java.lang.Object
  extended by org.eclipse.test.internal.performance.results.DB_Results

public class DB_Results
extends java.lang.Object

Specific and private implementation of DB class to get massive results from performance results database. TODO (frederic) Should be at least a subclass of DB...


Method Summary
static java.lang.String[] getBuilds()
          Returns all the builds names read from the database.
static java.lang.String[] getComponents()
          Get all components read from database.
static java.lang.String getLastBaselineBuild(java.lang.String date)
          Return the ID of the last baseline build before the given date.
static java.lang.String getLastCurrentBuild()
          Return the ID of the last baseline build.
static java.util.List getScenarios()
          Returns all the scenarios names read from the database.
static java.util.Map queryAllScenarios()
          Get all scenarios read from database.
static void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shutdown

public static void shutdown()

getBuilds

public static java.lang.String[] getBuilds()
Returns all the builds names read from the database.

Returns:
The list of all builds names matching the scenario pattern used while reading data

getComponents

public static java.lang.String[] getComponents()
Get all components read from database.

Returns:
A list of component names matching the given pattern

getLastBaselineBuild

public static java.lang.String getLastBaselineBuild(java.lang.String date)
Return the ID of the last baseline build before the given date.

Parameters:
date - The date the baseline must be run before. If null return the last baseline build stored in the DB.
Returns:
the ID of the last baseline build before the given date or null if none was run before it...

getLastCurrentBuild

public static java.lang.String getLastCurrentBuild()
Return the ID of the last baseline build.

Returns:
the ID of the last baseline build.

getScenarios

public static java.util.List getScenarios()
Returns all the scenarios names read from the database.

Returns:
The list of all scenarios matching the pattern for a given build.
See Also:
internalQueryBuildScenarios(String, String)

queryAllScenarios

public static java.util.Map queryAllScenarios()
Get all scenarios read from database.

Returns:
A list of all scenario names matching the default pattern