/** * Get IO policy depending on target node version. * * @param node Target node. * @return IO policy. */ public static GridIoPolicy ioPolicyForNode(GridNode node) { return node.version().greaterThanEqual(6, 6, 9) ? GridIoPolicy.DR_POOL : GridIoPolicy.PUBLIC_POOL; }
/** * Get policy for the given message. * * @param node Destination node. * @return Policy. */ @Deprecated private GridIoPolicy policy(GridNode node) { if (plc == UTILITY_CACHE_POOL) { if (!node.version().greaterThanEqual(6, 6, 0)) return SYSTEM_POOL; } return plc; }
/** * Get policy for the given message. * * @param nodes Destination nodes. * @return Policy. */ @Deprecated private GridIoPolicy policy(Collection<? extends GridNode> nodes) { if (plc == UTILITY_CACHE_POOL) { for (GridNode node : nodes) { if (!node.version().greaterThanEqual(6, 6, 0)) return SYSTEM_POOL; } } return plc; }
/** {@inheritDoc} */ @Override protected void onKernalStart0() throws GridException { if (intLsnrCnt.get() > 0 || lsnrCnt.get() > 0) { Collection<GridNode> nodes = cctx.discovery().cacheNodes(cctx.name(), -1); for (GridNode n : nodes) { if (!n.version().greaterThanEqual(6, 2, 0)) throw new GridException("Rolling update is not supported for continuous queries " + "for versions below 6.2.0"); } } }
continue; boolean supportsForceTransformBackup = node.version().compareTo(FORCE_TRANSFORM_BACKUP_SINCE) >= 0;
boolean supportsForceTransformBackup = node.version().compareTo(FORCE_TRANSFORM_BACKUP_SINCE) >= 0;
if (n.version().compareTo(SECURITY_EVENTS_AVAILABLE_SINCE_VER) < 0) { securityEvts = false;
if (n.id().equals(locNodeId)) locNode = n; else if (n.version().compareTo(QUERY_PORTABLES_SINCE) >= 0) { if (rmtNodes == null) rmtNodes = new ArrayList<>(nodes.size());
if (n.version().compareTo(SECURITY_EVENTS_AVAILABLE_SINCE_VER) < 0) { securityEvts = false;
if (sndNode.version().compareTo(QUERY_PORTABLES_SINCE) < 0) { Class cls = U.forName(req.className(), cctx.deploy().globalLoader());
req = node.version().compareTo(GridJobProcessor.SUBJECT_ID_ADDED_SINCE_VER) < 0 ? new GridJobExecuteRequest( ses.getId(),
rmt.version().compareTo(GridNearAtomicCache.SINCE_VER) < 0) throw new GridException("Cannot use ATOMIC cache with near cache enabled because " + "grid contains nodes that do not support such configuration [rmtNodeId=" + rmt.id() + ", rmtVer=" + rmt.version() + ", supportedSince=" + GridNearAtomicCache.SINCE_VER + ", locVer=" + ctx.product().version() + ']'); rmt.version().compareTo(GridPortableProcessor.SINCE_VER) < 0) throw new GridException("Cannot use cache with portables enabled because grid contains " + "nodes that do not support such configuration [rmtNodeId=" + rmt.id() +