Search in sources :

Example 1 with BasicService

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()));
}
Also used : BasicService(co.cask.cdap.api.service.BasicService)

Example 2 with BasicService

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());
}
Also used : BasicService(co.cask.cdap.api.service.BasicService) Stream(co.cask.cdap.api.data.stream.Stream)

Example 3 with BasicService

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()));
}
Also used : BasicService(co.cask.cdap.api.service.BasicService) Stream(co.cask.cdap.api.data.stream.Stream)

Example 4 with BasicService

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()));
}
Also used : BasicService(co.cask.cdap.api.service.BasicService) Stream(co.cask.cdap.api.data.stream.Stream)

Example 5 with BasicService

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()));
}
Also used : BasicService(co.cask.cdap.api.service.BasicService)

Aggregations

BasicService (co.cask.cdap.api.service.BasicService)16 Stream (co.cask.cdap.api.data.stream.Stream)6 AbstractHttpServiceHandler (co.cask.cdap.api.service.http.AbstractHttpServiceHandler)1