org.opennms.netmgt.poller.pollables
Class PollEvent

java.lang.Object
  extended by org.opennms.netmgt.poller.pollables.PollEvent
Direct Known Subclasses:
DbPollEvent, PendingPollEvent

public abstract class PollEvent
extends Object

Abstract PollEvent class.

Version:
$Id: $
Author:
Mathew Brozowski

Constructor Summary
protected PollEvent(Scope scope)
          Constructor for PollEvent.
 
Method Summary
abstract  Date getDate()
          getDate
abstract  int getEventId()
          getEventId
 Scope getScope()
          getScope
 boolean hasLargerScopeThan(PollEvent e)
          hasLargerScopeThan
 boolean hasSameScope(PollEvent e)
          hasSameScope
 boolean hasScopeLargerThan(Scope scope)
          hasScopeLargerThan
 boolean hasScopeSmallerThan(Scope scope)
          hasScopeSmallerThan
 boolean hasSmallerScopeThan(PollEvent e)
          hasSmallerScopeThan
 boolean isInterfaceDown()
          isInterfaceDown
 boolean isNodeDown()
          isNodeDown
 boolean isNodeLostService()
          isNodeLostService
static PollEvent withLargestScope(PollEvent a, PollEvent b)
          withLargestScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollEvent

protected PollEvent(Scope scope)

Constructor for PollEvent.

Parameters:
scope - a Scope object.
Method Detail

getScope

public Scope getScope()

getScope

Returns:
a Scope object.

getEventId

public abstract int getEventId()

getEventId

Returns:
a int.

getDate

public abstract Date getDate()

getDate

Returns:
a Date object.

isNodeDown

public boolean isNodeDown()

isNodeDown

Returns:
a boolean.

isInterfaceDown

public boolean isInterfaceDown()

isInterfaceDown

Returns:
a boolean.

isNodeLostService

public boolean isNodeLostService()

isNodeLostService

Returns:
a boolean.

hasLargerScopeThan

public boolean hasLargerScopeThan(PollEvent e)

hasLargerScopeThan

Parameters:
e - a PollEvent object.
Returns:
a boolean.

hasSmallerScopeThan

public boolean hasSmallerScopeThan(PollEvent e)

hasSmallerScopeThan

Parameters:
e - a PollEvent object.
Returns:
a boolean.

hasScopeLargerThan

public boolean hasScopeLargerThan(Scope scope)

hasScopeLargerThan

Parameters:
scope - a Scope object.
Returns:
a boolean.

hasScopeSmallerThan

public boolean hasScopeSmallerThan(Scope scope)

hasScopeSmallerThan

Parameters:
scope - a Scope object.
Returns:
a boolean.

hasSameScope

public boolean hasSameScope(PollEvent e)

hasSameScope

Parameters:
e - a PollEvent object.
Returns:
a boolean.

withLargestScope

public static PollEvent withLargestScope(PollEvent a,
                                         PollEvent b)

withLargestScope

Parameters:
a - a PollEvent object.
b - a PollEvent object.
Returns:
a PollEvent object.


Copyright © 2011. All Rights Reserved.