@Override public Message apply() { return new GridIoUserMessage(); } });
Object msgBody = ioMsg.body(); assert msgBody != null || ioMsg.bodyBytes() != null; byte[] msgTopicBytes = ioMsg.topicBytes(); Object msgTopic = ioMsg.topic(); GridDeployment dep = ioMsg.deployment(); ioMsg.deploymentClassName() != null) { dep = ctx.deploy().getGlobalDeployment( ioMsg.deploymentMode(), ioMsg.deploymentClassName(), ioMsg.deploymentClassName(), ioMsg.userVersion(), nodeId, ioMsg.classLoaderId(), ioMsg.loaderParticipants(), null); ioMsg.deployment(dep); // Cache deployment. ioMsg.topic(msgTopic); // Save topic to avoid future unmarshallings. msgBody = U.unmarshal(marsh, ioMsg.bodyBytes(), U.resolveClassLoader(dep != null ? dep.classLoader() : null, ctx.config())); ioMsg.body(msgBody); // Save body to avoid future unmarshallings.
if (!writer.writeHeader(directType(), fieldsCount())) return false;
if (!writer.writeHeader(directType(), fieldsCount())) return false;
Object msgBody = ioMsg.body(); assert msgBody != null || ioMsg.bodyBytes() != null; byte[] msgTopicBytes = ioMsg.topicBytes(); Object msgTopic = ioMsg.topic(); GridDeployment dep = ioMsg.deployment(); ioMsg.deploymentClassName() != null) { dep = ctx.deploy().getGlobalDeployment( ioMsg.deploymentMode(), ioMsg.deploymentClassName(), ioMsg.deploymentClassName(), ioMsg.userVersion(), nodeId, ioMsg.classLoaderId(), ioMsg.loaderParticipants(), null); ioMsg.deployment(dep); // Cache deployment. ioMsg.topic(msgTopic); // Save topic to avoid future unmarshallings. msgBody = U.unmarshal(marsh, ioMsg.bodyBytes(), U.resolveClassLoader(dep != null ? dep.classLoader() : null, ctx.config())); ioMsg.body(msgBody); // Save body to avoid future unmarshallings.
Message ioMsg = new GridIoUserMessage( msg, serMsg,
msg = new GridIoUserMessage();
Message ioMsg = new GridIoUserMessage( msg, serMsg,