Search in sources :

Example 11 with Environment

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

the class MultiReaderWriterWithFailOverTest method initialize.

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

Example 12 with Environment

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

the class PravegaSegmentStoreTest method setup.

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

Example 13 with Environment

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

the class ReadTxnWriteAutoScaleWithFailoverTest method initialize.

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

Example 14 with Environment

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

the class PravegaTest method setup.

/**
 * This is used to setup the various services required by the system test framework.
 *
 * @throws InterruptedException If interrupted
 * @throws MarathonException    when error in setup
 * @throws URISyntaxException   If URI is invalid
 */
@Environment
public static void setup() throws MarathonException {
    // 1. check if zk is running, if not start it
    Service zkService = Utils.createZookeeperService();
    if (!zkService.isRunning()) {
        zkService.start(true);
    }
    List<URI> zkUris = zkService.getServiceDetails();
    log.debug("zookeeper service details: {}", zkUris);
    // get the zk ip details and pass it to bk, host, controller
    URI zkUri = zkUris.get(0);
    // 2, check if bk is running, otherwise start, get the zk ip
    Service bkService = Utils.createBookkeeperService(zkUri);
    if (!bkService.isRunning()) {
        bkService.start(true);
    }
    List<URI> bkUris = bkService.getServiceDetails();
    log.debug("bookkeeper service details: {}", bkUris);
    // 3. start controller
    Service conService = Utils.createPravegaControllerService(zkUri);
    if (!conService.isRunning()) {
        conService.start(true);
    }
    List<URI> conUris = conService.getServiceDetails();
    log.debug("Pravega Controller service details: {}", conUris);
    // 4.start host
    Service segService = Utils.createPravegaSegmentStoreService(zkUri, conUris.get(0));
    if (!segService.isRunning()) {
        segService.start(true);
    }
    List<URI> segUris = segService.getServiceDetails();
    log.debug("pravega host service details: {}", segUris);
}
Also used : Service(io.pravega.test.system.framework.services.Service) URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Example 15 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);
    startPravegaSegmentStoreInstances(zkUri, controllerUri);
}
Also used : URI(java.net.URI) Environment(io.pravega.test.system.framework.Environment)

Aggregations

Environment (io.pravega.test.system.framework.Environment)18 URI (java.net.URI)15 Service (io.pravega.test.system.framework.services.Service)12 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)6 ExecutionException (java.util.concurrent.ExecutionException)2