public static class InitScript.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
exports |
protected StatementList |
init |
protected String |
instanceHome |
protected String |
instanceName |
protected String |
logDir |
protected StatementList |
run |
Constructor and Description |
---|
InitScript.Builder() |
Modifier and Type | Method and 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) |
protected String instanceName
protected String instanceHome
protected String logDir
protected StatementList init
protected StatementList run
public InitScript.Builder name(String instanceName)
InitScript.getInstanceName()
public InitScript.Builder home(String instanceHome)
InitScript.getInstanceHome()
public InitScript.Builder logDir(String logDir)
InitScript.getLogDir()
public InitScript.Builder exportVariables(Map<String,String> exports)
exports
- keys are the variables to export in UPPER_UNDERSCORE case formatInitScript#getExportedVariables()
public InitScript.Builder run(Statement run)
InitScript#getRun()
public InitScript.Builder run(Statement... run)
InitScript#getRun()
public InitScript.Builder run(Iterable<Statement> run)
InitScript#getRun()
public InitScript.Builder run(StatementList run)
InitScript#getRun()
public InitScript.Builder init(Statement init)
InitScript#getInit()
public InitScript.Builder init(Statement... init)
InitScript#getInit()
public InitScript.Builder init(Iterable<Statement> init)
InitScript#getInit()
public InitScript.Builder init(StatementList init)
InitScript#getInit()
public InitScript build()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.