wt.replication.unit
Class UnitLogWriter

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

public class UnitLogWriter
extends Object

interface API for writing records to the replication log


Field Summary
static String LOGNAME
           
 
Constructor Summary
UnitLogWriter()
           
 
Method Summary
static void attachOperationRecordLogContent(UnitOperationRecord opRec, String id)
          add records related to this unitOperationRecord as html content records are filtered using the id to match 'unitOpRecKey'
static void attachOpRecContent(ContentHolder holder, String filename)
          attach file as content to the operation record
static EventLog getLog(String name)
           
static String getOperationRecordHTML(String id)
          search replication log for records relating to this OpRec result is a filename for the result file
static void writeLogRecord(String serviceName, String eventName, WTUnit unit, Hashtable properties, String message)
          log records write a record to the 'replication' log.
static void writeLogRecord(String serviceName, String eventName, WTUnit unit, Hashtable properties, String messageRbName, String messageRbKey, Object[] messageTextInserts)
          write a record to the 'replication' log using WTMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGNAME

public static String LOGNAME
Constructor Detail

UnitLogWriter

public UnitLogWriter()
Method Detail

writeLogRecord

public static void writeLogRecord(String serviceName,
                                  String eventName,
                                  WTUnit unit,
                                  Hashtable properties,
                                  String message)
log records write a record to the 'replication' log. all params are used to fill out LogRecord attributes.


writeLogRecord

public static void writeLogRecord(String serviceName,
                                  String eventName,
                                  WTUnit unit,
                                  Hashtable properties,
                                  String messageRbName,
                                  String messageRbKey,
                                  Object[] messageTextInserts)
write a record to the 'replication' log using WTMessage. The last three params define a localizable message specified by the messageRbKey in the messageRbName resource bundle the messageTextInserts are used to fill out the message. The other params usage is similar to the writeLogRecord method above.


getLog

public static EventLog getLog(String name)
                       throws WTException
Throws:
WTException

attachOperationRecordLogContent

public static void attachOperationRecordLogContent(UnitOperationRecord opRec,
                                                   String id)
add records related to this unitOperationRecord as html content records are filtered using the id to match 'unitOpRecKey'


getOperationRecordHTML

public static String getOperationRecordHTML(String id)
                                     throws IOException
search replication log for records relating to this OpRec result is a filename for the result file

Throws:
IOException

attachOpRecContent

public static void attachOpRecContent(ContentHolder holder,
                                      String filename)
attach file as content to the operation record