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();
}
Aggregations