|
SynSoft Java Standard Library |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.synsoft.win32.Win32EventLog
This class provides access to the Win32 API event log functionality.
Field Summary | |
static int |
EVENTLOG_ERROR_TYPE
Causes events to be reported as errors |
static int |
EVENTLOG_INFORMATION_TYPE
Causes events to be reported as informational |
static int |
EVENTLOG_WARNING_TYPE
Causes events to be reported as warnings |
static Version |
scm_version
Constant instance of version information for class. |
Constructor Summary | |
Win32EventLog()
Construction |
|
Win32EventLog(java.lang.String eventSource)
|
Method Summary | |
void |
close()
Closes the event log. |
protected void |
finalize()
|
static boolean |
isEventSourceRegistered(java.lang.String eventSource)
Determines whether the given event source is already registered in the system. |
void |
open(java.lang.String eventSource)
Opens the event log with the given name. |
static void |
registerResources(java.lang.String eventSource)
Registers the module containing the native implementation as a Win32 event source. |
void |
reportEvent(int eventType,
java.lang.String event)
|
void |
reportEvent(java.lang.String event)
|
static void |
unregisterResources(java.lang.String eventSource)
Deregisters the module containing the native implementation as a Win32 event source. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int EVENTLOG_ERROR_TYPE
public static final int EVENTLOG_WARNING_TYPE
public static final int EVENTLOG_INFORMATION_TYPE
public static final Version scm_version
Constructor Detail |
public Win32EventLog()
public Win32EventLog(java.lang.String eventSource) throws Win32EventLogException
Method Detail |
protected void finalize()
finalize
in class java.lang.Object
public static boolean isEventSourceRegistered(java.lang.String eventSource)
public static void registerResources(java.lang.String eventSource) throws Win32EventLogException
public static void unregisterResources(java.lang.String eventSource) throws Win32EventLogException
public void open(java.lang.String eventSource) throws Win32EventLogException
public void close() throws Win32EventLogException
public void reportEvent(java.lang.String event)
public void reportEvent(int eventType, java.lang.String event)
|
version 2.0.1.231 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |