public NativeAwaitStrategy(Cube<?> cube, DockerClientExecutor dockerClientExecutor) { this.dockerClientExecutor = dockerClientExecutor; this.cubeId = cube.getId(); }
private boolean isNotInitialized() { return cubeRegistry.getCube(containerName) == null; }
public static CubeControlException failedStart(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not start " + cubeId, cause); }
public static CubeConfiguration fromMap(Map<String, String> map) { CubeConfiguration cubeConfiguration = new CubeConfiguration(); if (map.containsKey(CONNECTION_MODE)) { cubeConfiguration.connectionMode = ConnectionMode.valueOf(ConnectionMode.class, map.get(CONNECTION_MODE)); } return cubeConfiguration; }
public static Node from(String id) { return new Node(id); }
public PreRunningCube(Cube<?> cube) { this(cube.getId()); } }
public static CubeConfiguration fromMap(Map<String, String> map) { CubeConfiguration cubeConfiguration = new CubeConfiguration(); if (map.containsKey(CONNECTION_MODE)) { cubeConfiguration.connectionMode = ConnectionMode.valueOf(ConnectionMode.class, map.get(CONNECTION_MODE)); } return cubeConfiguration; }
public static CubeControlException failedCreate(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not create " + cubeId, cause); }
public NativeAwaitStrategy(Cube<?> cube, DockerClientExecutor dockerClientExecutor) { this.dockerClientExecutor = dockerClientExecutor; this.cubeId = cube.getId(); }
public static CubeControlException failedStart(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not start " + cubeId, cause); }
public PreRunningCube(Cube<?> cube) { this(cube.getId()); } }
public static CubeControlException failedDestroy(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not destroy " + cubeId, cause); }
public StartCube(Cube<?> cube) { this(cube.getId()); }
public static CubeControlException failedStop(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not stop " + cubeId, cause); }
public CreateCube(Cube<?> cube) { this(cube.getId()); }
public static CubeControlException failedDestroy(String cubeId, Throwable cause) { return new CubeControlException(cubeId, "Could not destroy " + cubeId, cause); }
public StopCube(Cube<?> cube) { this(cube.getId()); }
public DestroyCube(Cube<?> cube) { this(cube.getId()); }
public StopCube(Cube<?> cube) { this(cube.getId()); }
public StartCube(Cube<?> cube) { this(cube.getId()); }