public interface ApplicationManager
| Modifier and Type | Method and Description |
|---|---|
<T> DataSetManager<T> |
getDataSet(String dataSetName)
Gets an instance of
DataSet of the given dataset name. |
StreamWriter |
getStreamWriter(String streamName)
Gets a
StreamWriter for writing data to the given stream. |
FlowManager |
startFlow(String flowName)
Starts a flow.
|
FlowManager |
startFlow(String flowName,
Map<String,String> arguments)
Starts a flow.
|
MapReduceManager |
startMapReduce(String jobName)
Starts a mapreduce job.
|
MapReduceManager |
startMapReduce(String jobName,
Map<String,String> arguments)
Starts a mapreduce job.
|
ProcedureManager |
startProcedure(String procedureName)
Deprecated.
As of version 2.6.0, replaced by
Service |
ProcedureManager |
startProcedure(String procedureName,
Map<String,String> arguments)
Deprecated.
As of version 2.6.0, replaced by
Service |
ServiceManager |
startService(String serviceName)
Starts a service.
|
ServiceManager |
startService(String serviceName,
Map<String,String> arguments)
Starts a service.
|
SparkManager |
startSpark(String jobName)
Starts a Spark job.
|
SparkManager |
startSpark(String jobName,
Map<String,String> arguments)
Starts a Spark job.
|
WorkflowManager |
startWorkflow(String workflowName,
Map<String,String> arguments)
Starts a workflow.
|
void |
stopAll()
Stops all processors managed by this manager and clear all associated runtime metrics.
|
FlowManager startFlow(String flowName)
flowName - Name of the flow to start.FlowManager for controlling the started flow.FlowManager startFlow(String flowName, Map<String,String> arguments)
flowName - Name of the flow to start.arguments - Arguments to be passed while starting a flow.FlowManager for controlling the started flow.MapReduceManager startMapReduce(String jobName)
jobName - Name of the mapreduce job to start.MapReduceManager for controlling the started mapreduce job.MapReduceManager startMapReduce(String jobName, Map<String,String> arguments)
jobName - Name of the mapreduce job to start.arguments - Arguments to be passed while starting a mapreduce.MapReduceManager for controlling the started mapreduce job.SparkManager startSpark(String jobName)
jobName - Name of the spark job to start.SparkManager for controlling the started spark job.SparkManager startSpark(String jobName, Map<String,String> arguments)
jobName - Name of the spark job to start.arguments - Arguments to be passed while starting a spark.SparkManager for controlling the started spark job.@Deprecated ProcedureManager startProcedure(String procedureName)
ServiceprocedureName - Name of the procedure to start.ProcedureManager for controlling the started procedure.@Deprecated ProcedureManager startProcedure(String procedureName, Map<String,String> arguments)
ServiceprocedureName - Name of the procedure to start.arguments - Arguments to be passed while starting a procedure.ProcedureManager for controlling the started procedure.StreamWriter getStreamWriter(String streamName)
StreamWriter for writing data to the given stream.streamName - Name of the stream to write to.StreamWriter.<T> DataSetManager<T> getDataSet(String dataSetName)
DataSet of the given dataset name.
Operations on the returned DataSet always performed synchronously,
i.e. no support for multi-operations transaction.T - Type of the dataset.dataSetName - Name of the dataset to retrieve.DataSetManager instance.void stopAll()
WorkflowManager startWorkflow(String workflowName, Map<String,String> arguments)
workflowName - arguments - WorkflowManager for controlling the started workflow.ServiceManager startService(String serviceName)
serviceName - Name of the service to be started.ServiceManager to control the running service.ServiceManager startService(String serviceName, Map<String,String> arguments)
serviceName - Name of the service to be started.arguments - Arguments to be passed for the service.ServiceManager to control the running service.Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.