org.rhq.plugins.platform.win
Class Win32EventLogDelegate

java.lang.Object
  extended by org.rhq.plugins.platform.win.Win32EventLogDelegate
All Implemented Interfaces:
EventPoller

public class Win32EventLogDelegate
extends Object
implements EventPoller

A delegate for reading windows event logs and returning them as RHQ events. Supports filtering by regular expression of the content, as well as minimum severity.

Author:
Greg Hinkle, Jay Shaughnessy

Constructor Summary
Win32EventLogDelegate(Configuration config)
           
 
Method Summary
 Set<Event> checkForNewEvents()
           
 void close()
           
 int getEventsChecked()
           
 int getEventsFired()
           
 String getEventType()
           
 Event handleEvent(org.hyperic.sigar.win32.EventLogRecord event)
           
 void open()
           
 Set<Event> poll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Win32EventLogDelegate

public Win32EventLogDelegate(Configuration config)
Method Detail

open

public void open()

close

public void close()

checkForNewEvents

@Nullable
public Set<Event> checkForNewEvents()

handleEvent

public Event handleEvent(org.hyperic.sigar.win32.EventLogRecord event)

getEventType

@NotNull
public String getEventType()
Specified by:
getEventType in interface EventPoller

poll

@Nullable
public Set<Event> poll()
Specified by:
poll in interface EventPoller

getEventsChecked

public int getEventsChecked()

getEventsFired

public int getEventsFired()


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.