Examples of stop()


Examples of com.netflix.servo.monitor.Stopwatch.stop()

            }
        } catch (Throwable th) {
            LOGGER.error("Error occured while publishing event. Swallowing the error to avoid publisher from failing.", th);
            stats.publishErrors.increment();
        } finally {
            start.stop();
        }
    }

    @Override
    public void publishIffNotDead(EventCreator creator, Class<?>... eventTypes) {
View Full Code Here

Examples of com.netflix.simianarmy.basic.chaos.BasicChaosMonkey.stop()

        TestChaosMonkeyContext ctx = new TestChaosMonkeyContext(properties);

        ChaosMonkey chaos = new BasicChaosMonkey(ctx);
        chaos.start();
        chaos.stop();
        return ctx;
    }

    private void checkSelected(TestChaosMonkeyContext ctx) {
        List<InstanceGroup> selectedOn = ctx.selectedOn();
View Full Code Here

Examples of com.netflix.simianarmy.chaos.ChaosMonkey.stop()

    @Test
    public void testDisabled() {
        TestChaosMonkeyContext ctx = new TestChaosMonkeyContext("disabled.properties");
        ChaosMonkey chaos = new BasicChaosMonkey(ctx);
        chaos.start();
        chaos.stop();
        List<InstanceGroup> selectedOn = ctx.selectedOn();
        List<String> terminated = ctx.terminated();
        Assert.assertEquals(selectedOn.size(), 0, "no groups selected on");
        Assert.assertEquals(terminated.size(), 0, "nothing terminated");
    }
View Full Code Here

Examples of com.neuralnetwork.shared.training.SOMTrainer.stop()

    s.setTraining(lattice, inData);
    s.start();   
    while (s.isRunning()) {
      try {
        Thread.sleep(SLEEP_TIME);
        s.stop();
        s.getThread().interrupt();
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.impl.IndexerModelImpl.stop()

                    zkHost = indexConnectionParams.get("solr.zk");
                }
                if (collection == null) {
                    collection = indexConnectionParams.get("solr.collection");
                }
                indexerModel.stop();
            } catch (IndexerNotFoundException infe) {
                throw new IllegalStateException("Indexer " + hbaseIndexerName + " doesn't exist");
            } catch (Exception e) {
                // We won't bother trying to do any recovery here if things don't work out,
                // so we just throw the wrapped exception up the stack
View Full Code Here

Examples of com.ning.metrics.meteo.server.JettyServer.stop()

        {
            @Override
            public void run()
            {
                subscribersCompiler.stopAll();
                jetty.stop();
            }
        });
    }
}
View Full Code Here

Examples of com.nokia.dempsy.Dempsy.stop()

            for (long endTime = System.currentTimeMillis() + 60000; endTime > System.currentTimeMillis() && !dempsy.isRunning();) Thread.sleep(1);
            assertTrue(dempsy.isRunning());

            Thread.sleep(500); // let the thing run for a bit.

            dempsy.stop();

            // wait for Dempsy to be stopped
            for (long endTime = System.currentTimeMillis() + 60000; endTime > System.currentTimeMillis() && dempsy.isRunning();) Thread.sleep(1);
            assertFalse(dempsy.isRunning());
View Full Code Here

Examples of com.nokia.dempsy.cluster.ClusterInfoSession.stop()

         }

         assertTrue(onStandby);
         assertFalse(failed.get());
      }
      catch (InterruptedException ie) { session.stop(); throw ie; }
      catch (Error cie) { session.stop(); throw cie; }
      finally { stillRunning.set(false); }

      return session;
   }
View Full Code Here

Examples of com.nokia.dempsy.messagetransport.SenderFactory.stop()

               }
            }
            finally
            {
               if (factory != null)
                  factory.stop();
              
               if (adaptor != null)
                  adaptor.stop();
            }
View Full Code Here

Examples of com.nokia.dempsy.monitoring.StatsCollector.stop()

                  factory.stop();
              
               if (adaptor != null)
                  adaptor.stop();
              
               statsCollector.stop();
            }

         }
        
         @Override
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.