@Override public TemplateOptions blockOnComplete(boolean blockOnComplete) { return TemplateOptions.class.cast(super.blockOnComplete(blockOnComplete)); }
@Override public TemplateOptions blockOnComplete(boolean blockOnComplete) { return TemplateOptions.class.cast(super.blockOnComplete(blockOnComplete)); }
@Override public TemplateOptions blockOnComplete(boolean blockOnComplete) { return TemplateOptions.class.cast(super.blockOnComplete(blockOnComplete)); }
@Override public TemplateOptions blockOnComplete(boolean blockOnComplete) { return TemplateOptions.class.cast(super.blockOnComplete(blockOnComplete)); }
/** * @see RunScriptOptions#blockOnComplete(boolean) */ public static RunScriptOptions blockOnComplete(boolean value) { RunScriptOptions options = new RunScriptOptions(); return options.blockOnComplete(value); }
/** * @see RunScriptOptions#blockOnComplete(boolean) */ public static RunScriptOptions blockOnComplete(boolean value) { RunScriptOptions options = new RunScriptOptions(); return options.blockOnComplete(value); }
/** * @see RunScriptOptions#blockOnComplete(boolean) */ public static RunScriptOptions blockOnComplete(boolean value) { RunScriptOptions options = new RunScriptOptions(); return options.blockOnComplete(value); }
/** * @see RunScriptOptions#blockOnComplete(boolean) */ public static RunScriptOptions blockOnComplete(boolean value) { RunScriptOptions options = new RunScriptOptions(); return options.blockOnComplete(value); }
/** * Run set of queued commands now */ public static void executeOnNodes(List<Statement> commands, boolean runAsRoot, String clustername, ComputeService compute, String username, String sshKeyName) throws RunScriptOnNodesException, InterruptedException, ExecutionException, TimeoutException { compute.runScriptOnNodesMatching( NodePredicates.runningInGroup(clustername), new StatementList(commands), new RunScriptOptions() .nameTask("Setup") .overrideLoginCredentials(Tools.getPrivateKeyCredentials(username, sshKeyName)) .wrapInInitScript(true) .overrideLoginUser(username) .blockOnComplete(true) .runAsRoot(runAsRoot)); }
public void copyTo(RunScriptOptions to) { if (this.getPort() != -1) to.blockOnPort(this.getPort(), this.getSeconds()); if (this.getTaskName() != null) to.nameTask(this.getTaskName()); to.runAsRoot(this.shouldRunAsRoot()); to.blockOnComplete(this.shouldBlockOnComplete()); to.wrapInInitScript(this.shouldWrapInInitScript()); if (this.hasLoginPasswordOption()) to.overrideLoginPassword(this.loginPassword); if (this.hasLoginPrivateKeyOption()) to.overrideLoginPrivateKey(this.loginPrivateKey); if (this.getLoginUser() != null) to.overrideLoginUser(this.getLoginUser()); if (this.shouldAuthenticateSudo() != null) { to.overrideAuthenticateSudo(this.shouldAuthenticateSudo()); } }
public void copyTo(RunScriptOptions to) { if (this.getPort() != -1) to.blockOnPort(this.getPort(), this.getSeconds()); if (this.getTaskName() != null) to.nameTask(this.getTaskName()); to.runAsRoot(this.shouldRunAsRoot()); to.blockOnComplete(this.shouldBlockOnComplete()); to.wrapInInitScript(this.shouldWrapInInitScript()); if (this.hasLoginPasswordOption()) to.overrideLoginPassword(this.loginPassword); if (this.hasLoginPrivateKeyOption()) to.overrideLoginPrivateKey(this.loginPrivateKey); if (this.getLoginUser() != null) to.overrideLoginUser(this.getLoginUser()); if (this.shouldAuthenticateSudo() != null) { to.overrideAuthenticateSudo(this.shouldAuthenticateSudo()); } }