Search in sources :

Example 21 with Environment

use of io.pravega.test.system.framework.Environment in project pravega by pravega.

the class ReadTxnWriteScaleWithFailoverTest method initialize.

@Environment
public static void initialize() throws MarathonException, ExecutionException {
    URI zkUri = startZookeeperInstance();
    startBookkeeperInstances(zkUri);
    URI controllerUri = startPravegaControllerInstances(zkUri, 3);
    startPravegaSegmentStoreInstances(zkUri, controllerUri, 3);
}
Also used : URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Example 22 with Environment

use of io.pravega.test.system.framework.Environment in project pravega by pravega.

the class ReaderCheckpointTest method initialize.

@Environment
public static void initialize() {
    URI zkUri = startZookeeperInstance();
    startBookkeeperInstances(zkUri);
    URI controllerUri = ensureControllerRunning(zkUri);
    ensureSegmentStoreRunning(zkUri, controllerUri);
}
Also used : URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Example 23 with Environment

use of io.pravega.test.system.framework.Environment in project pravega by pravega.

the class SingleSubscriberUpdateRetentionStreamCutTest method initialize.

/**
 * This is used to setup the various services required by the system test framework.
 *
 * @throws MarathonException    when error in setup
 */
@Environment
public static void initialize() throws MarathonException {
    URI zkUri = startZookeeperInstance();
    startBookkeeperInstances(zkUri);
    URI controllerUri = ensureControllerRunning(zkUri);
    ensureSegmentStoreRunning(zkUri, controllerUri);
}
Also used : URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Example 24 with Environment

use of io.pravega.test.system.framework.Environment in project pravega by pravega.

the class MetadataScalabilityTest method initialize.

@Environment
public static void initialize() {
    URI zkUri = startZookeeperInstance();
    startBookkeeperInstances(zkUri);
    URI controllerUri = ensureControllerRunning(zkUri);
    ensureSegmentStoreRunning(zkUri, controllerUri);
}
Also used : URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Example 25 with Environment

use of io.pravega.test.system.framework.Environment in project pravega by pravega.

the class PravegaControllerTest method initialize.

/**
 * This is used to setup the various services required by the system test framework.
 *
 * @throws MarathonException if error in setup
 */
@Environment
public static void initialize() throws MarathonException {
    Service zk = Utils.createZookeeperService();
    if (!zk.isRunning()) {
        zk.start(true);
    }
    Service con = Utils.createPravegaControllerService(zk.getServiceDetails().get(0));
    if (!con.isRunning()) {
        con.start(true);
    }
}
Also used : PravegaControllerService(io.pravega.test.system.framework.services.marathon.PravegaControllerService) Service(io.pravega.test.system.framework.services.Service) Environment(io.pravega.test.system.framework.Environment)

Aggregations

Environment (io.pravega.test.system.framework.Environment)35 URI (java.net.URI)29 Service (io.pravega.test.system.framework.services.Service)11 ExecutionException (java.util.concurrent.ExecutionException)3 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)3 PravegaControllerService (io.pravega.test.system.framework.services.marathon.PravegaControllerService)1