Examples of runScriptOnNode()


Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

              LOG.debug("{} phase script on: {}\n{}", new Object[] { phaseName,
                  instance.getId(), statement.render(OsFamily.UNIX) });
            }

            try {
              return computeService.runScriptOnNode(
                  instance.getId(),
                  statement,
                  overrideCredentialsWith(credentials).runAsRoot(true)
                      .nameTask(
                          phaseName + "-"
View Full Code Here

Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

            if (LOG.isDebugEnabled()) {
              LOG.debug("Running script:\n{}", statement.render(OsFamily.UNIX));
            }

            computeService.runScriptOnNode(instance.getId(), statement);
            LOG.info("Script run completed on: {}", instance.getId());

            return null;
          }
        }));
View Full Code Here

Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

                Optional<RunScriptOptions> runScriptOptions = ToRunScriptOptions.withComputeService(computeService).apply(jCloudsContainerMetadata);
                String script = buildStartScript(container.getId(), options);
                ExecResponse response;

                if (runScriptOptions.isPresent()) {
                    response = computeService.runScriptOnNode(nodeId, script, runScriptOptions.get());
                } else {
                    response = computeService.runScriptOnNode(nodeId, script);
                }

                if (response == null) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

                ExecResponse response;

                if (runScriptOptions.isPresent()) {
                    response = computeService.runScriptOnNode(nodeId, script, runScriptOptions.get());
                } else {
                    response = computeService.runScriptOnNode(nodeId, script);
                }

                if (response == null) {
                    jCloudsContainerMetadata.setFailure(new Exception("No response received for fabric install script."));
                } else if (response.getOutput() != null && response.getOutput().contains(ContainerProviderUtils.FAILURE_PREFIX)) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

                Optional<RunScriptOptions> runScriptOptions = ToRunScriptOptions.withComputeService(computeService).apply(jCloudsContainerMetadata);
                String script = buildStopScript(container.getId(), options);
                ExecResponse response;

                if (runScriptOptions.isPresent()) {
                    response = computeService.runScriptOnNode(nodeId, script, runScriptOptions.get());
                } else {
                    response = computeService.runScriptOnNode(nodeId, script);
                }

                if (response == null) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.runScriptOnNode()

                ExecResponse response;

                if (runScriptOptions.isPresent()) {
                    response = computeService.runScriptOnNode(nodeId, script, runScriptOptions.get());
                } else {
                    response = computeService.runScriptOnNode(nodeId, script);
                }

                if (response == null) {
                    jCloudsContainerMetadata.setFailure(new Exception("No response received for fabric install script."));
                } else if (response.getOutput() != null && response.getOutput().contains(ContainerProviderUtils.FAILURE_PREFIX)) {
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.