/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public Collection<String> getUserAttributesFormatted() { assert cfg != null; return F.transform(cfg.getUserAttributes().entrySet(), new C1<Map.Entry<String, ?>, String>() { @Override public String apply(Map.Entry<String, ?> e) { return e.getKey() + ", " + e.getValue().toString(); } }); }
/** * @param nodeId Node ID. * @return {@code True} if node is in the ring and is not being removed from. */ private boolean nodeAlive(UUID nodeId) { // Is node alive or about to be removed from the ring? GridTcpDiscoveryNode node = ring.node(nodeId); boolean nodeAlive = node != null && node.visible(); if (nodeAlive) { synchronized (mux) { nodeAlive = !F.transform(failedNodes, F.node2id()).contains(nodeId) && !F.transform(leavingNodes, F.node2id()).contains(nodeId); } } return nodeAlive; }
/** {@inheritDoc} */ @Override public Collection<String> getLifecycleBeansFormatted() { GridLifecycleBean[] beans = cfg.getLifecycleBeans(); return F.isEmpty(beans) ? Collections.<String>emptyList() : F.transform(beans, F.<GridLifecycleBean>string()); }
Map<UUID, GridClientNodeImpl> updated = new HashMap<>(); Collection<GridClientNodeImpl> preparedNodes = F.transform(nodeList, new C1<GridClientNodeImpl, GridClientNodeImpl>() { @Override public GridClientNodeImpl apply(GridClientNodeImpl e) {
/** {@inheritDoc} */ @Override public Collection<String> getCacheNames() { Collection<String> names = F.view(super.getCacheNames(), new GridPredicate<String>() { @Override public boolean apply(String name) { return !F.eq(name, dataCacheName); } }); return F.concat(false, names, F.transform(metaCache.entrySetx(), new GridClosure<Map.Entry<MetaKey, Cache>, String>() { @Override public String apply(Map.Entry<MetaKey, Cache> e) { return e.getKey().name; } })); }
return F.transform(cacheNames, new C1<String, CacheSqlMetadata>() { @Override public CacheSqlMetadata apply(String cacheName) { Collection<GridIndexingTypeDescriptor> types = ctx.indexing().types(cacheName);
readers = F.transform(((GridDhtCacheEntry<K, V>)entry).readers(), new C1<UUID, GridNode>() { @Nullable @Override public GridNode apply(UUID nodeId) { return cctx.node(nodeId);