public class CommandLineTool extends Object
Constructor and Description |
---|
CommandLineTool() |
Modifier and Type | Method and Description |
---|---|
protected void |
error(String msg) |
protected void |
error(String message,
Throwable e) |
protected void |
error(Throwable e) |
void |
run() |
void |
setCommandLineOptions(CommandLineOptions commandLineOptions) |
void |
setCredentialManager(CredentialManager credentialManager) |
void |
setDatabaseConfiguration(DatabaseConfiguration databaseConfiguration)
Sets the databaseConfiguration.
|
void |
setDatabaseManager(DatabaseManager databaseManager)
Sets the databaseManager.
|
void |
setRunService(RunService runService) |
int |
setupAndExecute() |
void |
setWorkflowBundleIO(WorkflowBundleIO workflowBundleIO) |
protected void |
validateWorkflowBundle(WorkflowBundle workflowBundle) |
public void run()
public int setupAndExecute() throws InputMismatchException, InvalidOptionException, CMException, OpenDataflowException, ReaderException, IOException, ValidationException, ReadInputException, InvalidWorkflowException, RunProfileException, InvalidRunIdException, RunStateException, InvalidExecutionIdException, DatabaseConfigurationException
protected void validateWorkflowBundle(WorkflowBundle workflowBundle) throws ValidationException
ValidationException
protected void error(String msg)
protected void error(Throwable e)
public void setCommandLineOptions(CommandLineOptions commandLineOptions)
public void setRunService(RunService runService)
public void setCredentialManager(CredentialManager credentialManager)
public void setWorkflowBundleIO(WorkflowBundleIO workflowBundleIO)
public void setDatabaseConfiguration(DatabaseConfiguration databaseConfiguration)
databaseConfiguration
- the new value of databaseConfigurationpublic void setDatabaseManager(DatabaseManager databaseManager)
databaseManager
- the new value of databaseManagerCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.