Search in sources :

Example 6 with DistributedExecutorService

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());
}
Also used : DistributedExecutorService(com.hazelcast.executor.impl.DistributedExecutorService)

Example 7 with DistributedExecutorService

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;
}
Also used : DistributedExecutorService(com.hazelcast.executor.impl.DistributedExecutorService)

Example 8 with DistributedExecutorService

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();
}
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)8 QueueService (com.hazelcast.collection.impl.queue.QueueService)3 MapService (com.hazelcast.map.impl.MapService)3 MultiMapService (com.hazelcast.multimap.impl.MultiMapService)3 ReplicatedMapService (com.hazelcast.replicatedmap.impl.ReplicatedMapService)3 TopicService (com.hazelcast.topic.impl.TopicService)3 CacheConfig (com.hazelcast.config.CacheConfig)2 Config (com.hazelcast.config.Config)2 DistributedDurableExecutorService (com.hazelcast.durableexecutor.impl.DistributedDurableExecutorService)2 FlakeIdGeneratorService (com.hazelcast.flakeidgen.impl.FlakeIdGeneratorService)2 PNCounterService (com.hazelcast.internal.crdt.pncounter.PNCounterService)2 DistributedScheduledExecutorService (com.hazelcast.scheduledexecutor.impl.DistributedScheduledExecutorService)2 ReliableTopicService (com.hazelcast.topic.impl.reliable.ReliableTopicService)2 CacheStatistics (com.hazelcast.cache.CacheStatistics)1 CacheService (com.hazelcast.cache.impl.CacheService)1 ICacheService (com.hazelcast.cache.impl.ICacheService)1 CardinalityEstimatorService (com.hazelcast.cardinality.impl.CardinalityEstimatorService)1 ListService (com.hazelcast.collection.impl.list.ListService)1 SetService (com.hazelcast.collection.impl.set.SetService)1 ConfigAccessor.getActiveMemberNetworkConfig (com.hazelcast.config.ConfigAccessor.getActiveMemberNetworkConfig)1