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(org.rhq.core.domain.configuration.Configuration config)
           
 
Method Summary
 Set<org.rhq.core.domain.event.Event> checkForNewEvents()
           
 void close()
           
 int getEventsChecked()
           
 int getEventsFired()
           
 String getEventType()
           
 org.rhq.core.domain.event.Event handleEvent(org.hyperic.sigar.win32.EventLogRecord event)
           
 void open()
           
 Set<org.rhq.core.domain.event.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(org.rhq.core.domain.configuration.Configuration config)
Method Detail

open

public void open()

close

public void close()

checkForNewEvents

@Nullable
public Set<org.rhq.core.domain.event.Event> checkForNewEvents()

handleEvent

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

getEventType

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

poll

@Nullable
public Set<org.rhq.core.domain.event.Event> poll()
Specified by:
poll in interface EventPoller

getEventsChecked

public int getEventsChecked()

getEventsFired

public int getEventsFired()


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