Search in sources :

Example 6 with BasicService

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

Example 7 with BasicService

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

Example 8 with BasicService

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

Example 9 with BasicService

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

Example 10 with BasicService

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()));
}
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