org.perf.log.logger
Class DBWriter

java.lang.Object
  extended by org.perf.log.logger.DBWriter

public class DBWriter
extends java.lang.Object


Constructor Summary
DBWriter()
           
 
Method Summary
static boolean isDbWriterEnabled()
           
static void setDbWriterEnabled(boolean dbWriterEnabled)
           
static int write(PerfLogData perfLogData)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBWriter

public DBWriter()
Method Detail

write

public static int write(PerfLogData perfLogData)
                 throws java.lang.Exception
Parameters:
perfLogDataJSONObj -
Returns:
int value indicating whether the database insert is SUCCESS/FAILURE
Throws:
java.lang.Exception

setDbWriterEnabled

public static void setDbWriterEnabled(boolean dbWriterEnabled)

isDbWriterEnabled

public static boolean isDbWriterEnabled()
Returns:
the dbWriterEnabled