/** {@inheritDoc} */ @Override public final IgniteCompute compute(ClusterGroup grp) { return ((ClusterGroupAdapter)grp).compute(); }
/** {@inheritDoc} */ @Override public IgniteCompute compute() { return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute(); }
IgniteCompute comp = ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute();
/** * Check cluster state. * * @return Cluster state, {@code True} if cluster active, {@code False} if inactive. */ private IgniteFuture<Boolean> sendComputeCheckGlobalState() { AffinityTopologyVersion topVer = ctx.discovery().topologyVersionEx(); if (log.isInfoEnabled()) { log.info("Sending check cluster state request from node [id=" + ctx.localNodeId() + ", topVer=" + topVer + ", client=" + ctx.clientNode() + ", daemon" + ctx.isDaemon() + "]"); } ClusterGroupAdapter clusterGroupAdapter = (ClusterGroupAdapter)ctx.cluster().get().forServers(); if (F.isEmpty(clusterGroupAdapter.nodes())) return new IgniteFinishedFutureImpl<>(false); IgniteCompute comp = clusterGroupAdapter.compute(); return comp.callAsync(new IgniteCallable<Boolean>() { @IgniteInstanceResource private Ignite ig; @Override public Boolean call() throws Exception { return ig.active(); } }); }
/** {@inheritDoc} */ @Override public final IgniteCompute compute(ClusterGroup grp) { return ((ClusterGroupAdapter)grp).compute(); }
/** {@inheritDoc} */ @Override public IgniteCompute compute() { return ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute(); }
/** * Check cluster state. * * @return Cluster state, {@code True} if cluster active, {@code False} if inactive. */ private boolean sendComputeCheckGlobalState() { AffinityTopologyVersion topVer = ctx.discovery().topologyVersionEx(); if (log.isInfoEnabled()) { log.info("Sending check cluster state request from node [id=" + ctx.localNodeId() + ", topVer=" + topVer + ", client=" + ctx.clientNode() + ", daemon" + ctx.isDaemon() + "]"); } ClusterGroupAdapter clusterGroupAdapter = (ClusterGroupAdapter)ctx.cluster().get().forServers(); if (F.isEmpty(clusterGroupAdapter.nodes())) return false; IgniteCompute comp = clusterGroupAdapter.compute(); return comp.call(new IgniteCallable<Boolean>() { @IgniteInstanceResource private Ignite ig; @Override public Boolean call() throws Exception { return ig.active(); } }); }
IgniteCompute comp = ((ClusterGroupAdapter)ctx.cluster().get().forServers()).compute();