public class InitScript extends com.google.common.collect.ForwardingObject implements Statement, AcceptsStatementVisitor
Modifier and Type | Class and Description |
---|---|
static class |
InitScript.Builder |
Modifier and Type | Field and Description |
---|---|
protected ScriptBuilder |
delegate |
protected Map<String,String> |
exports |
protected StatementList |
init |
protected String |
instanceHome |
protected String |
instanceName |
protected String |
logDir |
protected StatementList |
run |
Modifier | Constructor and Description |
---|---|
protected |
InitScript(String instanceName,
String instanceHome,
String logDir,
Map<String,String> exports,
StatementList init,
StatementList run) |
Modifier and Type | Method and Description |
---|---|
void |
accept(StatementVisitor visitor) |
static InitScript.Builder |
builder() |
protected ScriptBuilder |
delegate() |
boolean |
equals(Object that) |
Iterable<String> |
functionDependencies(OsFamily family) |
StatementList |
getInitStatement() |
String |
getInstanceHome()
default
/tmp/$INSTANCE_NAME
|
String |
getInstanceName() |
String |
getLogDir()
default
$INSTANCE_HOME |
StatementList |
getRunStatement() |
int |
hashCode() |
static ScriptBuilder |
makeInitScriptStatement(String instanceName,
String instanceHome,
String logDir,
Map<String,String> exports,
StatementList init,
StatementList run) |
String |
render(OsFamily family) |
String |
toString() |
protected final String instanceName
protected final String instanceHome
protected final String logDir
protected final StatementList init
protected final StatementList run
protected final ScriptBuilder delegate
protected InitScript(String instanceName, String instanceHome, String logDir, Map<String,String> exports, StatementList init, StatementList run)
exports
- keys are the variables to export in UPPER_UNDERSCORE case formatpublic static InitScript.Builder builder()
public static ScriptBuilder makeInitScriptStatement(String instanceName, String instanceHome, String logDir, Map<String,String> exports, StatementList init, StatementList run)
exports
- keys are the variables to export in UPPER_UNDERSCORE case formatpublic String getInstanceName()
public String getInstanceHome()
/tmp/$INSTANCE_NAME
/tmp
public String getLogDir()
$INSTANCE_HOME
public StatementList getInitStatement()
public StatementList getRunStatement()
public String toString()
toString
in class com.google.common.collect.ForwardingObject
public void accept(StatementVisitor visitor)
accept
in interface AcceptsStatementVisitor
public Iterable<String> functionDependencies(OsFamily family)
functionDependencies
in interface Statement
protected ScriptBuilder delegate()
delegate
in class com.google.common.collect.ForwardingObject
Copyright © 2009-2013 jclouds. All Rights Reserved.