use of io.pravega.test.system.framework.services.docker.PravegaSegmentStoreDockerService in project pravega by pravega.
the class Utils method createPravegaSegmentStoreService.
public static Service createPravegaSegmentStoreService(final URI zkUri, final URI contUri) {
URI hdfsUri = null;
if (DOCKER_BASED) {
Service hdfsService = new HDFSDockerService("hdfs");
if (!hdfsService.isRunning()) {
hdfsService.start(true);
}
hdfsUri = hdfsService.getServiceDetails().get(0);
}
return DOCKER_BASED ? new PravegaSegmentStoreDockerService("segmentstore", zkUri, hdfsUri, contUri) : new PravegaSegmentStoreService("segmentstore", zkUri, contUri);
}
Aggregations