/** * Check whether provided node contains IGFS with the given name. * * @param node Node. * @param igfsName IGFS name. * @return {@code True} if it contains IGFS. */ public static boolean isIgfsNode(ClusterNode node, String igfsName) { assert node != null; IgfsAttributes[] igfs = node.attribute(ATTR_IGFS); if (igfs != null) for (IgfsAttributes attrs : igfs) if (F.eq(igfsName, attrs.igfsName())) return true; return false; }
if (!F.eq(rmtAttr.igfsName(), locAttr.igfsName())) { if (F.eq(rmtAttr.metaCacheName(), locAttr.metaCacheName())) throw new IgniteCheckedException("Meta cache names should be different for different IGFS instances " + ", locNodeId=" + ctx.localNodeId() + ", rmtNodeId=" + rmtNode.id() + ", locIgfsName=" + locAttr.igfsName() + ", rmtIgfsName=" + rmtAttr.igfsName() + ']'); ", locNodeId=" + ctx.localNodeId() + ", rmtNodeId=" + rmtNode.id() + ", locIgfsName=" + locAttr.igfsName() + ", rmtIgfsName=" + rmtAttr.igfsName() + ']'); locAttr.blockSize(), rmtAttr.igfsName()); locAttr.groupSize(), rmtAttr.igfsName()); locAttr.metaCacheName(), rmtAttr.igfsName()); locAttr.dataCacheName(), rmtAttr.igfsName()); locAttr.defaultMode(), rmtAttr.igfsName()); locAttr.pathModes(), rmtAttr.igfsName()); locAttr.fragmentizerEnabled(), rmtAttr.igfsName());
/** * Check whether provided node contains IGFS with the given name. * * @param node Node. * @param igfsName IGFS name. * @return {@code True} if it contains IGFS. */ public static boolean isIgfsNode(ClusterNode node, String igfsName) { assert node != null; IgfsAttributes[] igfs = node.attribute(ATTR_IGFS); if (igfs != null) for (IgfsAttributes attrs : igfs) if (F.eq(igfsName, attrs.igfsName())) return true; return false; }
if (!F.eq(rmtAttr.igfsName(), locAttr.igfsName())) { if (F.eq(rmtAttr.metaCacheName(), locAttr.metaCacheName())) throw new IgniteCheckedException("Meta cache names should be different for different IGFS instances " + ", locNodeId=" + ctx.localNodeId() + ", rmtNodeId=" + rmtNode.id() + ", locIgfsName=" + locAttr.igfsName() + ", rmtIgfsName=" + rmtAttr.igfsName() + ']'); ", locNodeId=" + ctx.localNodeId() + ", rmtNodeId=" + rmtNode.id() + ", locIgfsName=" + locAttr.igfsName() + ", rmtIgfsName=" + rmtAttr.igfsName() + ']'); locAttr.blockSize(), rmtAttr.igfsName()); locAttr.groupSize(), rmtAttr.igfsName()); locAttr.metaCacheName(), rmtAttr.igfsName()); locAttr.dataCacheName(), rmtAttr.igfsName()); locAttr.defaultMode(), rmtAttr.igfsName()); locAttr.pathModes(), rmtAttr.igfsName()); locAttr.fragmentizerEnabled(), rmtAttr.igfsName());