| | |
| | | import java.net.SocketTimeoutException; |
| | | import java.util.SortedSet; |
| | | import java.util.TreeSet; |
| | | import java.util.concurrent.Callable; |
| | | import java.util.concurrent.atomic.AtomicBoolean; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | |
| | | import org.opends.server.replication.service.ReplicationBroker; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.util.TestTimer; |
| | | import org.opends.server.util.TestTimer.CallableVoid; |
| | | import org.testng.annotations.AfterClass; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.DataProvider; |
| | |
| | | .maxSleep(30, SECONDS) |
| | | .sleepTimes(100, MILLISECONDS) |
| | | .toTimer(); |
| | | timer.repeatUntilSuccess(new Callable<Void>() |
| | | timer.repeatUntilSuccess(new CallableVoid() |
| | | { |
| | | @Override |
| | | public Void call() throws Exception |
| | | public void call() throws Exception |
| | | { |
| | | assertTrue(isConnected(dsId), "checkConnection: DS " + dsId + " is not connected to the RS"); |
| | | return null; |
| | | } |
| | | }); |
| | | } |
| | |
| | | .maxSleep(30, SECONDS) |
| | | .sleepTimes(500, MILLISECONDS) |
| | | .toTimer(); |
| | | timer.repeatUntilSuccess(new Callable<Void>() |
| | | timer.repeatUntilSuccess(new CallableVoid() |
| | | { |
| | | @Override |
| | | public Void call() throws Exception |
| | | public void call() throws Exception |
| | | { |
| | | assertEquals(domain.getStatus(), expectedStatus); |
| | | return null; |
| | | } |
| | | }); |
| | | } |