Collection<UUID> ids = PlatformUtils.readCollection(reader); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forNodeIds(ids)); (ClusterGroupEx)prj.forAttribute(reader.readString(), reader.readString())); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forCacheNodes(cacheName)); String cacheName = reader.readString(); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forClientNodes(cacheName)); String cacheName = reader.readString(); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forDataNodes(cacheName)); UUID nodeId = reader.readUuid(); ClusterNode node = prj.node(nodeId); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx) prj.forHost(node));
/** {@inheritDoc} */ @Override public PlatformTarget processOutObject(int type) throws IgniteCheckedException { switch (type) { case OP_FOR_REMOTES: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forRemotes()); case OP_FOR_DAEMONS: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forDaemons()); case OP_FOR_RANDOM: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forRandom()); case OP_FOR_OLDEST: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forOldest()); case OP_FOR_YOUNGEST: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forYoungest()); case OP_FOR_SERVERS: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forServers()); case OP_GET_COMPUTE: return new PlatformCompute(platformCtx, prj, PlatformUtils.ATTR_PLATFORM); case OP_GET_MESSAGING: return new PlatformMessaging(platformCtx, platformCtx.kernalContext().grid().message(prj)); case OP_GET_EVENTS: return new PlatformEvents(platformCtx, platformCtx.kernalContext().grid().events(prj)); case OP_GET_SERVICES: return new PlatformServices(platformCtx, platformCtx.kernalContext().grid().services(prj),false); } return super.processOutObject(type); }
/** {@inheritDoc} */ @Override public PlatformTarget processInObjectStreamOutObjectStream( int type, @Nullable PlatformTarget arg, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException { switch (type) { case OP_FOR_OTHERS: { PlatformClusterGroup exclude = (PlatformClusterGroup) arg; assert exclude != null; return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forOthers(exclude.prj)); } } return super.processInObjectStreamOutObjectStream(type, arg, reader, writer); }
Collection<UUID> ids = PlatformUtils.readCollection(reader); platformCtx.writeClusterMetrics(writer, prj.forNodeIds(ids).metrics()); Collection<ClusterNode> nodes = prj.nodes();
Collection<UUID> ids = PlatformUtils.readCollection(reader); platformCtx.writeClusterMetrics(writer, prj.forNodeIds(ids).metrics()); Collection<ClusterNode> nodes = prj.nodes();
Collection<UUID> ids = PlatformUtils.readCollection(reader); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forNodeIds(ids)); (ClusterGroupEx)prj.forAttribute(reader.readString(), reader.readString())); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forCacheNodes(cacheName)); String cacheName = reader.readString(); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forClientNodes(cacheName)); String cacheName = reader.readString(); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forDataNodes(cacheName)); UUID nodeId = reader.readUuid(); ClusterNode node = prj.node(nodeId); return new PlatformClusterGroup(platformCtx, (ClusterGroupEx) prj.forHost(node));
/** {@inheritDoc} */ @Override public PlatformTarget processOutObject(int type) throws IgniteCheckedException { switch (type) { case OP_FOR_REMOTES: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forRemotes()); case OP_FOR_DAEMONS: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forDaemons()); case OP_FOR_RANDOM: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forRandom()); case OP_FOR_OLDEST: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forOldest()); case OP_FOR_YOUNGEST: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forYoungest()); case OP_FOR_SERVERS: return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forServers()); case OP_GET_COMPUTE: return new PlatformCompute(platformCtx, prj, PlatformUtils.ATTR_PLATFORM); case OP_GET_MESSAGING: return new PlatformMessaging(platformCtx, platformCtx.kernalContext().grid().message(prj)); case OP_GET_EVENTS: return new PlatformEvents(platformCtx, platformCtx.kernalContext().grid().events(prj)); case OP_GET_SERVICES: return new PlatformServices(platformCtx, platformCtx.kernalContext().grid().services(prj),false); } return super.processOutObject(type); }
/** {@inheritDoc} */ @Override public PlatformTarget processInObjectStreamOutObjectStream( int type, @Nullable PlatformTarget arg, BinaryRawReaderEx reader, BinaryRawWriterEx writer) throws IgniteCheckedException { switch (type) { case OP_FOR_OTHERS: { PlatformClusterGroup exclude = (PlatformClusterGroup) arg; assert exclude != null; return new PlatformClusterGroup(platformCtx, (ClusterGroupEx)prj.forOthers(exclude.prj)); } } return super.processInObjectStreamOutObjectStream(type, arg, reader, writer); }