public class DefaultApplicationManager extends Object implements ApplicationManager
ApplicationManager.| Constructor and Description |
|---|
DefaultApplicationManager(co.cask.cdap.data2.dataset2.DatasetFramework datasetFramework,
co.cask.tephra.TransactionSystemClient txSystemClient,
StreamWriterFactory streamWriterFactory,
ProcedureClientFactory procedureClientFactory,
org.apache.twill.discovery.DiscoveryServiceClient discoveryServiceClient,
org.junit.rules.TemporaryFolder tempFolder,
AppFabricClient appFabricClient,
co.cask.cdap.proto.Id.Application applicationId,
org.apache.twill.filesystem.Location deployedJar) |
| Modifier and Type | Method and Description |
|---|---|
<T> DataSetManager<T> |
getDataSet(String dataSetName) |
StreamWriter |
getStreamWriter(String streamName) |
FlowManager |
startFlow(String flowName) |
FlowManager |
startFlow(String flowName,
Map<String,String> arguments) |
MapReduceManager |
startMapReduce(String jobName) |
MapReduceManager |
startMapReduce(String jobName,
Map<String,String> arguments) |
ProcedureManager |
startProcedure(String procedureName) |
ProcedureManager |
startProcedure(String procedureName,
Map<String,String> arguments) |
ServiceManager |
startService(String serviceName) |
ServiceManager |
startService(String serviceName,
Map<String,String> arguments) |
SparkManager |
startSpark(String jobName) |
SparkManager |
startSpark(String jobName,
Map<String,String> arguments) |
WorkerManager |
startWorker(String workerName) |
WorkerManager |
startWorker(String workerName,
Map<String,String> arguments) |
WorkflowManager |
startWorkflow(String workflowName,
Map<String,String> arguments) |
void |
stopAll() |
@Inject
public DefaultApplicationManager(co.cask.cdap.data2.dataset2.DatasetFramework datasetFramework,
co.cask.tephra.TransactionSystemClient txSystemClient,
StreamWriterFactory streamWriterFactory,
ProcedureClientFactory procedureClientFactory,
org.apache.twill.discovery.DiscoveryServiceClient discoveryServiceClient,
org.junit.rules.TemporaryFolder tempFolder,
AppFabricClient appFabricClient,
co.cask.cdap.proto.Id.Application applicationId,
org.apache.twill.filesystem.Location deployedJar)
public FlowManager startFlow(String flowName)
startFlow in interface ApplicationManagerpublic FlowManager startFlow(String flowName, Map<String,String> arguments)
startFlow in interface ApplicationManagerpublic MapReduceManager startMapReduce(String jobName)
startMapReduce in interface ApplicationManagerpublic MapReduceManager startMapReduce(String jobName, Map<String,String> arguments)
startMapReduce in interface ApplicationManagerpublic SparkManager startSpark(String jobName)
startSpark in interface ApplicationManagerpublic SparkManager startSpark(String jobName, Map<String,String> arguments)
startSpark in interface ApplicationManagerpublic ProcedureManager startProcedure(String procedureName)
startProcedure in interface ApplicationManagerpublic ProcedureManager startProcedure(String procedureName, Map<String,String> arguments)
startProcedure in interface ApplicationManagerpublic WorkflowManager startWorkflow(String workflowName, Map<String,String> arguments)
startWorkflow in interface ApplicationManagerpublic ServiceManager startService(String serviceName)
startService in interface ApplicationManagerpublic ServiceManager startService(String serviceName, Map<String,String> arguments)
startService in interface ApplicationManagerpublic WorkerManager startWorker(String workerName)
startWorker in interface ApplicationManagerpublic WorkerManager startWorker(String workerName, Map<String,String> arguments)
startWorker in interface ApplicationManagerpublic StreamWriter getStreamWriter(String streamName)
getStreamWriter in interface ApplicationManagerpublic <T> DataSetManager<T> getDataSet(String dataSetName)
getDataSet in interface ApplicationManagerpublic void stopAll()
stopAll in interface ApplicationManagerCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.