本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.sealList方法的典型用法代码示例。如果您正苦于以下问题:Java U.sealList方法的具体用法?Java U.sealList怎么用?Java U.sealList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.typedef.internal.U
的用法示例。
在下文中一共展示了U.sealList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDiscoCacheOnCacheChange
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* Creates discovery cache after {@link DynamicCacheChangeBatch} received.
*
* @param topVer Topology version.
* @param discoCache Current disco cache.
* @return New discovery cache.
*/
public DiscoCache createDiscoCacheOnCacheChange(
AffinityTopologyVersion topVer,
DiscoCache discoCache
) {
List<ClusterNode> allNodes = discoCache.allNodes();
Map<Integer, List<ClusterNode>> allCacheNodes = U.newHashMap(allNodes.size());
Map<Integer, List<ClusterNode>> cacheGrpAffNodes = U.newHashMap(allNodes.size());
Set<ClusterNode> rmtNodesWithCaches = new TreeSet<>(NodeOrderComparator.getInstance());
fillAffinityNodeCaches(allNodes, allCacheNodes, cacheGrpAffNodes, rmtNodesWithCaches);
return new DiscoCache(
topVer,
discoCache.state(),
discoCache.localNode(),
discoCache.remoteNodes(),
allNodes,
discoCache.serverNodes(),
discoCache.daemonNodes(),
U.sealList(rmtNodesWithCaches),
discoCache.baselineNodes(),
allCacheNodes,
cacheGrpAffNodes,
discoCache.nodeMap,
discoCache.alives,
discoCache.nodeIdToConsIdx,
discoCache.consIdxToNodeId,
discoCache.minimumNodeVersion());
}
示例2: VisorHadoopConfiguration
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* Create data transfer object for hadoop configuration.
*
* @param src Hadoop configuration.
*/
public VisorHadoopConfiguration(HadoopConfiguration src) {
planner = compactClass(src.getMapReducePlanner());
// TODO: IGNITE-404: Uncomment when fixed.
//extExecution = cfg.isExternalExecution();
finishedJobInfoTtl = src.getFinishedJobInfoTtl();
maxParallelTasks = src.getMaxParallelTasks();
maxTaskQueueSize = src.getMaxTaskQueueSize();
libNames = U.sealList(src.getNativeLibraryNames());
}
示例3: tcpAddresses
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* Sets list of REST TCP server addresses.
*
* @param tcpAddrs List of address strings.
* @return This for chaining.
*/
public Builder tcpAddresses(Collection<String> tcpAddrs) {
impl.tcpAddrs = U.sealList(tcpAddrs);
return this;
}