use of mesosphere.marathon.client.MarathonException in project pravega by pravega.
the class ZookeeperService method start.
@Override
public void start(final boolean wait) {
deleteApp("/pravega/exhibitor");
log.info("Starting Zookeeper Service: {}", getID());
try {
marathonClient.createApp(createZookeeperApp());
if (wait) {
waitUntilServiceRunning().get(10, TimeUnit.MINUTES);
}
} catch (MarathonException e) {
handleMarathonException(e);
} catch (InterruptedException | ExecutionException | TimeoutException ex) {
throw new TestFrameworkException(InternalError, "Exception while " + "starting Zookeeper Service", ex);
}
}
use of mesosphere.marathon.client.MarathonException in project pravega by pravega.
the class PravegaSegmentStoreService method start.
@Override
public void start(final boolean wait) {
deleteApp("/pravega/segmentstore");
log.info("Starting Pravega SegmentStore Service: {}", getID());
try {
marathonClient.createApp(createPravegaSegmentStoreApp());
if (wait) {
waitUntilServiceRunning().get(10, TimeUnit.MINUTES);
}
} catch (MarathonException e) {
handleMarathonException(e);
} catch (InterruptedException | ExecutionException | TimeoutException ex) {
throw new TestFrameworkException(InternalError, "Exception while " + "starting Pravega SegmentStore Service", ex);
}
}
Aggregations