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 void
addPending(Runnable r)
addPendingvoid
complete(IEvent e)
Changes the state of this event from "pending" to "not pending".Date
getDate()
getDateIEvent
getEvent()
getEventint
getEventId()
getEventIdboolean
isPending()
isPendingvoid
processPending()
Synchronously processes all pending tasks attached to this event.String
toString()
-
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:
getEventId
in 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
- aIEvent
object.
-
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.
-
-