Ejemplo n.º 1
0
 public synchronized void start() {
   if (isDisabled()) {
     return;
   }
   if (transport == null) {
     transport = newTransport(dsn);
   }
   transport.start();
 }
Ejemplo n.º 2
0
 @Override
 protected void doStart() throws ElasticsearchException {
   adapter.rxMetric.clear();
   adapter.txMetric.clear();
   transport.transportServiceAdapter(adapter);
   transport.start();
   if (transport.boundAddress() != null && logger.isInfoEnabled()) {
     logger.info("{}", transport.boundAddress());
   }
   boolean setStarted = started.compareAndSet(false, true);
   assert setStarted : "service was already started";
 }