LOG.debug("Poll interval = " + pollInterval);
try {
// get gateway and retrieve property data source
LOG.debug("Creating dispel process client from uri...");
DispelProcessClientREST gateway = new DispelProcessClientREST(new URI(gwURIString));
LOG.debug("Done.");
ProcessingStatus status = gateway.getStatus();
LOG.debug("Waiting for root gateway to initialise.");
while (!status.isInitialised())
{
if (status.isError()) {
throw new ActivityUserException(
new RequestInitialisationFailedException());
}
Thread.sleep(pollInterval);
status = gateway.getStatus();
}
LOG.debug("Received address of data transfer.");
URL address = getAddress(transferName, gateway);
LOG.debug("Address = " + address);