de.cesr.more.util
Class MRuntimeDbWriter

java.lang.Object
  extended by de.cesr.more.util.MRuntimeDbWriter

public class MRuntimeDbWriter
extends Object

MORe Stores runtime information and writes these to the DB defined in params in MSqlPa when requested. This helps to avoid disturbances of runtime measurement during DB writing.

Date:
11.02.2014

Field Summary
protected  org.apache.commons.collections15.map.LinkedMap<String,Long> measurements
           
protected  MoreRunIdProvider prov
           
static String START
           
static boolean WRITE_RUN_ID
           
static boolean WRITE_VERSION_ID
           
 
Constructor Summary
MRuntimeDbWriter(MoreRunIdProvider prov)
           
 
Method Summary
 void addMeasurement(String action)
           
 void start()
           
 void stopAndStore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITE_RUN_ID

public static final boolean WRITE_RUN_ID
See Also:
Constant Field Values

WRITE_VERSION_ID

public static final boolean WRITE_VERSION_ID
See Also:
Constant Field Values

START

public static final String START
See Also:
Constant Field Values

measurements

protected org.apache.commons.collections15.map.LinkedMap<String,Long> measurements

prov

protected MoreRunIdProvider prov
Constructor Detail

MRuntimeDbWriter

public MRuntimeDbWriter(MoreRunIdProvider prov)
Method Detail

start

public void start()

addMeasurement

public void addMeasurement(String action)

stopAndStore

public void stopAndStore()