public class DeploymentConfig extends Object
| Constructor and Description |
|---|
DeploymentConfig()
Public Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Task task)
Add a task to this DeploymentConfig.
|
void |
apply(InputStream srcStream,
OutputStream destStream,
String ignorePath)
Apply this DeploymentConfig to the destination using source as input.
|
ConfigGroupManager |
getGroupManager()
Gets the groupManager property value.
|
String |
getName()
Gets the name property value.
|
List<Task> |
getTasks()
Gets the tasks property value.
|
boolean |
interactiveMerge(InteractiveConfigurer configurer,
boolean forceInteractive)
Perform an interactive post merge operation.
|
boolean |
isEmpty()
Determine if this DeploymentConfig has no Tasks.
|
boolean |
merge(DeploymentConfig template)
Merge the template configuration into this instance.
|
void |
save(OutputStream outputStream)
Save this DeploymentConfig to persistent storage.
|
void |
setGroupManager(ConfigGroupManager groupManager)
Sets the groupManager property.
|
void |
setName(String name)
Sets the name property.
|
public String getName()
public void setName(String name)
name - the new property valuepublic ConfigGroupManager getGroupManager()
public void setGroupManager(ConfigGroupManager groupManager)
groupManager - the new property valuepublic boolean interactiveMerge(InteractiveConfigurer configurer, boolean forceInteractive) throws Exception
For each non-configured Task, ask the user to configure the task.
configurer - the IntercativeConfigurer to useforceInteractive - if true, all tasks will be considered not configuredException - indicating processing failurepublic boolean merge(DeploymentConfig template) throws Exception
template - the template configuration to mergeException - indicating processing failurepublic List<Task> getTasks()
public void addTask(Task task)
task - the Task to addpublic boolean isEmpty()
public void save(OutputStream outputStream) throws IOException
outputStream - the stream to save this DeploymentConfig intoIOException - indicating failurepublic void apply(InputStream srcStream, OutputStream destStream, String ignorePath) throws Exception
srcStream - the InputStream file to usedestStream - the OutputStream file to useignorePath - a zip path to ignoreException - indicating IO errorCopyright © 2013–2017 Polago AB. All rights reserved.