use of io.pravega.test.system.framework.services.kubernetes.PravegaSegmentStoreK8sService 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);
}
String serviceId = "segmentstore";
switch(EXECUTOR_TYPE) {
case REMOTE_SEQUENTIAL:
return new PravegaSegmentStoreService(serviceId, zkUri, contUri);
case DOCKER:
return new PravegaSegmentStoreDockerService(serviceId, zkUri, hdfsUri, contUri);
case KUBERNETES:
default:
return new PravegaSegmentStoreK8sService(serviceId, zkUri, getPravegaProperties());
}
}
Aggregations