use of com.hazelcast.executor.impl.DistributedExecutorService in project hazelcast by hazelcast.
the class ShutdownOperation method run.
@Override
public void run() throws Exception {
DistributedExecutorService service = getService();
service.shutdownExecutor(getName());
}
use of com.hazelcast.executor.impl.DistributedExecutorService in project hazelcast by hazelcast.
the class ExecutorServiceShutdownMessageTask method call.
@Override
protected Object call() throws Exception {
final DistributedExecutorService service = getService(DistributedExecutorService.SERVICE_NAME);
service.shutdownExecutor(parameters);
return null;
}
use of com.hazelcast.executor.impl.DistributedExecutorService 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