examples.eventlog
Class LogToNTEventLog
java.lang.Object
|
+--examples.eventlog.LogToNTEventLog
All Implemented Interfaces: MQeEventLogInterface
public class LogToNTEventLog extends java.lang.Object implements MQeEventLogInterface
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
version
public static short[] version
ntInterface
protected static JavaNT ntInterface
LogToNTEventLog
public LogToNTEventLog ()
throws java.lang.Exception
LogToNTEventLog
public LogToNTEventLog (java.lang.String logName)
throws java.lang.Exception
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 numberlogMsg - 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