org.opennms.netmgt.protocols
Class AbstractPoll

java.lang.Object
  extended by org.opennms.netmgt.protocols.AbstractPoll
All Implemented Interfaces:
Poll
Direct Known Subclasses:
Ssh

public abstract class AbstractPoll
extends Object
implements Poll

Abstract AbstractPoll class.

Version:
$Id: $
Author:
ranger

Field Summary
protected  int m_timeout
           
 
Constructor Summary
AbstractPoll()
           
 
Method Summary
 int getTimeout()
          Get the timeout in milliseconds.
 PollStatus poll()
          poll
abstract  PollStatus poll(TimeoutTracker tracker)
          poll
 void setTimeout(int milliseconds)
          Set the timeout in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_timeout

protected int m_timeout
Constructor Detail

AbstractPoll

public AbstractPoll()
Method Detail

setTimeout

public void setTimeout(int milliseconds)
Set the timeout in milliseconds.

Parameters:
milliseconds - the timeout

getTimeout

public int getTimeout()
Get the timeout in milliseconds.

Returns:
the timeout

poll

public abstract PollStatus poll(TimeoutTracker tracker)
                         throws InsufficientParametersException

poll

Parameters:
tracker - a TimeoutTracker object.
Returns:
a PollStatus object.
Throws:
InsufficientParametersException - if any.

poll

public PollStatus poll()
                throws InsufficientParametersException

poll

Specified by:
poll in interface Poll
Returns:
a PollStatus object.
Throws:
InsufficientParametersException - if any.


Copyright © 2011. All Rights Reserved.