Class PendingPollEvent
- java.lang.Object
-
- org.opennms.netmgt.poller.pollables.PollEvent
-
- org.opennms.netmgt.poller.pollables.PendingPollEvent
-
public class PendingPollEvent extends PollEvent
Represents a PendingPollEvent- Author:
- Mathew Brozowski
-
-
Constructor Summary
Constructors Constructor Description PendingPollEvent(IEvent event)Constructor for PendingPollEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPending(Runnable r)addPendingvoidcomplete(IEvent e)Changes the state of this event from "pending" to "not pending".DategetDate()getDateIEventgetEvent()getEventintgetEventId()getEventIdbooleanisPending()isPendingvoidprocessPending()Synchronously processes all pending tasks attached to this event.StringtoString()-
Methods inherited from class org.opennms.netmgt.poller.pollables.PollEvent
getScope, hasLargerScopeThan, hasSameScope, hasScopeLargerThan, hasScopeSmallerThan, hasSmallerScopeThan, isInterfaceDown, isNodeDown, isNodeLostService, withLargestScope
-
-
-
-
Method Detail
-
getDate
public Date getDate()
getDate
-
getEventId
public int getEventId()
getEventId
- Specified by:
getEventIdin classPollEvent- Returns:
- a int.
-
isPending
public boolean isPending()
isPending
- Returns:
- a boolean.
-
complete
public void complete(IEvent e)
Changes the state of this event from "pending" to "not pending". It is important that this call be thread-safe and idempotent because it may be invoked by multipleDefaultPollContext.onEvent(IEvent)threads.- Parameters:
e- aIEventobject.
-
processPending
public void processPending()
Synchronously processes all pending tasks attached to this event. It is important that this call be thread-safe and idempotent because it may be invoked by multipleDefaultPollContext#onEvent(Event)threads.
-
-