Examples of DockerException


Examples of com.spotify.docker.client.DockerException

    assertEquals(taskStatusCaptor.getValue().getState(), FAILED);
  }

  @Test
  public void verifyDockerExceptionSetsTaskStatusToFailed() throws Exception {
    verifyExceptionSetsTaskStatusToFailed(new DockerException("FAIL"));
  }
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

            break;
        case START_CONTAINER:
            dockerCmd = executeStartContainerRequest(client, message);
            break;
        default:
            throw new DockerException("Invalid operation: " + operation);
        }
       
        Object result = dockerCmd.exec();
       
        // If request included a response, set as body
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

        if (body != null && body instanceof InputStream) {
            buildImageCmd = client.buildImageCmd((InputStream) body);
        } else if (body != null && body instanceof File) {
            buildImageCmd = client.buildImageCmd((File) body);
        } else {
            throw new DockerException("Unable to location source Image");
        }
   
        Boolean noCache = DockerHelper.getProperty(DockerConstants.DOCKER_NO_CACHE, configuration, message, Boolean.class);

        if (noCache != null && noCache) {
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

        DockerOperation operation = configuration.getOperation();
       
        if (operation != null && operation.canProduce()) {
            return new DockerProducer(this);
        } else {
            throw new DockerException(operation + " is not a valid producer operation");
        }
    }
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

        switch (operation) {
        case EVENTS:
            return new DockerEventsConsumer(this, processor);
        default:
            throw new DockerException(operation + " is not a valid consumer operation");
        }

    }
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

        String normalizedRemaining = remaining.replaceAll("/", "");
       
        DockerOperation operation = DockerOperation.getDockerOperation(normalizedRemaining);
       
        if (operation == null) {
            throw new DockerException(remaining + " is not a valid operation");
        }
       
        configuration.setOperation(operation);
       
        // Validate URI Parameters
View Full Code Here

Examples of org.apache.camel.component.docker.exception.DockerException

        URL uri;
        String secure = this.secure ? "https" : "http";
        try {
            uri = new URL(secure, this.host, this.port, "");
        } catch (MalformedURLException e) {
            throw new DockerException(e);
        }

        return uri.toString();

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.