Examples of stop()


Examples of com.vividsolutions.jts.util.Stopwatch.stop()

                        largerPoints = Math.max(largerPoints, shape.getNumOfPoints());
                    }
                }
                row = query.fetch();
            }
            sw.stop();
        } finally {
            query.close();
        }
        log("\t- " + featureCount + " features iterated in " + sw.getTimeString());
        log("\t\t- total poinst: " + totalPoints + ", larger geometry: " + largerPoints + " points"
View Full Code Here

Examples of com.vladmihalcea.flexypool.metric.Metrics.stop()

    public void testStartStop(ConfigurationProperties currentConfiguration) {
        Metrics codahaleMetrics = CodahaleMetrics.FACTORY.newInstance(currentConfiguration);
        codahaleMetrics.histogram("histo");
        codahaleMetrics.timer("timer");
        codahaleMetrics.start();
        codahaleMetrics.stop();
    }
}
View Full Code Here

Examples of com.vmware.example.sqlfire.util.SimpleStopWatch.stop()

      logger.debug("Delete Order: " + request.getId());
      dao.removeOders(request.getId());
    }

    // Stop timer
    watch.stop();

    // returns stats only for the current call
    // summary from the seperate call
    Request storeRequest = dao.getRequest(request.getId());
    storeRequest.setOrders(request.getOrders());
View Full Code Here

Examples of com.volantis.synergetics.performance.MonitoredTransaction.stop()

                    getPluggableHTTPManager(protocolString, pipelineConfiguration);
            httpManager.initialize(configuration, timeout);
            try {
                context.pushBaseURI(getUrlString());
                httpManager.sendRequest(createRequestDetails(), context);
                webdTransaction.stop(MonitoredTransaction.SUCCESSFUL, getUrlString());
            } catch (HTTPException e) {
                webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
                fatalError(new XMLPipelineException(
                        exceptionLocalizer.format(
                                "http-request-process-failure",
View Full Code Here

Examples of com.wordpress.salaboy.messaging.MessageProducer.stop()

        String message = "Hello HornetQ!";
        producer.sendMessage(message);
        System.out.println(">> Sending Message: " + message);

        producer.stop();
       
        Object object = consumer.receiveMessage();
        Assert.assertNotNull(object);
        Assert.assertEquals(message, object.toString());
View Full Code Here

Examples of com.xebialabs.restito.server.StubServer.stop()

    @Test
    public void shouldBePossibleToSpecifyPort() {
        StubServer server1 = new StubServer(8888).run();
        assertEquals(8888, server1.getPort());
        server1.stop();
    }

    @Test
    public void shouldSelectRandomFreePortWhenDefaultOneIsBusy() {
        StubServer server2 = new StubServer().run();
View Full Code Here

Examples of com.yammer.metrics.core.TimerContext.stop()

                    DirectPosition eastNorth = new GeneralDirectPosition(eastings, northings);
                    DirectPosition latLng = osgbToWgs84Transform.transform(eastNorth, eastNorth);

                    unit.location = new Location(round(latLng.getOrdinate(1), 8), round(latLng.getOrdinate(0), 8));
                } finally {
                    latLongCtx.stop();
                }
            } catch (NumberFormatException e) {
                throw new RuntimeException("NumberFormatException parsing easting/northings '" + entry.getEastings() + ", " + entry.getNorthings() + "'.");
            } catch (TransformException e) {
                throw Throwables.propagate(e);
View Full Code Here

Examples of com.zaxxer.hikari.hibernate.HikariConnectionProvider.stop()

      Connection connection = provider.getConnection();
      provider.closeConnection(connection);

      Assert.assertNotNull(provider.unwrap(HikariConnectionProvider.class));
      Assert.assertFalse(provider.supportsAggressiveRelease());
      provider.stop();
   }
}
View Full Code Here

Examples of com.zaxxer.hikari.metrics.MetricsTracker.MetricsContext.stop()

      catch (InterruptedException e) {
         throw new SQLException("Interrupted during connection acquisition", e);
      }
      finally {
         acquisitionSemaphore.release();
         metricsContext.stop();
      }

      logPoolState("Timeout failure ");
      throw new SQLException(String.format("Timeout after %dms of waiting for a connection.", elapsedTimeMs(start)), lastConnectionFailure.getAndSet(null));
   }
View Full Code Here

Examples of commonj.timers.TimerManager.stop()

    private void stopTimerManager() {
        logger.info("Stopping Timer Manager..");
        TimerManager timerManager = (TimerManager) applicationContext.getBean(TIMER_MANAGER_BEAN_NAME);
        if (timerManager != null) {
            timerManager.stop();
            logger.info("Timer Manager succesfully stopped");
        } else {
            logger.info("No Timer Manager");
        }
    }
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.