Search in sources :

Example 6 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class HttpRepositoryConnectorVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(address).register(RepositoryConnectorProxy.class, new HttpRepositoryConnectorProxyImpl(vertx, config()));
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) RepositoryConnectorProxy(io.knotx.proxy.RepositoryConnectorProxy) HttpRepositoryConnectorProxyImpl(io.knotx.repository.impl.HttpRepositoryConnectorProxyImpl)

Example 7 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class FragmentSplitterVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.getAddress()).register(KnotProxy.class, new FragmentSplitterKnotProxyImpl(configuration));
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy) FragmentSplitterKnotProxyImpl(io.knotx.splitter.impl.FragmentSplitterKnotProxyImpl)

Example 8 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class ServiceKnotVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.getAddress()).register(KnotProxy.class, new ServiceKnotProxyImpl(vertx, configuration));
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy) ServiceKnotProxyImpl(io.knotx.knot.service.impl.ServiceKnotProxyImpl)

Example 9 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project vertx-swagger by bobxwang.

the class WorkVerticle method start.

@Override
public void start() throws Exception {
    super.start();
    // vertx.eventBus().consumer(wikiDbQueue, this::onMessage);
    serviceBinder = new ServiceBinder(vertx);
    DatabaseService service = DatabaseService.create(vertx);
    if (consumer == null) {
        consumer = serviceBinder.setAddress(wikiDbQueue).register(DatabaseService.class, service);
    }
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) DatabaseService(com.bob.vertx.webapi.service.DatabaseService)

Example 10 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project vertx-examples by vert-x3.

the class SpringWorker method start.

@Override
public void start(Future<Void> startFuture) throws Exception {
    new ServiceBinder(vertx).setAddress(BookAsyncService.ADDRESS).register(BookAsyncService.class, bookAsyncService).completionHandler(ar -> {
        if (ar.succeeded()) {
            LOG.info("SpringWorker started");
            startFuture.complete();
        } else {
            startFuture.fail(ar.cause());
        }
    });
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder)

Aggregations

ServiceBinder (io.vertx.serviceproxy.ServiceBinder)15 KnotProxy (io.knotx.proxy.KnotProxy)8 AdapterProxy (io.knotx.proxy.AdapterProxy)3 RepositoryConnectorProxy (io.knotx.proxy.RepositoryConnectorProxy)2 DatabaseService (com.bob.vertx.webapi.service.DatabaseService)1 Lists (com.google.common.collect.Lists)1 HttpActionAdapterProxyImpl (io.knotx.adapter.action.http.impl.HttpActionAdapterProxyImpl)1 HttpServiceAdapterProxyImpl (io.knotx.adapter.service.http.impl.HttpServiceAdapterProxyImpl)1 AdapterRequest (io.knotx.dataobjects.AdapterRequest)1 AdapterResponse (io.knotx.dataobjects.AdapterResponse)1 ClientResponse (io.knotx.dataobjects.ClientResponse)1 Fragment (io.knotx.dataobjects.Fragment)1 KnotContext (io.knotx.dataobjects.KnotContext)1 GatewayKnotProxyImpl (io.knotx.gateway.impl.GatewayKnotProxyImpl)1 RequestProcessorKnotProxyImpl (io.knotx.gateway.impl.RequestProcessorKnotProxyImpl)1 ResponseProviderKnotProxyImpl (io.knotx.gateway.impl.ResponseProviderKnotProxyImpl)1 MultiMapCollector (io.knotx.http.MultiMapCollector)1 KnotxConfiguration (io.knotx.junit.rule.KnotxConfiguration)1 Logback (io.knotx.junit.rule.Logback)1 TestVertxDeployer (io.knotx.junit.rule.TestVertxDeployer)1