| Modifier and Type | Method and Description | 
|---|---|
AWSEC2TemplateOptions | 
AWSEC2TemplateOptions.runScript(Statement script)
This script will be executed as the root user upon system startup. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CloudSigmaTemplateOptions | 
CloudSigmaTemplateOptions.runScript(Statement script)
This script will be executed as the root user upon system startup. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
RunScriptOnNodesException.getRunScript()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
| Constructor and Description | 
|---|
RunScriptOnNodesException(Statement runScript,
                         RunScriptOptions options,
                         Map<NodeMetadata,ExecResponse> successfulNodes,
                         Map<?,Exception> executionExceptions,
                         Map<? extends NodeMetadata,? extends Throwable> failedNodes)  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Statement | 
RunScriptOnNodeUsingSsh.statement  | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
RunScriptOnNodeUsingSsh.getStatement()  | 
Statement | 
RunScriptOnNode.getStatement()  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Constructor and Description | 
|---|
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)  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Statement | 
StatementOnNode.statement  | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
StatementOnNode.getStatement()  | 
| Constructor and Description | 
|---|
StatementOnNode(Statement statement,
               NodeMetadata node)  | 
StatementOnNodeCompletion(Statement statement,
                         NodeMetadata node,
                         ExecResponse response)  | 
StatementOnNodeFailure(Statement statement,
                      NodeMetadata node,
                      Throwable cause)  | 
StatementOnNodeSubmission(Statement statement,
                         NodeMetadata node)  | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
TemplateOptionsToStatement.apply(TemplateOptions options)  | 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
| Modifier and Type | Field and Description | 
|---|---|
protected Statement | 
TemplateOptions.script  | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
TemplateOptions.getRunScript()  | 
Statement | 
TemplateOptions.ImmutableTemplateOptions.getRunScript()  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Modifier and Type | Method and Description | 
|---|---|
Callable<RunScriptOnNode> | 
InitializeRunScriptOnNodeOrPlaceInBadMap.Factory.create(NodeMetadata node,
      Statement script,
      RunScriptOptions options,
      Map<NodeMetadata,Exception> badNodes)  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Modifier and Type | Method and Description | 
|---|---|
EC2TemplateOptions | 
EC2TemplateOptions.runScript(Statement script)
This script will be executed as the root user upon system startup. 
 | 
static EC2TemplateOptions | 
EC2TemplateOptions.Builder.runScript(Statement script)  | 
| Modifier and Type | Method and Description | 
|---|---|
JoyentCloudTemplateOptions | 
JoyentCloudTemplateOptions.runScript(Statement script)
This script will be executed as the root user upon system startup. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
NovaTemplateOptions | 
NovaTemplateOptions.runScript(Statement script)
This script will be executed as the root user upon system startup. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
| Constructor and Description | 
|---|
ExitInsteadOfReturn(Statement delegate)  | 
InitBuilder(String instanceName,
           Statement initStatement,
           Statement runStatement)
Deprecated.  
  | 
| Constructor and Description | 
|---|
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.  
  | 
| Modifier and Type | Class and Description | 
|---|---|
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 
 | 
| Modifier and Type | Field and Description | 
|---|---|
List<Statement> | 
StatementList.statements  | 
| Modifier and Type | Method and Description | 
|---|---|
static 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 | 
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 delimiter)  | 
static Statement | 
Statements.exec(String portableStatement)
interprets and adds a newline to the statement 
 | 
static Statement | 
Statements.extractTargzAndFlattenIntoDirectory(URI tgz,
                                   String dest)
like  
Statements.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 | 
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)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Statement> | 
StatementList.delegate()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Statement | 
Statements.newStatementList(Statement... statements)  | 
void | 
StatementVisitor.visit(Statement in)  | 
void | 
AdminAccessVisitor.visit(Statement input)  | 
| Modifier and Type | Method and Description | 
|---|---|
static CreateRunScript | 
Statements.createRunScript(String instanceName,
               Iterable<String> exports,
               String pwd,
               Iterable<Statement> statements)  | 
static Statement | 
Statements.switchArg(int arg,
         Map<String,Statement> valueToActions)  | 
| Constructor and Description | 
|---|
PipeHttpResponseTo(Statement toExec,
                  String method,
                  URI endpoint,
                  com.google.common.collect.Multimap<String,String> headers)  | 
StatementList(Statement... statements)  | 
| Constructor and Description | 
|---|
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. | 
| Modifier and Type | Method and Description | 
|---|---|
Credentials | 
CredentialsFromAdminAccess.apply(Statement input)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
CloneGitRepo
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  | 
InstallGit
Installs git onto a host 
 | 
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
InstallJDK.FromOpenJDK  | 
static class  | 
InstallJDK.FromURL  | 
| Modifier and Type | Method and Description | 
|---|---|
static Statement | 
InstallJDK.fromOpenJDK()  | 
static Statement | 
InstallJDK.fromOracle()  | 
static Statement | 
InstallJDK.fromURL()
Deprecated.  
 | 
static Statement | 
InstallJDK.fromURL(URI url)  | 
| Modifier and Type | Class and Description | 
|---|---|
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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Statement | 
SudoStatements.createWheel()
create new sudoers file with the wheel group authorized to all commands without a password 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AuthorizeRSAPublicKeys  | 
class  | 
InstallRSAPrivateKey  | 
class  | 
SshdConfig
Control sshd_config 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Statement | 
SshStatements.lockSshd()
lock sshd down so root cannot login, and password auth is disabled, 
 | 
static Statement | 
SshStatements.sshdConfig(Map<String,String> params)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
DeleteGShadowLock
Deletes /etc/gshadow.lock. 
 | 
class  | 
EnableNetworkInterface
Up the network interface chosen 
 | 
class  | 
GetIPAddressFromMAC  | 
class  | 
InstallGuestAdditions
Mounts the DVD with guest additions that was downloaded and attached as removable storage. 
 | 
class  | 
ScanNetworkWithPing  | 
class  | 
SetIpAddress
Sets the ipaddress using ssh. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Statement | 
Statements.exportIpAddressFromVmNamed(String vmName)
Extract the IP address from the specified vm and stores the IP address into the variable  
FOUND_IP_ADDRESS if successful. | 
| Modifier and Type | Method and Description | 
|---|---|
com.google.common.util.concurrent.ListenableFuture<ExecResponse> | 
MachineUtils.runScriptOnNode(NodeMetadata metadata,
               Statement statement,
               RunScriptOptions options)  | 
Copyright © 2009-2013 jclouds. All Rights Reserved.