org.perf.log.logger
Class FileWriter

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

public class FileWriter
extends java.lang.Object

This class is used to write the perf log messages to a file


Method Summary
static FileWriter getInstance()
          Returns the singleton instance of PerfLogger class
static int getLogFileMaxSize()
           
static int getLogFileNumToKeep()
           
static java.lang.String getLogFileRootDirFromProperty()
           
static java.lang.String getLogRootDir()
           
static boolean isFileWriterEnabled()
           
static void setFileWriterEnabled(boolean fileWriterEnabled)
           
static void setInstance(FileWriter instance)
           
static void setLogFileMaxSize(int logFileMaxSize)
           
static void setLogFileNumToKeep(int logFileNumToKeep)
           
static void setLogFileRootDirFromProperty(java.lang.String logFileRootDir)
           
static void write(PerfLogData perfLogData)
          This method internally calls the PerfLogger Instance to put a PERF LOG entry in to the PERFDB-LOG File.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileWriter getInstance()
                              throws java.lang.Exception
Returns the singleton instance of PerfLogger class

Returns:
Throws:
java.lang.Exception

write

public static void write(PerfLogData perfLogData)
                  throws java.lang.Exception
This method internally calls the PerfLogger Instance to put a PERF LOG entry in to the PERFDB-LOG File.

Parameters:
messageContent -
Throws:
java.lang.Exception

getLogFileRootDirFromProperty

public static java.lang.String getLogFileRootDirFromProperty()

getLogRootDir

public static java.lang.String getLogRootDir()

setFileWriterEnabled

public static void setFileWriterEnabled(boolean fileWriterEnabled)

setLogFileRootDirFromProperty

public static void setLogFileRootDirFromProperty(java.lang.String logFileRootDir)

setLogFileMaxSize

public static void setLogFileMaxSize(int logFileMaxSize)

setLogFileNumToKeep

public static void setLogFileNumToKeep(int logFileNumToKeep)

setInstance

public static void setInstance(FileWriter instance)

isFileWriterEnabled

public static boolean isFileWriterEnabled()
Returns:
the fileWriterEnabled

getLogFileMaxSize

public static int getLogFileMaxSize()

getLogFileNumToKeep

public static int getLogFileNumToKeep()