examples.eventlog
Class LogToDiskFile
java.lang.Object
|
+--examples.eventlog.LogToDiskFile
- All Implemented Interfaces:
- MQeEventLogInterface
- public class LogToDiskFile
- extends java.lang.Object
- implements MQeEventLogInterface
Field Summary |
protected static java.io.BufferedOutputStream |
logFile
|
protected static java.lang.String |
logName
|
static short[] |
version
|
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 logItem)
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
logName
protected static java.lang.String logName
logFile
protected static java.io.BufferedOutputStream logFile
LogToDiskFile
public LogToDiskFile()
throws java.lang.Exception
LogToDiskFile
public LogToDiskFile(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 logItem)
- 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 numberlogItem
- 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