public interface EventContext
| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMUM_POLLING_INTERVAL
Minimum polling interval, in seconds.
|
| Modifier and Type | Method and Description |
|---|---|
org.hyperic.sigar.SigarProxy |
getSigar()
Gets an instance of Sigar.
|
void |
publishEvent(org.rhq.core.domain.event.Event event)
Publishes the specified Event.
|
void |
registerEventPoller(EventPoller poller,
int pollingInterval)
Tells the plugin container to start polling for Events using the specified EventPoller.
|
void |
registerEventPoller(EventPoller poller,
int pollingInterval,
String sourceLocation)
Tells the plugin container to start polling the specified source for Events using the specified EventPoller.
|
void |
unregisterEventPoller(String eventType)
Tells the plugin container to stop polling for Events of the specified type (i.e.
|
void |
unregisterEventPoller(String eventType,
String sourceLocation)
Tells the plugin container to stop polling the specified source for Events of the specified type (i.e.
|
static final int MINIMUM_POLLING_INTERVAL
void publishEvent(@NotNull
org.rhq.core.domain.event.Event event)
event - the Event to be publishedvoid registerEventPoller(@NotNull
EventPoller poller,
int pollingInterval)
poller - the poller that will be usedpollingInterval - the number of seconds to wait between polls. If the value less than
MINIMUM_POLLING_INTERVAL is specified, MINIMUM_POLLING_INTERVAL will be
used instead.void registerEventPoller(@NotNull
EventPoller poller,
int pollingInterval,
@NotNull
String sourceLocation)
poller - the poller that will be usedpollingInterval - the number of seconds to wait between polls. If the value less than
MINIMUM_POLLING_INTERVAL is specified, MINIMUM_POLLING_INTERVAL will besourceLocation - the location of the source to start pollingvoid unregisterEventPoller(@NotNull
String eventType)
EventDefinition name).eventType - the type of Event to stop polling forvoid unregisterEventPoller(@NotNull
String eventType,
@NotNull
String sourceLocation)
EventDefinition name).eventType - the type of Event to stop polling forsourceLocation - the location of the source to stop polling@Nullable org.hyperic.sigar.SigarProxy getSigar()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.