use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class FilterAppWithNewFlowAPI method configure.
@Override
public void configure() {
setName("FilterApp");
setDescription("Application for filtering numbers. Test runtimeargs.");
addFlow(new FilterFlow());
addService(new BasicService("CountService", new CountHandler()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class WordCountApp method configure.
@Override
public void configure() {
setName("WordCountApp");
addStream(new Stream("text"));
addDatasetModule("my-kv", MyKeyValueTableDefinition.Module.class);
createDataset("mydataset", "myKeyValueTable", DatasetProperties.EMPTY);
createDataset("totals", "myKeyValueTable", DatasetProperties.EMPTY);
addFlow(new WordCountFlow());
addService(new BasicService("WordFrequency", new WordFrequencyHandler()));
addMapReduce(new CountTotal());
addMapReduce(new CountFromStream());
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class AppWithDataset method configure.
@Override
public void configure() {
setDescription("Application with Dataset");
addStream(new Stream("mystream"));
createDataset("myds", KeyValueTable.class);
addService(new BasicService("PingService", new PingHandler()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class DummyAppWithTrackingTable method configure.
@Override
public void configure() {
setName("dummy");
setDescription("dummy app with a dataset that tracks open and close");
addStream(new Stream("xx"));
createDataset("foo", TrackingTable.class);
createDataset("bar", TrackingTable.class);
addFlow(new DummyFlow());
addMapReduce(new DummyBatch());
addService(new BasicService("DummyService", new DummyHandler()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class AppWithDatasetDuplicate method configure.
@Override
public void configure() {
setName("AppWithDataSetDuplicateName");
setDescription("Application with Dataset Duplicate Name, but different type, for testing");
createDataset("myds", TimeseriesTable.class);
addService(new BasicService("PingService", new PingHandler()));
}
Aggregations