wt.replication.unit
Class RepLogServiceHelper

java.lang.Object
  extended bywt.replication.unit.RepLogServiceHelper

public class RepLogServiceHelper
extends Object

Helper class implements static methods to log messages in log service.


Field Summary
private static String CLASSNAME
           
private static String logExtention
           
private static Hashtable logLocales
           
private static String RESOURCE
           
private static Hashtable unitLogs
           
private static Hashtable unitOpRecords
           
 
Constructor Summary
RepLogServiceHelper()
           
 
Method Summary
static void addLogToUnitOperationRecord(UnitOperationRecord opRec)
           
private static String getLogFileName(UnitOperationRecord opRec)
           
private static String getlogFilePath(UnitOperationRecord opRec)
           
static void registerUnitOperationLog(UnitOperationRecord opRec)
           
static void registerUnitOperationLog(UnitOperationRecord opRec, boolean append, Locale locale)
           
static void registerUnitOperationLog(UnitOperationRecord opRec, Locale locale)
           
static void unregisterUnitOperationLog()
           
static void writeLogMessage(String resourceBundle, String messageKey, Object[] textInserts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

logExtention

private static final String logExtention
See Also:
Constant Field Values

unitOpRecords

private static Hashtable unitOpRecords

unitLogs

private static Hashtable unitLogs

logLocales

private static Hashtable logLocales
Constructor Detail

RepLogServiceHelper

public RepLogServiceHelper()
Method Detail

registerUnitOperationLog

public static void registerUnitOperationLog(UnitOperationRecord opRec)
                                     throws WTException
Throws:
WTException

registerUnitOperationLog

public static void registerUnitOperationLog(UnitOperationRecord opRec,
                                            Locale locale)
                                     throws WTException
Throws:
WTException

registerUnitOperationLog

public static void registerUnitOperationLog(UnitOperationRecord opRec,
                                            boolean append,
                                            Locale locale)
                                     throws WTException
Throws:
WTException

addLogToUnitOperationRecord

public static void addLogToUnitOperationRecord(UnitOperationRecord opRec)
                                        throws WTException
Throws:
WTException

unregisterUnitOperationLog

public static void unregisterUnitOperationLog()
                                       throws WTException
Throws:
WTException

writeLogMessage

public static void writeLogMessage(String resourceBundle,
                                   String messageKey,
                                   Object[] textInserts)
                            throws WTException
Throws:
WTException

getlogFilePath

private static String getlogFilePath(UnitOperationRecord opRec)
                              throws WTException
Throws:
WTException

getLogFileName

private static String getLogFileName(UnitOperationRecord opRec)
                              throws WTException
Throws:
WTException