Class AbstractPoll
- java.lang.Object
-
- org.opennms.netmgt.provision.support.ssh.AbstractPoll
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_timeout
-
Constructor Summary
Constructors Constructor Description AbstractPoll()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getTimeout()
Get the timeout in milliseconds.PollStatus
poll()
pollabstract PollStatus
poll(TimeoutTracker tracker)
pollvoid
setTimeout(int milliseconds)
Set the timeout in milliseconds.
-
-
-
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
- aTimeoutTracker
object.- Returns:
- a
PollStatus
object. - Throws:
InsufficientParametersException
- if any.
-
poll
public PollStatus poll() throws InsufficientParametersException
poll
- Specified by:
poll
in interfacePoll
- Returns:
- a
PollStatus
object. - Throws:
InsufficientParametersException
- if any.
-
-