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 InitScriptRunScriptOnNodeAsInitScriptUsingSsh.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 TemplateOptionsunsupported 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 StatementComputeServiceUtils.execHttpResponse(URI location) static StatementComputeServiceUtils.execHttpResponse(HttpRequest request) build a shell script that invokes the contents of the http request in bash.static StatementComputeServiceUtils.extractTargzIntoDirectory(URI targz, String directory) static StatementComputeServiceUtils.extractTargzIntoDirectory(HttpRequest targz, String directory) build a shell script that invokes the contents of the http request in bash.static StatementComputeServiceUtils.extractZipIntoDirectory(URI zip, String directory) static StatementComputeServiceUtils.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 EC2TemplateOptionsThis 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 TypeClassDescriptionclassyou cannot return from a top-level script, so if you are using snippets that issuereturnthen you'll want to wrap them in this.classCreates an init script fileclassCreates a shell script.Methods in org.jclouds.scriptbuilder that return StatementModifier and TypeMethodDescriptionstatic Statementprotected StatementExitInsteadOfReturn.delegate()static Statementstatic StatementMethods 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 TypeClassDescriptionclassCreates a run scriptclassStatement used in a shell scriptclassCreates a run scriptclassCreates a run scriptstatic classclassStatement used in a shell scriptclassStatement used in a shell scriptclassStatement used in a shell script without modifications apart from a trailing newline.classPipes the content of the http response to a shell command that accepts input from stdinclassPipes the content of the http response to bashclassPipes the content of the http response to tar -xpzfclasssaves the content of the http response to a fileclassStatements used in a shell scriptclassStatement used in a shell scriptclassunzips 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 StatementStatements.appendFile(String path, Iterable<String> lines) static StatementStatements.appendFile(String path, Iterable<String> lines, String delimiter) static StatementStatements.appendFile(String path, String line, String delimiter) static Statementstatic StatementStatements.createOrOverwriteFile(String path, Iterable<String> lines) static StatementStatements.createOrOverwriteFile(String path, Iterable<String> lines, String delimiter) static Statementinterprets and adds a newline to the statementstatic StatementStatements.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.gznormally extracts directories like./apache-maven-3.0.4/bin.static StatementStatements.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 StatementStatements.extractTargzIntoDirectory(URI targz, String directory) static StatementStatements.extractZipIntoDirectory(String method, URI endpoint, com.google.common.collect.Multimap<String, String> headers, String directory) unzip the data received from the request parameters.static StatementStores the pid into the variableFOUND_PIDif successful.static StatementRuns the script in a way that it can be matched later withStatements.findPid(java.lang.String)static Statementstatement can have multiple newlines, note you should uselfto be portablestatic StatementStatements.kill()Kills the pid and subprocesses related to the variableFOUND_PIDif set.static Statementsends statement only appending a newlinestatic StatementStatements.newStatementList(Statement... statements) static StatementStatements.pipeHttpResponseToBash(String method, URI endpoint, com.google.common.collect.Multimap<String, String> headers) exec the data received from the request parameters.static Statementstatic StatementStatements.saveHttpResponseTo(URI source, String dir, String file) static StatementMethods 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 StatementStatements.newStatementList(Statement... statements) voidvoidMethod 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 TypeClassDescriptionclassBootstraps a node using Chef Solo.classInstalls Chef gems onto a host.classInstalls 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 TypeClassDescriptionclassClones 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.classInstalls 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 classstatic classMethods 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 TypeClassDescriptionclassControls the administrative access to a node.classReplaces the password entry for a user in the shadow file, using SHA-512 crypt syntax.classclassControl /etc/sudoersclassCreates 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 StatementSudoStatements.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 TypeClassDescriptionclassInstalls Ruby onto a host.classInstalls RubyGems onto a host. -
Uses of Statement in org.jclouds.scriptbuilder.statements.ssh
Classes in org.jclouds.scriptbuilder.statements.ssh that implement StatementModifier and TypeClassDescriptionclassclassclassControl 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.