org.rhq.core.pluginapi.event.log
Class LogFileEventPoller

java.lang.Object
  extended by org.rhq.core.pluginapi.event.log.LogFileEventPoller
All Implemented Interfaces:
EventPoller

public class LogFileEventPoller
extends Object
implements EventPoller

An Event poller that polls a log file for new entries.


Constructor Summary
LogFileEventPoller(EventContext eventContext, String eventType, File logFile, LogEntryProcessor entryProcessor)
           
 
Method Summary
 String getEventType()
          Returns the type of event (i.e. the EventDefinition name) that this poller checks for.
 String getSourceLocation()
           
 Set<Event> poll()
          Poll for new Events (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFileEventPoller

public LogFileEventPoller(EventContext eventContext,
                          String eventType,
                          File logFile,
                          LogEntryProcessor entryProcessor)
Method Detail

getEventType

@NotNull
public String getEventType()
Description copied from interface: EventPoller
Returns the type of event (i.e. the EventDefinition name) that this poller checks for.

Specified by:
getEventType in interface EventPoller
Returns:
the type of event (i.e. the EventDefinition name) that this poller checks for

getSourceLocation

@NotNull
public String getSourceLocation()

poll

@Nullable
public Set<Event> poll()
Description copied from interface: EventPoller
Poll for new Events (i.e. Events that have occurred since the last time poll() was called).

Specified by:
poll in interface EventPoller
Returns:
any new Events (i.e. Events that have occurred since the last time poll() was called)


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.