Examples of shutdown()


Examples of com.netflix.suro.input.kafka.KafkaConsumer.shutdown()

        rateLimiter.setRate(Double.MAX_VALUE);

        run.set(false);
        t.join();

        consumer.shutdown();

        sink.close();

        assertEquals(sink.getNumOfPendingMessages(), 0);
    }
View Full Code Here

Examples of com.netflix.suro.input.thrift.MessageSetProcessor.shutdown()

            Thread.sleep(1000);
            --count;
        }
        assertTrue(count > 0);

        queue.shutdown();
        sinkManager.shutdown();
    }

    public static MessageRouter startMessageRouter(Injector injector) throws Exception {
        String mapDesc = "{\n" +
View Full Code Here

Examples of com.netflix.suro.input.thrift.ThriftServer.shutdown()

        run.set(false);
        t.join();
        client.shutdown();

        server.shutdown();

        sink.close();

        assertEquals(sink.getNumOfPendingMessages(), 0);
    }
View Full Code Here

Examples of com.netflix.suro.sink.SinkManager.shutdown()

            --count;
        }
        assertTrue(count > 0);

        queue.shutdown();
        sinkManager.shutdown();
    }

    public static MessageRouter startMessageRouter(Injector injector) throws Exception {
        String mapDesc = "{\n" +
                "    \"topic1\": {\n" +
View Full Code Here

Examples of com.netflix.zeno.util.SimultaneousExecutor.shutdown()

        try {
            latch.await();
        } catch (InterruptedException ie) {
            ie.printStackTrace();
        }
        executor.shutdown();
    }

    private Runnable getFillSerializationStateRunnable(final FastBlobStateEngine otherStateEngine,
            final String serializerName, final SimultaneousExecutor executor, final CountDownLatch latch) {
        return new Runnable() {
View Full Code Here

Examples of com.nokia.dempsy.cluster.zookeeper.ZookeeperTestServer.shutdown()

        
         toCheck.check();
      }
      finally
      {
         server.shutdown();
      }
   }
  
   public Thread makeMainThread()
   {
View Full Code Here

Examples of com.nokia.dempsy.executor.DempsyExecutor.shutdown()

               if (strategyInbound != null)
                  try { strategyInbound.stop(); strategyInbound = null;} catch (Throwable th) { logger.info("Problem shutting down node for " + SafeString.valueOf(clusterDefinition), th); }
              
               DempsyExecutor executor = (DempsyExecutor)clusterDefinition.getExecutor(); // this can be null
               if (executor != null)
                  try { executor.shutdown(); } catch (Throwable th) { logger.info("Problem shutting down node for " + SafeString.valueOf(clusterDefinition), th); }
            }
           
            // Only called from tests
            public Router retouRteg() { return router; }
View Full Code Here

Examples of com.opengamma.engine.view.client.ViewClient.shutdown()

        viewClient.waitForCompletion();
      } catch (InterruptedException e) {
        s_logger.warn("Interrupted waiting for ViewClient to complete", e);
      }
    } finally {
      viewClient.shutdown();
    }
  }

  /* package */ Set<String> getCalcConfigNames() {
    return _calcConfigNames;
View Full Code Here

Examples of com.orientechnologies.orient.server.OServer.shutdown()

      setupClasses();
      populateDatabase();
      tryLabelQuery();
      runEdgeTest();
    } finally {
      server.shutdown();
    }
  }

  private OServer setupDatabase() throws Exception {
    OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(true);
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter7.recipe01.executor.MyExecutor.shutdown()

    }
   
    /*
     * Call the shutdown method
     */
    myExecutor.shutdown();
   
    /*
     * Get the results of the execution of the last five tasks
     */
    for (int i=5; i<10; i++){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.