Java Code Examples for org.apache.ignite.configuration.IgniteConfiguration#setExecutorConfiguration()

The following examples show how to use org.apache.ignite.configuration.IgniteConfiguration#setExecutorConfiguration() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IgniteComputeCustomExecutorSelfTest.java    From ignite with Apache License 2.0 5 votes vote down vote up
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

    cfg.setExecutorConfiguration(createExecConfiguration(EXEC_NAME0), createExecConfiguration(EXEC_NAME1));
    cfg.setPublicThreadPoolSize(1);

    CacheConfiguration ccfg = new CacheConfiguration();
    ccfg.setName(CACHE_NAME);

    cfg.setCacheConfiguration(ccfg);

    return cfg;
}
 
Example 2
Source File: GridMBeansTest.java    From ignite with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * This implementation registers adds custom executors to the configuration.
 */
@Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

    cfg.setExecutorConfiguration(new ExecutorConfiguration(CUSTOM_EXECUTOR_0),
        new ExecutorConfiguration(CUSTOM_EXECUTOR_1));

    return cfg;
}
 
Example 3
Source File: GridNodeMetricsLogSelfTest.java    From ignite with Apache License 2.0 3 votes vote down vote up
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

    cfg.setMetricsLogFrequency(1000);

    cfg.setExecutorConfiguration(new ExecutorConfiguration(CUSTOM_EXECUTOR_0),
        new ExecutorConfiguration(CUSTOM_EXECUTOR_1));

    cfg.setGridLogger(strLog);

    return cfg;
}