Search in sources :

Example 6 with PoolProcessor

use of org.apache.ignite.internal.processors.pool.PoolProcessor in project ignite by apache.

the class MarshallerContextSelfTest method beforeTest.

/**
 * {@inheritDoc}
 */
@Override
protected void beforeTest() throws Exception {
    ctx = newContext();
    execSvc = Executors.newSingleThreadExecutor();
    ctx.add(new PoolProcessor(ctx) {

        @Override
        public ExecutorService getSystemExecutorService() {
            return execSvc;
        }
    });
    ctx.add(new GridClosureProcessor(ctx));
}
Also used : GridClosureProcessor(org.apache.ignite.internal.processors.closure.GridClosureProcessor) ExecutorService(java.util.concurrent.ExecutorService) PoolProcessor(org.apache.ignite.internal.processors.pool.PoolProcessor)

Aggregations

PoolProcessor (org.apache.ignite.internal.processors.pool.PoolProcessor)6 GridClosureProcessor (org.apache.ignite.internal.processors.closure.GridClosureProcessor)5 RuntimeMXBean (java.lang.management.RuntimeMXBean)2 DecimalFormat (java.text.DecimalFormat)2 ExecutorService (java.util.concurrent.ExecutorService)2 ThreadPoolExecutor (java.util.concurrent.ThreadPoolExecutor)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)2 IgniteSystemProperties.getBoolean (org.apache.ignite.IgniteSystemProperties.getBoolean)2 ClusterNode (org.apache.ignite.cluster.ClusterNode)2 GridCheckpointManager (org.apache.ignite.internal.managers.checkpoint.GridCheckpointManager)2 GridCollisionManager (org.apache.ignite.internal.managers.collision.GridCollisionManager)2 GridIoManager (org.apache.ignite.internal.managers.communication.GridIoManager)2 GridDeploymentManager (org.apache.ignite.internal.managers.deployment.GridDeploymentManager)2 DiscoveryLocalJoinData (org.apache.ignite.internal.managers.discovery.DiscoveryLocalJoinData)2 GridDiscoveryManager (org.apache.ignite.internal.managers.discovery.GridDiscoveryManager)2 GridEventStorageManager (org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager)2 GridFailoverManager (org.apache.ignite.internal.managers.failover.GridFailoverManager)2 GridIndexingManager (org.apache.ignite.internal.managers.indexing.GridIndexingManager)2 GridLoadBalancerManager (org.apache.ignite.internal.managers.loadbalancer.GridLoadBalancerManager)2