org.jclouds.compute.callables
Class RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete

java.lang.Object
  extended by org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
      extended by org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
All Implemented Interfaces:
Callable<ExecResponse>, RunScriptOnNode

public class RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
extends RunScriptOnNodeAsInitScriptUsingSsh

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.callables.RunScriptOnNode
RunScriptOnNode.Factory
 
Field Summary
protected  com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptNotRunning
           
 
Fields inherited from class org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
init, logger, name, node, runAsRoot, ssh, sshFactory
 
Constructor Summary
RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete(com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptNotRunning, com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, NodeMetadata node, Statement script, RunScriptOptions options)
           
 
Method Summary
 ExecResponse doCall()
          ssh client is initialized through this call.
 
Methods inherited from class org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh
call, createInitScript, execScriptAsDefaultUser, execScriptAsRoot, getNode, init, runAction, runCommand, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

runScriptNotRunning

protected final com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptNotRunning
Constructor Detail

RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete

@Inject
public RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete(@Named(value="SCRIPT_COMPLETE")
                                                                       com.google.common.base.Predicate<ScriptStatusReturnsZero.CommandUsingClient> runScriptNotRunning,
                                                                       com.google.common.base.Function<NodeMetadata,SshClient> sshFactory,
                                                                       NodeMetadata node,
                                                                       Statement script,
                                                                       RunScriptOptions options)
Method Detail

doCall

public ExecResponse doCall()
Description copied from class: RunScriptOnNodeAsInitScriptUsingSsh
ssh client is initialized through this call.

Overrides:
doCall in class RunScriptOnNodeAsInitScriptUsingSsh


Copyright © 2009-2011 jclouds. All Rights Reserved.