当前位置: 首页>>代码示例>>Java>>正文


Java IgniteConfiguration.isPeerClassLoadingEnabled方法代码示例

本文整理汇总了Java中org.apache.ignite.configuration.IgniteConfiguration.isPeerClassLoadingEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java IgniteConfiguration.isPeerClassLoadingEnabled方法的具体用法?Java IgniteConfiguration.isPeerClassLoadingEnabled怎么用?Java IgniteConfiguration.isPeerClassLoadingEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ignite.configuration.IgniteConfiguration的用法示例。


在下文中一共展示了IgniteConfiguration.isPeerClassLoadingEnabled方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validate

import org.apache.ignite.configuration.IgniteConfiguration; //导入方法依赖的package包/类
/**
 * Validates service configuration.
 *
 * @param c Service configuration.
 * @throws IgniteException If validation failed.
 */
private void validate(ServiceConfiguration c) throws IgniteException {
    IgniteConfiguration cfg = ctx.config();

    DeploymentMode depMode = cfg.getDeploymentMode();

    if (cfg.isPeerClassLoadingEnabled() && (depMode == PRIVATE || depMode == ISOLATED))
        throw new IgniteException("Cannot deploy services in PRIVATE or ISOLATED deployment mode: " + depMode);

    ensure(c.getName() != null, "getName() != null", null);
    ensure(c.getTotalCount() >= 0, "getTotalCount() >= 0", c.getTotalCount());
    ensure(c.getMaxPerNodeCount() >= 0, "getMaxPerNodeCount() >= 0", c.getMaxPerNodeCount());
    ensure(c.getService() != null, "getService() != null", c.getService());
    ensure(c.getTotalCount() > 0 || c.getMaxPerNodeCount() > 0,
        "c.getTotalCount() > 0 || c.getMaxPerNodeCount() > 0", null);
}
 
开发者ID:apache,项目名称:ignite,代码行数:22,代码来源:GridServiceProcessor.java

示例2: start

import org.apache.ignite.configuration.IgniteConfiguration; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void start() throws IgniteCheckedException {
    ctx.addNodeAttribute(ATTR_SERVICES_COMPATIBILITY_MODE, srvcCompatibilitySysProp);

    if (ctx.isDaemon())
        return;

    IgniteConfiguration cfg = ctx.config();

    DeploymentMode depMode = cfg.getDeploymentMode();

    if (cfg.isPeerClassLoadingEnabled() && (depMode == PRIVATE || depMode == ISOLATED) &&
        !F.isEmpty(cfg.getServiceConfiguration()))
        throw new IgniteCheckedException("Cannot deploy services in PRIVATE or ISOLATED deployment mode: " + depMode);
}
 
开发者ID:apache,项目名称:ignite,代码行数:16,代码来源:GridServiceProcessor.java

示例3: VisorPeerToPeerConfiguration

import org.apache.ignite.configuration.IgniteConfiguration; //导入方法依赖的package包/类
/**
 * Create data transfer object for node P2P configuration properties.
 *
 * @param c Grid configuration.
 */
public VisorPeerToPeerConfiguration(IgniteConfiguration c) {
    p2pEnabled = c.isPeerClassLoadingEnabled();
    p2pMissedResCacheSize = c.getPeerClassLoadingMissedResourcesCacheSize();
    p2pLocClsPathExcl = Arrays.asList(c.getPeerClassLoadingLocalClassPathExclude());
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:VisorPeerToPeerConfiguration.java


注:本文中的org.apache.ignite.configuration.IgniteConfiguration.isPeerClassLoadingEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。