Uses of Interface
org.jclouds.scriptbuilder.domain.Statement
Packages that use Statement
Package
Description
-
Uses of Statement in org.jclouds.aws.ec2.compute
Methods in org.jclouds.aws.ec2.compute with parameters of type StatementModifier and TypeMethodDescriptionThis script will be executed as the root user upon system startup. -
Uses of Statement in org.jclouds.chef
Methods in org.jclouds.chef that return StatementModifier and TypeMethodDescriptionChefService.createBootstrapScriptForGroup
(String group) Creates all steps necessary to bootstrap the node.ChefService.createBootstrapScriptForGroup
(String group, String nodeName) Creates all steps necessary to bootstrap the node. -
Uses of Statement in org.jclouds.chef.functions
Methods in org.jclouds.chef.functions that return Statement -
Uses of Statement in org.jclouds.chef.internal
Methods in org.jclouds.chef.internal that return StatementModifier and TypeMethodDescriptionBaseChefService.createBootstrapScriptForGroup
(String group) BaseChefService.createBootstrapScriptForGroup
(String group, String nodeName) -
Uses of Statement in org.jclouds.cloudstack.compute.options
Methods in org.jclouds.cloudstack.compute.options with parameters of type StatementModifier and TypeMethodDescriptionThis 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 StatementMethods in org.jclouds.compute with parameters of type StatementModifier and TypeMethodDescriptionComputeService.runScriptOnNode
(String id, Statement runScript) ComputeService.runScriptOnNode
(String id, Statement runScript, RunScriptOptions options) Run the script on a specific nodeMap
<? extends NodeMetadata, ExecResponse> ComputeService.runScriptOnNodesMatching
(com.google.common.base.Predicate<? super NodeMetadata> filter, Statement runScript) Map
<? extends NodeMetadata, ExecResponse> ComputeService.runScriptOnNodesMatching
(com.google.common.base.Predicate<? super 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) Constructors in org.jclouds.compute with parameters of type StatementModifierConstructorDescriptionRunScriptOnNodesException
(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 StatementMethods in org.jclouds.compute.callables that return StatementModifier and TypeMethodDescriptionRunScriptOnNode.getStatement()
RunScriptOnNodeUsingSsh.getStatement()
Methods in org.jclouds.compute.callables with parameters of type StatementModifier and TypeMethodDescriptionRunScriptOnNode.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 StatementModifierConstructorDescriptionRunScriptOnNodeAsInitScriptUsingSsh
(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.config
Methods in org.jclouds.compute.config with parameters of type StatementModifier and TypeMethodDescriptionBaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl.create
(NodeMetadata node, Statement runScript, RunScriptOptions options) BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl.submit
(NodeMetadata node, Statement script, RunScriptOptions options) -
Uses of Statement in org.jclouds.compute.events
Fields in org.jclouds.compute.events declared as StatementMethods in org.jclouds.compute.events that return StatementConstructors in org.jclouds.compute.events with parameters of type StatementModifierConstructorDescriptionStatementOnNode
(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 StatementModifier and TypeMethodDescriptionInstallKeysAndRunScript.apply
(NodeMetadata node, TemplateOptions options) NodeAndTemplateOptionsToStatement.apply
(NodeMetadata node, TemplateOptions options) Returns the script that has to be executed in the given node.NodeAndTemplateOptionsToStatementWithoutPublicKey.apply
(NodeMetadata node, TemplateOptions options) -
Uses of Statement in org.jclouds.compute.internal
Methods in org.jclouds.compute.internal with parameters of type StatementModifier and TypeMethodDescriptioncom.google.common.base.Function
<NodeMetadata, NodeMetadata> com.google.common.base.Function
<NodeMetadata, NodeMetadata> PersistNodeCredentials.ifAdminAccess
(Statement statement) BaseComputeService.runScriptOnNode
(String id, Statement runScript) BaseComputeService.runScriptOnNode
(String id, Statement runScript, RunScriptOptions options) Run the script on a specific nodeBaseComputeService.runScriptOnNodesMatching
(com.google.common.base.Predicate<? super NodeMetadata> filter, Statement runScript) BaseComputeService.runScriptOnNodesMatching
(com.google.common.base.Predicate<? super 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) -
Uses of Statement in org.jclouds.compute.options
Fields in org.jclouds.compute.options declared as StatementMethods in org.jclouds.compute.options that return StatementModifier and TypeMethodDescriptionTemplateOptions.getRunScript()
TemplateOptions.ImmutableTemplateOptions.getRunScript()
Methods in org.jclouds.compute.options with parameters of type StatementModifier and TypeMethodDescriptionstatic TemplateOptions
unsupported as objects of this class are immutableThis script will be executed as the root user upon system startup. -
Uses of Statement in org.jclouds.compute.strategy
Methods in org.jclouds.compute.strategy with parameters of type StatementModifier and TypeMethodDescriptionInitializeRunScriptOnNodeOrPlaceInBadMap.Factory.create
(NodeMetadata node, Statement script, RunScriptOptions options, Map<NodeMetadata, Exception> badNodes) -
Uses of Statement in org.jclouds.compute.util
Methods in org.jclouds.compute.util that return StatementModifier and TypeMethodDescriptionstatic Statement
ComputeServiceUtils.execHttpResponse
(URI location) static Statement
ComputeServiceUtils.execHttpResponse
(HttpRequest request) 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.extractTargzIntoDirectory
(HttpRequest targz, String directory) build a shell script that invokes the contents of the http request in bash.static Statement
ComputeServiceUtils.extractZipIntoDirectory
(URI zip, String directory) static Statement
ComputeServiceUtils.extractZipIntoDirectory
(HttpRequest zip, String directory) build a shell script that invokes the contents of the http request in bash. -
Uses of Statement in org.jclouds.docker.compute.options
Methods in org.jclouds.docker.compute.options with parameters of type StatementModifier and TypeMethodDescriptionThis script will be executed as the root user upon system startup. -
Uses of Statement in org.jclouds.ec2.compute.options
Methods in org.jclouds.ec2.compute.options with parameters of type StatementModifier and TypeMethodDescriptionstatic EC2TemplateOptions
This script will be executed as the root user upon system startup. -
Uses of Statement in org.jclouds.googlecomputeengine.compute.options
Methods in org.jclouds.googlecomputeengine.compute.options with parameters of type StatementModifier and TypeMethodDescriptionThis script will be executed as the root user upon system startup. -
Uses of Statement in org.jclouds.openstack.nova.v2_0.compute.options
Methods in org.jclouds.openstack.nova.v2_0.compute.options with parameters of type StatementModifier and TypeMethodDescriptionThis 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 StatementModifier and TypeClassDescriptionclass
you cannot return from a top-level script, so if you are using snippets that issuereturn
then you'll want to wrap them in this.class
Creates an init script fileclass
Creates a shell script.Methods in org.jclouds.scriptbuilder that return StatementModifier and TypeMethodDescriptionstatic Statement
protected Statement
ExitInsteadOfReturn.delegate()
static Statement
static Statement
Methods in org.jclouds.scriptbuilder with parameters of type StatementMethod parameters in org.jclouds.scriptbuilder with type arguments of type StatementModifier and TypeMethodDescriptionScriptBuilder.resolveFunctionDependenciesForStatements
(Map<String, String> knownFunctions, Iterable<Statement> statements, OsFamily osFamily) Constructors in org.jclouds.scriptbuilder with parameters of type Statement -
Uses of Statement in org.jclouds.scriptbuilder.domain
Classes in org.jclouds.scriptbuilder.domain that implement StatementModifier and TypeClassDescriptionclass
Creates a run scriptclass
Statement used in a shell scriptclass
Creates a run scriptclass
Creates a run scriptstatic class
class
Statement used in a shell scriptclass
Statement used in a shell scriptclass
Statement used in a shell script without modifications apart from a trailing newline.class
Pipes the content of the http response to a shell command that accepts input from stdinclass
Pipes the content of the http response to bashclass
Pipes the content of the http response to tar -xpzfclass
saves the content of the http response to a fileclass
Statements used in a shell scriptclass
Statement used in a shell scriptclass
unzips the content into a directoryFields in org.jclouds.scriptbuilder.domain with type parameters of type StatementMethods in org.jclouds.scriptbuilder.domain that return StatementModifier and TypeMethodDescriptionstatic Statement
Statements.appendFile
(String path, Iterable<String> lines) static Statement
Statements.appendFile
(String path, Iterable<String> lines, String delimiter) static Statement
Statements.appendFile
(String path, String line, String delimiter) static Statement
static Statement
Statements.createOrOverwriteFile
(String path, Iterable<String> lines) static Statement
Statements.createOrOverwriteFile
(String path, Iterable<String> lines, String delimiter) static Statement
interprets and adds a newline to the statementstatic Statement
Statements.extractTargzAndFlattenIntoDirectory
(URI tgz, String dest) likeStatements.extractTargzIntoDirectory(URI, String)
except that it flattens the first directory in the archive For example,apache-maven-3.0.4-bin.tar.gz
normally extracts directories like./apache-maven-3.0.4/bin
.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
Stores the pid into the variableFOUND_PID
if successful.static Statement
Runs the script in a way that it can be matched later withStatements.findPid(java.lang.String)
static Statement
statement can have multiple newlines, note you should uself
to be portablestatic Statement
Statements.kill()
Kills the pid and subprocesses related to the variableFOUND_PID
if set.static Statement
sends statement only appending a newlinestatic 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
static Statement
Statements.saveHttpResponseTo
(URI source, String dir, String file) static Statement
Methods in org.jclouds.scriptbuilder.domain that return types with arguments of type StatementMethods in org.jclouds.scriptbuilder.domain with parameters of type StatementModifier and TypeMethodDescriptionstatic Statement
Statements.newStatementList
(Statement... statements) void
void
Method parameters in org.jclouds.scriptbuilder.domain with type arguments of type StatementConstructors in org.jclouds.scriptbuilder.domain with parameters of type StatementModifierConstructorDescriptionPipeHttpResponseTo
(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 -
Uses of Statement in org.jclouds.scriptbuilder.functions
Methods in org.jclouds.scriptbuilder.functions with parameters of type Statement -
Uses of Statement in org.jclouds.scriptbuilder.statements.chef
Classes in org.jclouds.scriptbuilder.statements.chef that implement StatementModifier and TypeClassDescriptionclass
Bootstraps a node using Chef Solo.class
Installs Chef gems onto a host.class
Installs the Chef client using the Omnibus installer. -
Uses of Statement in org.jclouds.scriptbuilder.statements.git
Classes in org.jclouds.scriptbuilder.statements.git that implement StatementModifier and TypeClassDescriptionclass
Clones a gitRepoAndRef into a newly created directory, creates remote-tracking branches for each branch in the cloned gitRepoAndRef (visible using git branch -r), and creates and checks out an initial branch that is forked from the cloned gitRepoAndRef's currently active branch.class
Installs git onto a host -
Uses of Statement in org.jclouds.scriptbuilder.statements.java
Classes in org.jclouds.scriptbuilder.statements.java that implement StatementModifier and TypeClassDescriptionstatic class
static class
Methods in org.jclouds.scriptbuilder.statements.java that return Statement -
Uses of Statement in org.jclouds.scriptbuilder.statements.login
Classes in org.jclouds.scriptbuilder.statements.login that implement StatementModifier and TypeClassDescriptionclass
Controls the administrative access to a node.class
Replaces the password entry for a user in the shadow file, using SHA-512 crypt syntax.class
class
Control /etc/sudoersclass
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 StatementModifier and TypeMethodDescriptionstatic 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.ruby
Classes in org.jclouds.scriptbuilder.statements.ruby that implement StatementModifier and TypeClassDescriptionclass
Installs Ruby onto a host.class
Installs RubyGems onto a host. -
Uses of Statement in org.jclouds.scriptbuilder.statements.ssh
Classes in org.jclouds.scriptbuilder.statements.ssh that implement StatementModifier and TypeClassDescriptionclass
class
class
Control sshd_configMethods in org.jclouds.scriptbuilder.statements.ssh that return Statement -
Uses of Statement in org.jclouds.softlayer.compute.options
Methods in org.jclouds.softlayer.compute.options with parameters of type StatementModifier and TypeMethodDescriptionThis script will be executed as the root user upon system startup.