use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class AppWithServices method configure.
/**
* Override this method to configure the application.
*/
@Override
public void configure() {
setName("AppWithServices");
setDescription("Application with Services");
addService(new BasicService("NoOpService", new PingHandler(), new MultiPingHandler()));
addWorker(new DummyWorker());
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class AppReturnsArgs method configure.
@Override
public void configure() {
setName(NAME);
setDescription("Application with Service which returns Runtime Arguments");
addService(new BasicService(SERVICE, new ArgService()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class HighPassFilterApp method configure.
@Override
public void configure() {
setName(NAME);
setDescription("Application for filtering numbers. Test runtimeargs.");
addStream(new Stream("inputvalue"));
createDataset("counter", KeyValueTable.class);
addFlow(new FilterFlow());
addService(new BasicService("Count", new CountHandler()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class JoinMultiStreamApp method configure.
@Override
public void configure() {
setName("JoinMulti");
setDescription("JoinMulti");
addStream(new Stream("s1"));
addStream(new Stream("s2"));
addStream(new Stream("s3"));
createDataset("mytable", KeyValueTable.class);
addFlow(new JoinMultiFlow());
addService(new BasicService("QueryService", new QueryHandler()));
}
use of co.cask.cdap.api.service.BasicService in project cdap by caskdata.
the class AppUsingCustomModule method configure.
@Override
public void configure() {
createDataset("myTable", "myKeyValueTable", DatasetProperties.EMPTY);
addService(new BasicService("MyService", new TableHandler()));
}
Aggregations