org.opennms.netmgt.mock
Class PollAnticipator
java.lang.Object
org.opennms.netmgt.mock.PollAnticipator
- public class PollAnticipator
- extends java.lang.Object
- Author:
- brozow
TODO To change the template for this generated type comment go to Window -
Preferences - Java - Code Style - Code Templates
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_anticipatedPolls
java.util.List m_anticipatedPolls
m_unanticipatedPolls
java.util.List m_unanticipatedPolls
PollAnticipator
public PollAnticipator()
anticipateAllServices
public void anticipateAllServices(MockElement element)
- Parameters:
element
-
- Returns:
anticipatePoll
public void anticipatePoll(MockService svc)
- Parameters:
svc
-
poll
public void poll(MockService service)
- Parameters:
service
-
reset
public void reset()
unanticipatedPolls
public java.util.Collection unanticipatedPolls()
- Returns:
waitFor
private void waitFor(long millis)
- Parameters:
millis
-
waitForAnticipated
public java.util.Collection waitForAnticipated(long millis)
- Waits for millis milliseconds for the anticipated polls to come. If they
all come in before the timeout return an empty list. Otherwise return a
readonly list of the services that were anticipated but not received.
Generated by eevans on May 29 2005 2015.