org.rhq.core.pluginapi.event.log
Class LogFileEventPoller
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFileEventPoller
public LogFileEventPoller(EventContext eventContext,
String eventType,
File logFile,
LogEntryProcessor entryProcessor)
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-2011 Red Hat, Inc.. All Rights Reserved.