Examples of stop()


Examples of com.cloudera.flume.agent.FlumeNode.stop()

    n.getLivenessManager().heartbeatChecks();
    NodeState status = flumeMaster.getStatMan().getNodeStatuses().get("foo").state;
    NodeState idle = NodeState.IDLE;
    assertEquals(status, idle);
    // TODO: uncomment when there is a clean way to get at the reportable
    n.stop();
  }

  /**
   * Create a master and 3 nodes, then connect via shell, and then issue
   * configurations, get the nodes a configuration, and then wait until the
View Full Code Here

Examples of com.cloudera.flume.core.connector.DirectDriver.stop()

    Clock.sleep(1000);

    assertEquals(1000, cnt.getCount());

    drv.stop();
    src.close();
    cnt.close();
    FileUtil.rmr(tmpdir);
  }
View Full Code Here

Examples of com.cloudera.util.dirwatcher.DirWatcher.stop()

        if (watcher != null) {
          LOG.info("removed dir " + f);
          LOG.info("stopping watcher for dir: " + f);
          // stop is not thread-safe, but since this watcher belongs only to
          // this current thread it is safe to call it
          watcher.stop();
          // calling check explicitly to notify about deleted subdirs,
          // so that subdirs watchers can be stopped
          watcher.check();
          subdirsDeleted.incrementAndGet();
          return;
View Full Code Here

Examples of com.cloudhopper.smpp.SmppServer.stop()

        System.out.println("Press any key to stop server");
        System.in.read();

        logger.info("SMPP server stopping");
        smppServer.stop();
        logger.info("SMPP server stopped");
    }

    public static class DefaultSmppServerHandler implements SmppServerHandler {
        @Override
View Full Code Here

Examples of com.cloudhopper.smpp.impl.DefaultSmppServer.stop()

        System.out.println("Press any key to stop server");
        System.in.read();

        logger.info("Stopping SMPP server...");
        smppServer.stop();
        logger.info("SMPP server stopped");
       
        logger.info("Server counters: {}", smppServer.getCounters());
    }
View Full Code Here

Examples of com.cloudhopper.smpp.simulator.SmppSimulatorServer.stop()

        logger.info("Successfully got an new session!");

        System.out.println("Press any key to shutdown simulator server");
        System.in.read();

        server.stop();
    }

    public static class SimulatorSmppSessionHandler extends DefaultSmppSessionHandler {

        public SimulatorSmppSessionHandler() {
View Full Code Here

Examples of com.codahale.metrics.ConsoleReporter.stop()

                log.info("Wait for console reporter...");
                try {
                    Thread.sleep(181000);
                } catch (InterruptedException e) {
                }
                consoleReporter.stop();
            }
        });

        MeasurementAggregator measurementAggregator = new MeasurementAggregator(metricsServer, this, metrics,
            aggregationQueue, plan.getNumMeasurementCollectors() * plan.getBatchSize());
 
View Full Code Here

Examples of com.codahale.metrics.CsvReporter.stop()

          synchronized (REGISTRIES) {
            Map<File, CsvReporter> reporters = REGISTRIES.get(getContext().getMetricRegistry());
            if (reporters != null) {
              CsvReporter reporter = reporters.remove(outputDir);
              if (reporter != null) {
                reporter.stop();
              }
            }
          }
        }
      }
View Full Code Here

Examples of com.codahale.metrics.JmxReporter.stop()

          synchronized (REGISTRIES) {
            Map<String, JmxReporter> reporters = REGISTRIES.get(getContext().getMetricRegistry());
            if (reporters != null) {
              JmxReporter reporter = reporters.remove(domain);
              if (reporter != null) {
                reporter.stop();
              }
            }
          }
        }
      }
View Full Code Here

Examples of com.codahale.metrics.ScheduledReporter.stop()

      exc.printStackTrace();
      System.exit(1);
    } finally {
      if (r1 != null) {
        r1.report();
        r1.stop();
      }
      if (r0 != null) {
        r0.report();
        r0.stop();
      }
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.