com.metamatrix.server.dqp.service.tracker
Class TransactionLogWriter

java.lang.Object
  extended by com.metamatrix.server.dqp.service.tracker.TransactionLogWriter

public class TransactionLogWriter
extends java.lang.Object


Field Summary
static int DEFAULT_MAX_CNCTR_NAME_LENGTH
           
static int DEFAULT_MAX_MDL_NAME_LENGTH
           
static int DEFAULT_MAX_SQL_LENGTH
           
static int DEFAULT_MAX_VDB_NAME_LENGTH
           
static int DEFAULT_MAX_VDB_VERSION_LENGTH
           
static java.lang.String MMX_COMMAND_LOG_STATEMENT
           
static java.lang.String SQL_LOG_STATEMENT
           
static java.lang.String SRC_COMMAND_LOG_STATEMENT
           
static java.lang.String TRANSACTION_LOG_STATEMENT
           
 
Constructor Summary
TransactionLogWriter(java.util.Properties props)
          Initialize this destination with the specified properties.
 
Method Summary
 void print(TransactionLogMessage message)
           
 void shutdown()
           
static java.lang.String truncString(java.lang.String in, int len)
          Simple static method to tuncate Strings to given length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_LOG_STATEMENT

public static final java.lang.String TRANSACTION_LOG_STATEMENT
See Also:
Constant Field Values

MMX_COMMAND_LOG_STATEMENT

public static final java.lang.String MMX_COMMAND_LOG_STATEMENT
See Also:
Constant Field Values

SQL_LOG_STATEMENT

public static final java.lang.String SQL_LOG_STATEMENT
See Also:
Constant Field Values

SRC_COMMAND_LOG_STATEMENT

public static final java.lang.String SRC_COMMAND_LOG_STATEMENT
See Also:
Constant Field Values

DEFAULT_MAX_VDB_NAME_LENGTH

public static final int DEFAULT_MAX_VDB_NAME_LENGTH
See Also:
Constant Field Values

DEFAULT_MAX_VDB_VERSION_LENGTH

public static final int DEFAULT_MAX_VDB_VERSION_LENGTH
See Also:
Constant Field Values

DEFAULT_MAX_CNCTR_NAME_LENGTH

public static final int DEFAULT_MAX_CNCTR_NAME_LENGTH
See Also:
Constant Field Values

DEFAULT_MAX_MDL_NAME_LENGTH

public static final int DEFAULT_MAX_MDL_NAME_LENGTH
See Also:
Constant Field Values

DEFAULT_MAX_SQL_LENGTH

public static final int DEFAULT_MAX_SQL_LENGTH
See Also:
Constant Field Values
Constructor Detail

TransactionLogWriter

public TransactionLogWriter(java.util.Properties props)
Initialize this destination with the specified properties.

Parameters:
props - the properties that this destination should use to initialize itself.
Throws:
LogDestinationInitFailedException - if there was an error during initialization.
Method Detail

print

public void print(TransactionLogMessage message)

shutdown

public void shutdown()

truncString

public static java.lang.String truncString(java.lang.String in,
                                           int len)
Simple static method to tuncate Strings to given length.

Parameters:
in - the string that may need tuncating.
len - the lenght that the string should be truncated to.
Returns:
a new String containing chars with length <= len or null if input String is null.


Copyright © 2009. All Rights Reserved.