org.rhq.core.pluginapi.event
Interface EventPoller

All Known Implementing Classes:
LogFileEventPoller

public interface EventPoller

A class that polls at a designated interval for Events of a specific type from a specific source.


Method Summary
 String getEventType()
          Returns the type of event (i.e. the EventDefinition name) that this poller checks for.
 Set<Event> poll()
          Poll for new Events (i.e.
 

Method Detail

getEventType

@NotNull
String getEventType()
Returns the type of event (i.e. the EventDefinition name) that this poller checks for.

Returns:
the type of event (i.e. the EventDefinition name) that this poller checks for

poll

@Nullable
Set<Event> poll()
Poll for new Events (i.e. Events that have occurred since the last time poll() was called).

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.