Package com.opengamma.engine.calcnode.stats

Examples of com.opengamma.engine.calcnode.stats.TotallingNodeStatisticsGatherer


  public void testJobDispatchStatistics() {
    final MultipleNodeExecutorFactory factory = Mockito.mock(MultipleNodeExecutorFactory.class);
    final MultipleNodeExecutorTuner tuner = new MultipleNodeExecutorTuner(factory);
    final AtomicLong age = new AtomicLong();
    final TotallingNodeStatisticsGatherer stats = new TotallingNodeStatisticsGatherer() {
      @Override
      public void dropStatisticsBefore(final Instant limit) {
        assertEquals(age.getAndSet(Instant.now().getEpochSecond() - limit.getEpochSecond()), 0);
      }
    };
View Full Code Here

TOP

Related Classes of com.opengamma.engine.calcnode.stats.TotallingNodeStatisticsGatherer

Copyright © 2018 www.massapicom. 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.