/** * Pre-processes message prior to send. * * @param msg Message to send. * @param destNodeId Destination node ID. * @return {@code True} if should send message. * @throws IgniteCheckedException If failed. */ private boolean onSend(GridCacheMessage msg, @Nullable UUID destNodeId) throws IgniteCheckedException { if (msg.error() != null && cctx.kernalContext().isStopping()) return false; if (msg.messageId() < 0) // Generate and set message ID. msg.messageId(idGen.incrementAndGet()); if (destNodeId == null || !cctx.localNodeId().equals(destNodeId)) { msg.prepareMarshal(cctx); if (msg instanceof GridCacheDeployable && msg.addDeploymentInfo()) cctx.deploy().prepare((GridCacheDeployable)msg); } return true; }
/** * @param cctx Context. * @param nodeId ID of the node that started routine. * @param entry Entry. * @throws IgniteCheckedException In case of error. */ private void prepareEntry(GridCacheContext cctx, UUID nodeId, CacheContinuousQueryEntry entry) throws IgniteCheckedException { if (cctx.kernalContext().config().isPeerClassLoadingEnabled() && cctx.discovery().node(nodeId) != null) { entry.prepareMarshal(cctx); cctx.deploy().prepare(entry); } else entry.prepareMarshal(cctx); }
/** * Pre-processes message prior to send. * * @param msg Message to send. * @param destNodeId Destination node ID. * @return {@code True} if should send message. * @throws IgniteCheckedException If failed. */ private boolean onSend(GridCacheMessage msg, @Nullable UUID destNodeId) throws IgniteCheckedException { if (msg.error() != null && cctx.kernalContext().isStopping()) return false; if (msg.messageId() < 0) // Generate and set message ID. msg.messageId(idGen.incrementAndGet()); if (destNodeId == null || !cctx.localNodeId().equals(destNodeId)) { msg.prepareMarshal(cctx); if (msg instanceof GridCacheDeployable && msg.addDeploymentInfo()) cctx.deploy().prepare((GridCacheDeployable)msg); } return true; }
/** * @param cctx Context. * @param nodeId ID of the node that started routine. * @param entry Entry. * @throws IgniteCheckedException In case of error. */ private void prepareEntry(GridCacheContext cctx, UUID nodeId, CacheContinuousQueryEntry entry) throws IgniteCheckedException { if (cctx.kernalContext().config().isPeerClassLoadingEnabled() && cctx.discovery().node(nodeId) != null) { entry.prepareMarshal(cctx); cctx.deploy().prepare(entry); } else entry.prepareMarshal(cctx); }