org.rhq.test.arquillian
Class FakeServerInventory.CompleteDiscoveryChecker

java.lang.Object
  extended by org.rhq.test.arquillian.FakeServerInventory.CompleteDiscoveryChecker
Enclosing class:
FakeServerInventory

public static class FakeServerInventory.CompleteDiscoveryChecker
extends Object

You can waitForDiscoveryComplete() on an instance of this class for the complete discovery to finish in case your fake server commits some resources (which starts off asynchronous discovery of children).

Author:
Lukas Krejci

Constructor Summary
FakeServerInventory.CompleteDiscoveryChecker(int expectedDepth)
           
 
Method Summary
 void waitForDiscoveryComplete()
           
 void waitForDiscoveryComplete(long timeoutMillis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeServerInventory.CompleteDiscoveryChecker

public FakeServerInventory.CompleteDiscoveryChecker(int expectedDepth)
Method Detail

waitForDiscoveryComplete

public void waitForDiscoveryComplete()
                              throws InterruptedException
Throws:
InterruptedException

waitForDiscoveryComplete

public void waitForDiscoveryComplete(long timeoutMillis)
                              throws InterruptedException
Throws:
InterruptedException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.