Search in sources :

Example 1 with LocalExecutorStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalExecutorStatsImpl in project hazelcast by hazelcast.

the class ClientExecutorServiceCancelTest method getMemberLocalExecutorStats.

protected LocalExecutorStatsImpl getMemberLocalExecutorStats(HazelcastInstance member) {
    final ServiceManager serviceManager = TestUtil.getNode(member).getNodeEngine().getServiceManager();
    final DistributedExecutorService distributedExecutorService = serviceManager.getService(DistributedExecutorService.SERVICE_NAME);
    final Map<String, LocalExecutorStatsImpl> allStats = distributedExecutorService.getStats();
    Iterator<LocalExecutorStatsImpl> statsIterator = allStats.values().iterator();
    assertTrue(statsIterator.hasNext());
    return statsIterator.next();
}
Also used : LocalExecutorStatsImpl(com.hazelcast.internal.monitor.impl.LocalExecutorStatsImpl) ServiceManager(com.hazelcast.spi.impl.servicemanager.ServiceManager) DistributedExecutorService(com.hazelcast.executor.impl.DistributedExecutorService)

Aggregations

DistributedExecutorService (com.hazelcast.executor.impl.DistributedExecutorService)1 LocalExecutorStatsImpl (com.hazelcast.internal.monitor.impl.LocalExecutorStatsImpl)1 ServiceManager (com.hazelcast.spi.impl.servicemanager.ServiceManager)1