Package org.jclouds.scriptbuilder
Class InitScript.Builder
- java.lang.Object
-
- org.jclouds.scriptbuilder.InitScript.Builder
-
- Enclosing class:
- InitScript
public static class InitScript.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
exports
protected StatementList
init
protected String
instanceHome
protected String
instanceName
protected String
logDir
protected StatementList
run
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitScript
build()
InitScript.Builder
exportVariables(Map<String,String> exports)
InitScript.Builder
home(String instanceHome)
InitScript.Builder
init(Iterable<Statement> init)
InitScript.Builder
init(Statement init)
InitScript.Builder
init(Statement... init)
InitScript.Builder
init(StatementList init)
InitScript.Builder
logDir(String logDir)
InitScript.Builder
name(String instanceName)
InitScript.Builder
run(Iterable<Statement> run)
InitScript.Builder
run(Statement run)
InitScript.Builder
run(Statement... run)
InitScript.Builder
run(StatementList run)
-
-
-
Field Detail
-
instanceName
protected String instanceName
-
instanceHome
protected String instanceHome
-
logDir
protected String logDir
-
init
protected StatementList init
-
run
protected StatementList run
-
-
Method Detail
-
name
public InitScript.Builder name(String instanceName)
- See Also:
InitScript.getInstanceName()
-
home
public InitScript.Builder home(String instanceHome)
- See Also:
InitScript.getInstanceHome()
-
logDir
public InitScript.Builder logDir(String logDir)
- See Also:
InitScript.getLogDir()
-
exportVariables
public InitScript.Builder exportVariables(Map<String,String> exports)
- Parameters:
exports
- keys are the variables to export in UPPER_UNDERSCORE case format- See Also:
InitScript#getExportedVariables()
-
run
public InitScript.Builder run(Statement run)
- See Also:
InitScript#getRun()
-
run
public InitScript.Builder run(Statement... run)
- See Also:
InitScript#getRun()
-
run
public InitScript.Builder run(Iterable<Statement> run)
- See Also:
InitScript#getRun()
-
run
public InitScript.Builder run(StatementList run)
- See Also:
InitScript#getRun()
-
init
public InitScript.Builder init(Statement init)
- See Also:
InitScript#getInit()
-
init
public InitScript.Builder init(Statement... init)
- See Also:
InitScript#getInit()
-
init
public InitScript.Builder init(Iterable<Statement> init)
- See Also:
InitScript#getInit()
-
init
public InitScript.Builder init(StatementList init)
- See Also:
InitScript#getInit()
-
build
public InitScript build()
-
-