Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.englishtown.vertx.solr;
 
 
Solr client verticle
public class SolrServiceVerticle extends AbstractVerticle {
    public static final String DEFAULT_ADDRESS = "et.solr";
    public final SolrService service;
    @Inject
    public SolrServiceVerticle(SolrService solrService) {
         = solrService;
    }

    
    @Override
    public void start() throws Exception {
        String address = config().getString("address");
        if (address == null || address.isEmpty()) {
            throw new IllegalStateException("address field must be specified in config for service verticle");
        }
        // Register service as an event bus proxy
        ProxyHelper.registerService(SolrService.classaddress);
        // Start the service
        .start();
    }

    
    @Override
    public void stop() throws Exception {
        .stop();
    }
New to GrepCode? Check out our FAQ X