Examples of TotallingGraphStatisticsGathererProvider


Examples of com.opengamma.engine.exec.stats.TotallingGraphStatisticsGathererProvider

  private static final Logger s_logger = LoggerFactory.getLogger(PlanExecutorTest.class);

  private ViewProcessContext createViewProcessContext(final JobDispatcher jobDispatcher) {
    final ViewProcessContext context = Mockito.mock(ViewProcessContext.class);
    Mockito.when(context.getComputationJobDispatcher()).thenReturn(jobDispatcher);
    Mockito.when(context.getGraphExecutorStatisticsGathererProvider()).thenReturn(new TotallingGraphStatisticsGathererProvider());
    return context;
  }
View Full Code Here

Examples of com.opengamma.engine.exec.stats.TotallingGraphStatisticsGathererProvider

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

Examples of com.opengamma.engine.exec.stats.TotallingGraphStatisticsGathererProvider

  @BeforeMethod
  public void setUp() throws Exception {
    _env = new ViewProcessorTestEnvironment();
    _env.init();
    _mBeanServer = createMBeanServer();
    _statisticsProvider = new TotallingGraphStatisticsGathererProvider();
  }
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.