use of com.spotify.docker.client.messages.ServiceCreateResponse in project pravega by pravega.
the class DockerBasedService method start.
public void start(final boolean wait, final ServiceSpec serviceSpec) {
try {
ServiceCreateResponse serviceCreateResponse = Exceptions.handleInterrupted(() -> dockerClient.createService(serviceSpec));
if (wait) {
Exceptions.handleInterrupted(() -> waitUntilServiceRunning().get(5, TimeUnit.MINUTES));
}
assertNotNull(serviceCreateResponse.id());
} catch (Exception e) {
throw new TestFrameworkException(TestFrameworkException.Type.RequestFailed, "Unable to create service", e);
}
}
Aggregations