/** {@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 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); }