/** {@inheritDoc} */ @Override public IgniteClusterEx cluster() { return ctx.cluster().get(); }
/** {@inheritDoc} */ @Override public ExecutorService executorService() { return ctx.cluster().get().executorService(); }
/** {@inheritDoc} */ @Override public ClusterNode localNode() { return ctx.cluster().get().localNode(); }
/** {@inheritDoc} */ @Override public void clearNodeLocalMap() { ctx.cluster().get().clearNodeMap(); }
/** {@inheritDoc} */ @Override public IgniteMessaging message() { return ctx.cluster().get().message(); }
/** {@inheritDoc} */ @Override public IgniteEvents events() { return ctx.cluster().get().events(); }
/** {@inheritDoc} */ @Override public IgniteCompute compute() { return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute(); }
/** {@inheritDoc} */ @Override public IgniteServices services() { checkClusterState(); return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).services(); }
/** {@inheritDoc} */ @Override public void runIoTest( long warmup, long duration, int threads, long maxLatency, int rangesCnt, int payLoadSize, boolean procFromNioThread ) { ctx.io().runIoTest(warmup, duration, threads, maxLatency, rangesCnt, payLoadSize, procFromNioThread, new ArrayList(ctx.cluster().get().forServers().forRemotes().nodes())); }
/** {@inheritDoc} */ @Override public String latestVersion() { ctx.gateway().readLock(); try { return ctx.cluster().latestVersion(); } finally { ctx.gateway().readUnlock(); } }
ctx.cluster().get().clearNodeMap();
/** {@inheritDoc} */ @Override public void dumpDebugInfo() { try { GridKernalContextImpl ctx = this.ctx; GridDiscoveryManager discoMrg = ctx != null ? ctx.discovery() : null; ClusterNode locNode = discoMrg != null ? discoMrg.localNode() : null; if (ctx != null && discoMrg != null && locNode != null) { boolean client = ctx.clientNode(); UUID routerId = locNode instanceof TcpDiscoveryNode ? ((TcpDiscoveryNode)locNode).clientRouterNodeId() : null; U.warn(ctx.cluster().diagnosticLog(), "Dumping debug info for node [id=" + locNode.id() + ", name=" + ctx.igniteInstanceName() + ", order=" + locNode.order() + ", topVer=" + discoMrg.topologyVersion() + ", client=" + client + (client && routerId != null ? ", routerId=" + routerId : "") + ']'); ctx.cache().context().exchange().dumpDebugInfo(null); } else U.warn(log, "Dumping debug info for node, context is not initialized [name=" + igniteInstanceName + ']'); } catch (Exception e) { U.error(log, "Failed to dump debug info for node: " + e, e); } }
/** {@inheritDoc} */ @Override public IgniteClusterEx cluster() { return ctx.cluster().get(); }
/** {@inheritDoc} */ @Override public ClusterNode localNode() { return ctx.cluster().get().localNode(); }
/** {@inheritDoc} */ @Override public void clearNodeLocalMap() { ctx.cluster().get().clearNodeMap(); }
/** {@inheritDoc} */ @Override public IgniteCompute compute() { return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute(); }
/** {@inheritDoc} */ @Override public IgniteServices services() { checkClusterState(); return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).services(); }
/** {@inheritDoc} */ @Override public String latestVersion() { ctx.gateway().readLock(); try { return ctx.cluster().latestVersion(); } finally { ctx.gateway().readUnlock(); } }