| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.sigar.win32.Win32
org.hyperic.sigar.win32.EventLog
public class EventLog
| Field Summary | |
|---|---|
| static java.lang.String | APPLICATION | 
| static int | EVENTLOG_AUDIT_FAILURE | 
| static int | EVENTLOG_AUDIT_SUCCESS | 
| static int | EVENTLOG_ERROR_TYPE | 
| static int | EVENTLOG_INFORMATION_TYPE | 
| static int | EVENTLOG_SUCCESS | 
| static int | EVENTLOG_WAIT_INFINITE | 
| static int | EVENTLOG_WARNING_TYPE | 
| static java.lang.String | SECURITY | 
| static java.lang.String | SYSTEM | 
| Fields inherited from class org.hyperic.sigar.win32.Win32 | 
|---|
| EXE_EXT | 
| Constructor Summary | |
|---|---|
| EventLog()Create an event log. | |
| Method Summary | |
|---|---|
|  void | close()Close the event log. | 
| static java.lang.String[] | getLogNames()Eventlog names are store in the registry under: SYSTEM\CurrentControlSet\Services\Eventlog This method returns the list of these entries. | 
|  int | getNewestRecord()Get the newest event log record. | 
|  int | getNumberOfRecords()Get the number of records for this event log | 
|  int | getOldestRecord()Get the oldest event log record | 
|  void | open(java.lang.String name)Open the event log. | 
|  void | openlog(java.lang.String name) | 
|  EventLogRecord | read(int recordOffset)Read an event log record. | 
|  void | waitForChange(int timeout)Wait for a change to the event log. | 
| Methods inherited from class org.hyperic.sigar.win32.Win32 | 
|---|
| findExecutable, findScriptExecutable, getFileVersion, main | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String SYSTEM
public static final java.lang.String APPLICATION
public static final java.lang.String SECURITY
public static final int EVENTLOG_SUCCESS
public static final int EVENTLOG_ERROR_TYPE
public static final int EVENTLOG_WARNING_TYPE
public static final int EVENTLOG_INFORMATION_TYPE
public static final int EVENTLOG_AUDIT_SUCCESS
public static final int EVENTLOG_AUDIT_FAILURE
public static final int EVENTLOG_WAIT_INFINITE
| Constructor Detail | 
|---|
public EventLog()
| Method Detail | 
|---|
public void open(java.lang.String name)
          throws Win32Exception
name - Name of the event log to open.
 For example: "Application", "System" or "Security".
Win32Exception - If opening the event log fails.
public void openlog(java.lang.String name)
             throws Win32Exception
Win32Exception
public void close()
           throws Win32Exception
Win32Excepion - If closing of the event log fails.
Win32Exception
public int getNumberOfRecords()
                       throws Win32Exception
Win32Exception - If the event log is not open
public int getOldestRecord()
                    throws Win32Exception
Win32Exception - If the event log is not open
public int getNewestRecord()
                    throws Win32Exception
Win32Exception - If the event log is not open
public EventLogRecord read(int recordOffset)
                    throws Win32Exception
recordOffset - The record offset to read.
Win32Exception - If the event log is not open, or
                           if the specified record could not be
                           found
public void waitForChange(int timeout)
                   throws Win32Exception
timeout - Time to wait in milliseconds.
Win32Exception - If the event log is not open, or
                           there is an error waiting for the
                           the event.public static java.lang.String[] getLogNames()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||