Examples of stop()


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

   @Test
   public void testOutputCycleTiming() throws Throwable
   {
      TimerContext ctx = stats.outputInvokeStarted();
      Thread.sleep(100);
      ctx.stop();
      long val = getStatValue(stats, StatsCollectorCoda.GAGE_LAST_OUTPUT_MILLIS);
      assertTrue(val >= 100);
   }
}
View Full Code Here

Examples of com.nokia.dempsy.output.OutputExecuter.stop()

         // stop all of the non-adaptor clusters.
         for(Cluster cluster : appClusters)
         {
           OutputExecuter outputExecuter = (OutputExecuter) cluster.clusterDefinition.getOutputExecuter();
           if (outputExecuter != null) {
              outputExecuter.stop();
           }
            cluster.stop();
         }
      }
     
View Full Code Here

Examples of com.notnoop.apns.ApnsService.stop()

                }
            } catch (RuntimeException e) {
                logger.log(Level.SEVERE, "Error sending messages to APN server", e);
            } finally {
                // tear down and release resources:
                service.stop();
            }
        } else {
            logger.log(Level.SEVERE, "No certificate was found. Could not send messages to APNs");
            callback.onError("No certificate for APNs was found");
        }
View Full Code Here

Examples of com.opengamma.bbg.referencedata.impl.BloombergReferenceDataProvider.stop()

   */
  public static void stopCachingReferenceDataProvider(ReferenceDataProvider refDataProvider) {
    if (refDataProvider != null) {
      if (refDataProvider instanceof BloombergReferenceDataProvider) {
        BloombergReferenceDataProvider bbgProvider = (BloombergReferenceDataProvider) refDataProvider;
        bbgProvider.stop();
       
      } else if (refDataProvider instanceof AbstractValueCachingReferenceDataProvider) {
        stopCachingReferenceDataProvider(((AbstractValueCachingReferenceDataProvider) refDataProvider).getUnderlying());
       
      } else if (refDataProvider instanceof AbstractInvalidFieldCachingReferenceDataProvider) {
View Full Code Here

Examples of com.opengamma.engine.cache.BerkeleyDBBinaryDataStore.stop()

    double putsPerSecond = 1000.0 / msPerPut;
   
    s_logger.info("for {} entries, {} ms/put, {} puts/sec", new Object[] {numEntries, msPerPut, putsPerSecond});
   
    dataStore.delete();
    dataStore.stop();
    dbEnvironment.close();
  }

  public void getPerformanceTest() {
    final int numEntries = 500;
View Full Code Here

Examples of com.opengamma.engine.view.impl.ViewProcessorImpl.stop()

   * @throws java.lang.Exception
   */
  @AfterMethod
  public void tearDown() throws Exception {
    ViewProcessorImpl viewProcessor = _env.getViewProcessor();
    viewProcessor.stop();
    //Ensure the ViewProcessor stop clears all mbeans from the MBeanServer
    assertMBeanCount(0);
  }

  private MBeanServer createMBeanServer() {
View Full Code Here

Examples of com.opengamma.livedata.server.ExpirationManager.stop()

  @Test
  public void testExpiration() throws Exception {
    int period = 15000;
    ExpirationManager expirationManager = _server.getExpirationManager();
    expirationManager.stop();
    expirationManager.setCheckPeriod(15000);
    expirationManager.setTimeoutExtension(15000);
    expirationManager.start();
   
    final AtomicInteger combinedSubs = countSubscriptions(_server);
View Full Code Here

Examples of com.openshift.client.IApplication.stop()

        IApplication app = domain.getApplicationByName(name);
        if (app == null) {
            throw new CamelExchangeException("Application with id " + name + " not found.", exchange);
        } else {
            app.stop();
        }
    }

    protected void doRestart(Exchange exchange, IDomain domain) throws CamelExchangeException {
        String name = exchange.getIn().getHeader(OpenShiftConstants.APPLICATION, getEndpoint().getApplication(), String.class);
View Full Code Here

Examples of com.openshift.client.fakes.HttpServerFake.stop()

      server = startHttpServerFake("HTTP/1.0 404 ");

      // operation
      httpClient.get(server.getUrl(), IHttpClient.NO_TIMEOUT);
    } finally {
      server.stop();
    }
  }

  @Test
  public void shouldHaveURLInExceptionMessage() throws Exception {
View Full Code Here

Examples of com.openshift.client.fakes.WaitingHttpServerFake.stop()

      // assert
      assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout)
          .isLessThan(serverDelay)
          .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT);
    } finally {
      serverFake.stop();
    }
  }

  @Test
  public void shouldRespectGivenTimeoutDELETE() throws Throwable {
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.