Package com.hazelcast.monitor

Examples of com.hazelcast.monitor.LocalExecutorStats


            SleepLatchRunnable.sleepLatch.countDown();
        }

        waitingInQueue.get(1, TimeUnit.MINUTES);

        final LocalExecutorStats stats = executorService.getLocalExecutorStats();
        assertEquals(2, stats.getStartedTaskCount());
        assertEquals(0, stats.getPendingTaskCount());
    }
View Full Code Here


        try {
            f.get();
        } catch (CancellationException e) {
        }

        final LocalExecutorStats stats = executorService.getLocalExecutorStats();
        assertEquals(k + 1, stats.getStartedTaskCount());
        assertEquals(k, stats.getCompletedTaskCount());
        assertEquals(0, stats.getPendingTaskCount());
        assertEquals(1, stats.getCancelledTaskCount());
    }
View Full Code Here

      executorService.awaitTermination(60, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
      logger.warn("Exception while waiting for executor service shutdown", e);
    }
   
    LocalExecutorStats localExecutorStats = executorService.getLocalExecutorStats();
    logger.info("This async job executor has processed " + localExecutorStats.getCompletedTaskCount()
        + " jobs. Total execution time = " + localExecutorStats.getTotalExecutionLatency());
   
    hazelcastInstance.shutdown();
    isActive = false;
  }
View Full Code Here

TOP

Related Classes of com.hazelcast.monitor.LocalExecutorStats

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.