Uses of Interface
org.jclouds.scriptbuilder.domain.Statement

Packages that use Statement
org.jclouds.aws.ec2.compute   
org.jclouds.cloudsigma.compute.options   
org.jclouds.compute   
org.jclouds.compute.callables   
org.jclouds.compute.events   
org.jclouds.compute.functions   
org.jclouds.compute.internal   
org.jclouds.compute.options   
org.jclouds.compute.strategy   
org.jclouds.compute.util   
org.jclouds.ec2.compute.options   
org.jclouds.scriptbuilder   
org.jclouds.scriptbuilder.domain   
org.jclouds.scriptbuilder.functions   
org.jclouds.scriptbuilder.statements.java   
org.jclouds.scriptbuilder.statements.login   
org.jclouds.scriptbuilder.statements.ssh   
 

Uses of Statement in org.jclouds.aws.ec2.compute
 

Methods in org.jclouds.aws.ec2.compute with parameters of type Statement
 AWSEC2TemplateOptions AWSEC2TemplateOptions.runScript(Statement script)
          This script will be executed as the root user upon system startup.
 

Uses of Statement in org.jclouds.cloudsigma.compute.options
 

Methods in org.jclouds.cloudsigma.compute.options with parameters of type Statement
 CloudSigmaTemplateOptions CloudSigmaTemplateOptions.runScript(Statement script)
          This script will be executed as the root user upon system startup.
 

Uses of Statement in org.jclouds.compute
 

Methods in org.jclouds.compute that return Statement
 Statement RunScriptOnNodesException.getRunScript()
           
 

Methods in org.jclouds.compute with parameters of type Statement
 ExecResponse ComputeService.runScriptOnNode(String id, Statement runScript)
           
 ExecResponse ComputeService.runScriptOnNode(String id, Statement runScript, RunScriptOptions options)
          Run the script on a specific node
 Map<? extends NodeMetadata,ExecResponse> ComputeService.runScriptOnNodesMatching(com.google.common.base.Predicate<NodeMetadata> filter, Statement runScript)
           
 Map<? extends NodeMetadata,ExecResponse> ComputeService.runScriptOnNodesMatching(com.google.common.base.Predicate<NodeMetadata> filter, Statement runScript, RunScriptOptions options)
          Run the script on all nodes with the specific predicate.
 com.google.common.util.concurrent.ListenableFuture<ExecResponse> ComputeService.submitScriptOnNode(String id, Statement runScript, RunScriptOptions options)
          Run the script on a specific node in the background, typically as nohup
 

Constructors in org.jclouds.compute with parameters of type Statement
RunScriptOnNodesException(Statement runScript, RunScriptOptions options, Map<NodeMetadata,ExecResponse> successfulNodes, Map<?,Exception> executionExceptions, Map<? extends NodeMetadata,? extends Throwable> failedNodes)
           
 

Uses of Statement in org.jclouds.compute.callables
 

Fields in org.jclouds.compute.callables declared as Statement
protected  Statement RunScriptOnNodeUsingSsh.statement
           
 

Methods in org.jclouds.compute.callables that return Statement
 Statement RunScriptOnNodeUsingSsh.getStatement()
           
 Statement RunScriptOnNode.getStatement()
           
 

Methods in org.jclouds.compute.callables with parameters of type Statement
 RunScriptOnNode RunScriptOnNode.Factory.create(NodeMetadata node, Statement script, RunScriptOptions options)
           
static InitScript RunScriptOnNodeAsInitScriptUsingSsh.createInitScript(InitScriptConfigurationForTasks config, String name, Statement script)
           
 com.google.common.util.concurrent.ListenableFuture<ExecResponse> RunScriptOnNode.Factory.submit(NodeMetadata node, Statement script, RunScriptOptions options)
           
 

Constructors in org.jclouds.compute.callables with parameters of type Statement
RunScriptOnNodeAsInitScriptUsingSsh(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, InitScriptConfigurationForTasks initScriptConfiguration, NodeMetadata node, Statement script, RunScriptOptions options)
           
RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete(BlockUntilInitScriptStatusIsZeroThenReturnOutput.Factory statusFactory, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, InitScriptConfigurationForTasks initScriptConfiguration, NodeMetadata node, Statement script, RunScriptOptions options)
           
RunScriptOnNodeUsingSsh(com.google.common.base.Function<NodeMetadata,SshClient> sshFactory, com.google.common.eventbus.EventBus eventBus, NodeMetadata node, Statement statement, RunScriptOptions options)
           
 

Uses of Statement in org.jclouds.compute.events
 

Fields in org.jclouds.compute.events declared as Statement
protected  Statement StatementOnNode.statement
           
 

Methods in org.jclouds.compute.events that return Statement
 Statement StatementOnNode.getStatement()
           
 

Constructors in org.jclouds.compute.events with parameters of type Statement
StatementOnNode(Statement statement, NodeMetadata node)
           
StatementOnNodeCompletion(Statement statement, NodeMetadata node, ExecResponse response)
           
StatementOnNodeFailure(Statement statement, NodeMetadata node, Throwable cause)
           
StatementOnNodeSubmission(Statement statement, NodeMetadata node)
           
 

Uses of Statement in org.jclouds.compute.functions
 

Methods in org.jclouds.compute.functions that return Statement
 Statement TemplateOptionsToStatement.apply(TemplateOptions options)
           
 

Uses of Statement in org.jclouds.compute.internal
 

Methods in org.jclouds.compute.internal with parameters of type Statement
 com.google.common.base.Function<NodeMetadata,NodeMetadata> PersistNodeCredentials.always(Statement statement)
           
 com.google.common.base.Function<NodeMetadata,NodeMetadata> PersistNodeCredentials.ifAdminAccess(Statement statement)
           
 ExecResponse BaseComputeService.runScriptOnNode(String id, Statement runScript)
          
 ExecResponse BaseComputeService.runScriptOnNode(String id, Statement runScript, RunScriptOptions options)
          Run the script on a specific node
 Map<NodeMetadata,ExecResponse> BaseComputeService.runScriptOnNodesMatching(com.google.common.base.Predicate<NodeMetadata> filter, Statement runScript)
          
 Map<NodeMetadata,ExecResponse> BaseComputeService.runScriptOnNodesMatching(com.google.common.base.Predicate<NodeMetadata> filter, Statement runScript, RunScriptOptions options)
          Run the script on all nodes with the specific predicate.
 com.google.common.util.concurrent.ListenableFuture<ExecResponse> BaseComputeService.submitScriptOnNode(String id, Statement runScript, RunScriptOptions options)
          Run the script on a specific node in the background, typically as nohup
 

Uses of Statement in org.jclouds.compute.options
 

Fields in org.jclouds.compute.options declared as Statement
protected  Statement TemplateOptions.script
           
 

Methods in org.jclouds.compute.options that return Statement
 Statement TemplateOptions.getRunScript()
           
 Statement TemplateOptions.ImmutableTemplateOptions.getRunScript()
           
 

Methods in org.jclouds.compute.options with parameters of type Statement
 TemplateOptions TemplateOptions.runScript(Statement script)
          This script will be executed as the root user upon system startup.
 TemplateOptions TemplateOptions.ImmutableTemplateOptions.runScript(Statement script)
          unsupported as objects of this class are immutable
static TemplateOptions TemplateOptions.Builder.runScript(Statement script)
           
 

Uses of Statement in org.jclouds.compute.strategy
 

Methods in org.jclouds.compute.strategy with parameters of type Statement
 Callable<RunScriptOnNode> InitializeRunScriptOnNodeOrPlaceInBadMap.Factory.create(NodeMetadata node, Statement script, RunScriptOptions options, Map<NodeMetadata,Exception> badNodes)
           
 

Constructor parameters in org.jclouds.compute.strategy with type arguments of type Statement
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, GetNodeMetadataStrategy getNode, RetryIfSocketNotYetOpen socketTester, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<TemplateOptions,Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, RetryIfSocketNotYetOpen socketTester, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<TemplateOptions,Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, AtomicReference<NodeMetadata> node, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
 

Uses of Statement in org.jclouds.compute.util
 

Methods in org.jclouds.compute.util that return Statement
static Statement ComputeServiceUtils.execHttpResponse(HttpRequest request)
          build a shell script that invokes the contents of the http request in bash.
static Statement ComputeServiceUtils.execHttpResponse(URI location)
           
static Statement ComputeServiceUtils.extractTargzIntoDirectory(HttpRequest targz, String directory)
          build a shell script that invokes the contents of the http request in bash.
static Statement ComputeServiceUtils.extractTargzIntoDirectory(URI targz, String directory)
           
static Statement ComputeServiceUtils.extractZipIntoDirectory(HttpRequest zip, String directory)
          build a shell script that invokes the contents of the http request in bash.
static Statement ComputeServiceUtils.extractZipIntoDirectory(URI zip, String directory)
           
 

Uses of Statement in org.jclouds.ec2.compute.options
 

Methods in org.jclouds.ec2.compute.options with parameters of type Statement
 EC2TemplateOptions EC2TemplateOptions.runScript(Statement script)
          This script will be executed as the root user upon system startup.
 

Uses of Statement in org.jclouds.scriptbuilder
 

Classes in org.jclouds.scriptbuilder that implement Statement
 class ExitInsteadOfReturn
          you cannot return from a top-level script, so if you are using snippets that issue return then you'll want to wrap them in this.
 class InitBuilder
          Deprecated. 
 class InitScript
          Creates an init script file
 class ScriptBuilder
          Creates a shell script.
 

Methods in org.jclouds.scriptbuilder that return Statement
static Statement ScriptBuilder.call(String fn, String... args)
           
protected  Statement ExitInsteadOfReturn.delegate()
           
static Statement ScriptBuilder.findPid(String pid)
           
static Statement ScriptBuilder.forget(String instanceName, String script, String logDir)
           
 

Methods in org.jclouds.scriptbuilder with parameters of type Statement
 ScriptBuilder ScriptBuilder.addStatement(Statement statement)
           
 InitScript.Builder InitScript.Builder.init(Statement... init)
           
 InitScript.Builder InitScript.Builder.init(Statement init)
           
 InitScript.Builder InitScript.Builder.run(Statement... run)
           
 InitScript.Builder InitScript.Builder.run(Statement run)
           
 

Method parameters in org.jclouds.scriptbuilder with type arguments of type Statement
 InitScript.Builder InitScript.Builder.init(Iterable<Statement> init)
           
static Map<String,String> ScriptBuilder.resolveFunctionDependenciesForStatements(Map<String,String> knownFunctions, Iterable<Statement> statements, OsFamily osFamily)
           
 InitScript.Builder InitScript.Builder.run(Iterable<Statement> run)
           
 

Constructors in org.jclouds.scriptbuilder with parameters of type Statement
ExitInsteadOfReturn(Statement delegate)
           
InitBuilder(String instanceName, Statement initStatement, Statement runStatement)
          Deprecated.  
 

Constructor parameters in org.jclouds.scriptbuilder with type arguments of type Statement
InitBuilder(String instanceName, Iterable<Statement> initStatements, Iterable<Statement> statements)
          Deprecated.  
InitBuilder(String instanceName, Iterable<Statement> initStatements, Iterable<Statement> statements)
          Deprecated.  
InitBuilder(String instanceName, String instanceHome, String logDir, Map<String,String> variables, Iterable<Statement> statements)
          Deprecated.  
InitBuilder(String instanceName, String instanceHome, String logDir, Map<String,String> variables, Iterable<Statement> initStatements, Iterable<Statement> statements)
          Deprecated.  
InitBuilder(String instanceName, String instanceHome, String logDir, Map<String,String> variables, Iterable<Statement> initStatements, Iterable<Statement> statements)
          Deprecated.  
 

Uses of Statement in org.jclouds.scriptbuilder.domain
 

Classes in org.jclouds.scriptbuilder.domain that implement Statement
 class AppendFile
          Creates a run script
 class Call
          Statement used in a shell script
 class CreateOrOverwriteFile
          Creates a run script
 class CreateRunScript
          Creates a run script
static class CreateRunScript.AddExport
           
 class InterpretableStatement
          Statement used in a shell script
 class Kill
          Statement used in a shell script
 class PipeHttpResponseTo
          Pipes the content of the http response to a shell command that accepts input from stdin
 class PipeHttpResponseToBash
          Pipes the content of the http response to bash
 class PipeHttpResponseToTarxpzfIntoDirectory
          Pipes the content of the http response to tar -xpzf
 class SaveHttpResponseTo
          saves the content of the http response to a file
 class StatementList
          Statements used in a shell script
 class SwitchArg
          Statement used in a shell script
 class UnzipHttpResponseIntoDirectory
          unzips the content into a directory
 

Fields in org.jclouds.scriptbuilder.domain with type parameters of type Statement
 List<Statement> StatementList.statements
           
 

Methods in org.jclouds.scriptbuilder.domain that return Statement
static Statement Statements.appendFile(String path, Iterable<String> lines)
           
static Statement Statements.appendFile(String path, Iterable<String> lines, String delimeter)
           
static Statement Statements.appendFile(String path, String line, String delimeter)
           
static Statement Statements.call(String function, String... args)
           
static Statement Statements.createOrOverwriteFile(String path, Iterable<String> lines)
           
static Statement Statements.createOrOverwriteFile(String path, Iterable<String> lines, String delimeter)
           
static Statement Statements.exec(String portableStatement)
          interprets and adds a newline to the statement
static Statement Statements.extractTargzIntoDirectory(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, String directory)
          untar, ungzip the data received from the request parameters.
static Statement Statements.extractTargzIntoDirectory(URI targz, String directory)
           
static Statement Statements.extractZipIntoDirectory(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, String directory)
          unzip the data received from the request parameters.
static Statement Statements.findPid(String args)
          Stores the pid into the variable FOUND_PID if successful.
static Statement Statements.forget(String instanceName, String script, String logDir)
          Runs the script in a way that it can be matched later with Statements.findPid(java.lang.String)
static Statement Statements.interpret(String... portableStatements)
          statement can have multiple newlines, note you should use lf to be portable
static Statement Statements.kill()
          Kills the pid and subprocesses related to the variable FOUND_PID if set.
static Statement Statements.newStatementList(Statement... statements)
           
static Statement Statements.pipeHttpResponseToBash(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
          exec the data received from the request parameters.
static Statement Statements.rm(String path)
           
static Statement Statements.saveHttpResponseTo(URI source, String dir, String file)
           
static Statement Statements.switchArg(int arg, Map<String,Statement> valueToActions)
           
 

Methods in org.jclouds.scriptbuilder.domain that return types with arguments of type Statement
 List<Statement> StatementList.delegate()
           
 

Methods in org.jclouds.scriptbuilder.domain with parameters of type Statement
static Statement Statements.newStatementList(Statement... statements)
           
 void AdminAccessVisitor.visit(Statement input)
           
 void StatementVisitor.visit(Statement in)
           
 

Method parameters in org.jclouds.scriptbuilder.domain with type arguments of type Statement
static CreateRunScript Statements.createRunScript(String instanceName, Iterable<String> exports, String pwd, Iterable<Statement> statements)
           
static Statement Statements.switchArg(int arg, Map<String,Statement> valueToActions)
           
 

Constructors in org.jclouds.scriptbuilder.domain with parameters of type Statement
PipeHttpResponseTo(Statement toExec, String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
           
StatementList(Statement... statements)
           
 

Constructor parameters in org.jclouds.scriptbuilder.domain with type arguments of type Statement
CreateRunScript(String instanceName, Iterable<String> exports, String pwd, Iterable<Statement> statements)
           
StatementList(Iterable<Statement> statements)
           
SwitchArg(int arg, Map<String,Statement> valueToActions)
          Generates a switch statement based on arg.
 

Uses of Statement in org.jclouds.scriptbuilder.functions
 

Methods in org.jclouds.scriptbuilder.functions with parameters of type Statement
 Credentials CredentialsFromAdminAccess.apply(Statement input)
           
 

Uses of Statement in org.jclouds.scriptbuilder.statements.java
 

Classes in org.jclouds.scriptbuilder.statements.java that implement Statement
static class InstallJDK.FromURL
           
 

Methods in org.jclouds.scriptbuilder.statements.java that return Statement
static Statement InstallJDK.fromURL()
           
static Statement InstallJDK.fromURL(URI url)
           
 

Uses of Statement in org.jclouds.scriptbuilder.statements.login
 

Classes in org.jclouds.scriptbuilder.statements.login that implement Statement
 class AdminAccess
          Controls the administrative access to a node.
 class ReplaceShadowPasswordEntry
          Replaces the password entry for a user in the shadow file, using SHA-512 crypt syntax.
 class ReplaceShadowPasswordEntryOfLoginUser
           
 class Sudoers
          Control /etc/sudoers
 class UserAdd
          Creates a statement that will add a given user to a machine ("login"), with optional password, groups, private key, and authorized keys.
 

Methods in org.jclouds.scriptbuilder.statements.login that return Statement
static Statement SudoStatements.createWheel()
          create new sudoers file with the wheel group authorized to all commands without a password
 

Uses of Statement in org.jclouds.scriptbuilder.statements.ssh
 

Classes in org.jclouds.scriptbuilder.statements.ssh that implement Statement
 class AuthorizeRSAPublicKeys
           
 class InstallRSAPrivateKey
           
 class SshdConfig
          Control sshd_config
 

Methods in org.jclouds.scriptbuilder.statements.ssh that return Statement
static Statement SshStatements.lockSshd()
          lock sshd down so root cannot login, and password auth is disabled,
static Statement SshStatements.sshdConfig(Map<String,String> params)
           
 



Copyright © 2009-2012 jclouds. All Rights Reserved.