org.opennms.netmgt.poller.pollables
Class PendingPollEvent

java.lang.Object
  extended by org.opennms.netmgt.poller.pollables.PollEvent
      extended by org.opennms.netmgt.poller.pollables.PendingPollEvent

public class PendingPollEvent
extends PollEvent

Represents a PendingPollEvent

Version:
$Id: $
Author:
Mathew Brozowski

Constructor Summary
PendingPollEvent(Event event)
          Constructor for PendingPollEvent.
 
Method Summary
 void addPending(Runnable r)
          addPending
 void complete(Event e)
          complete
 Date getDate()
          getDate
 Event getEvent()
          getEvent
 int getEventId()
          getEventId
 boolean isPending()
          isPending
 void processPending()
          processPending
 String toString()
          toString
 
Methods inherited from class org.opennms.netmgt.poller.pollables.PollEvent
getScope, hasLargerScopeThan, hasSameScope, hasScopeLargerThan, hasScopeSmallerThan, hasSmallerScopeThan, isInterfaceDown, isNodeDown, isNodeLostService, withLargestScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PendingPollEvent

public PendingPollEvent(Event event)

Constructor for PendingPollEvent.

Parameters:
event - a Event object.
Method Detail

getDate

public Date getDate()

getDate

Specified by:
getDate in class PollEvent
Returns:
a Date object.

getEventId

public int getEventId()

getEventId

Specified by:
getEventId in class PollEvent
Returns:
a int.

addPending

public void addPending(Runnable r)

addPending

Parameters:
r - a Runnable object.

getEvent

public Event getEvent()

getEvent

Returns:
a Event object.

isPending

public boolean isPending()

isPending

Returns:
a boolean.

complete

public void complete(Event e)

complete

Parameters:
e - a Event object.

processPending

public void processPending()

processPending


toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2011. All Rights Reserved.