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

The following examples show how to use org.apache.ignite.configuration.IgniteConfiguration#setPeerClassLoadingMissedResourcesCacheSize() . 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: GridP2PMissedResourceCacheSizeSelfTest.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);

    // Override P2P configuration to exclude Task and Job classes
    cfg.setPeerClassLoadingLocalClassPathExclude(GridP2PTestTask.class.getName(), GridP2PTestJob.class.getName());

    cfg.setDeploymentMode(depMode);

    cfg.setPeerClassLoadingMissedResourcesCacheSize(missedRsrcCacheSize);

    cfg.setCacheConfiguration();

    return cfg;
}