*/
private CachingDataStoreServer lookupServer(
String serverHost, int serverPort)
throws IOException, NotBoundException
{
ShouldRetryIo retry = new ShouldRetryIo(maxRetry, retryWait);
while (true) {
try {
return (CachingDataStoreServer) LocateRegistry.getRegistry(
serverHost, serverPort).lookup("CachingDataStoreServer");
} catch (IOException e) {
if (!retry.shouldRetry()) {
throw e;
}
}
}
}