public class Program extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
kDefaultPipeline |
| Constructor and Description |
|---|
Program()
Construct an empty program.
|
| Modifier and Type | Method and Description |
|---|---|
Program |
addPipeline(String name,
Pipeline pipeline)
Add a pipeline to this program.
|
Program |
addServiceToSource(String srcName,
String svcName,
ProcessingService service)
Add service to a given source.
|
Program |
addSink(String name,
Sink sink)
Add a sink to this program.
|
Program |
addSource(String name,
Source src)
Add a message source to this program.
|
static org.json.JSONObject |
config() |
Pipeline |
getPipeline(String plName)
Get a pipeline by name.
|
Map<String,ProcessingService> |
getServicesFor(String srcName)
Get the services for a given source
|
Map<String,Sink> |
getSinks()
Get the labeled sinks in this program
|
Map<String,Source> |
getSources()
Get the labeled sources in this program
|
public static final String kDefaultPipeline
public static org.json.JSONObject config()
public Program addSource(String name, Source src)
name - src - public Program addServiceToSource(String srcName, String svcName, ProcessingService service)
srcName - service - public Map<String,Source> getSources()
public Map<String,ProcessingService> getServicesFor(String srcName)
srcName - public Program addSink(String name, Sink sink)
name - sink - public Map<String,Sink> getSinks()
public Program addPipeline(String name, Pipeline pipeline)
name - pipeline - Copyright © 2022 continual.io. All rights reserved.