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


Field Summary
protected  int m_timeout
           
 
Constructor Summary
AbstractPoll()
           
 
Method Summary
 int getTimeout()
          Get the timeout in milliseconds.
 PollStatus poll()
          Poll based on the configuration provided by the implementation
abstract  PollStatus poll(TimeoutTracker tracker)
           
 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
Throws:
InsufficientParametersException

poll

public PollStatus poll()
                throws InsufficientParametersException
Description copied from interface: Poll
Poll based on the configuration provided by the implementation

Specified by:
poll in interface Poll
Returns:
a PollStatus status object
Throws:
InsufficientParametersException


Copyright © 2009. All Rights Reserved.