Websphere MQ Everyplace

examples.eventlog
Class LogToNTEventLog

java.lang.Object
  |
  +--examples.eventlog.LogToNTEventLog
All Implemented Interfaces:
MQeEventLogInterface

public class LogToNTEventLog
extends java.lang.Object
implements MQeEventLogInterface


Field Summary
protected static JavaNT ntInterface
           
static short[] version
           
 
Constructor Summary
LogToNTEventLog()
           
LogToNTEventLog(java.lang.String logName)
           
 
Method Summary
 void activate(java.lang.String logName)
           This is called to activate the event log handler.
 void close()
           Called to close the event log handler and to perform any cleanup as necessary.
 void finalize()
           
 void logOutput(byte logType, int logNumber, java.lang.Object logMsg)
           Called by WebSphere MQ Everyplace to output a message to the event log handler.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version

ntInterface

protected static JavaNT ntInterface
Constructor Detail

LogToNTEventLog

public LogToNTEventLog()
                throws java.lang.Exception

LogToNTEventLog

public LogToNTEventLog(java.lang.String logName)
                throws java.lang.Exception
Method Detail

activate

public void activate(java.lang.String logName)
              throws java.lang.Exception
Description copied from interface: MQeEventLogInterface

This is called to activate the event log handler.

Specified by:
activate in interface MQeEventLogInterface
Parameters:
logName - A String used to identify this event log.
Returns:
None
java.lang.Exception

logOutput

public void logOutput(byte logType,
                      int logNumber,
                      java.lang.Object logMsg)
Description copied from interface: MQeEventLogInterface

Called by WebSphere MQ Everyplace to output a message to the event log handler.

Specified by:
logOutput in interface MQeEventLogInterface
Parameters:
logType - Type of log entry.
 Normally one of the following :    
                EVENTLOG_SUCCESS                                
                EVENTLOG_ERROR_TYPE                             
                EVENTLOG_WARNING_TYPE                           
                EVENTLOG_INFORMATION_TYPE                       
                EVENTLOG_AUDIT_SUCCESS                          
                EVENTLOG_AUDIT_FAILURE  
 
logNumber - An integer log number
logMsg - An object to be written to the log
Returns:
None

close

public void close()
Description copied from interface: MQeEventLogInterface

Called to close the event log handler and to perform any cleanup as necessary.

Specified by:
close in interface MQeEventLogInterface
Returns:
None

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

Websphere MQ Everyplace