/** {@inheritDoc} */ @Override public DistributedBaselineConfiguration baselineConfiguration() { return cluster.baselineConfiguration(); }
/** {@inheritDoc} */ @Override public void active(boolean active) { guard(); try { ctx.state().changeGlobalState(active, baselineNodes(), false).get(); } catch (IgniteCheckedException e) { throw U.convertException(e); } finally { unguard(); } }
/** {@inheritDoc} */ @Override public boolean enableWal(String cacheName) throws IgniteException { return changeWalMode(cacheName, true); }
/** {@inheritDoc} */ @Nullable @Override public IgniteFuture<?> clientReconnectFuture() { return cluster.clientReconnectFuture(); }
/** {@inheritDoc} */ @Override public void clearNodeLocalMap() { ctx.cluster().get().clearNodeMap(); }
/** {@inheritDoc} */ @Override public void clearStatistics(Collection<String> caches) { cluster.clearStatistics(caches); }
/** {@inheritDoc} */ @Override public boolean disableWal(String cacheName) throws IgniteException { return cluster.disableWal(cacheName); }
/** * @param ctx Kernal context. */ public ClusterProcessor(GridKernalContext ctx) { super(ctx); notifyEnabled.set(IgniteSystemProperties.getBoolean(IGNITE_UPDATE_NOTIFIER, true)); cluster = new IgniteClusterImpl(ctx); sndMetrics = !(ctx.config().getDiscoverySpi() instanceof TcpDiscoverySpi); }
/** {@inheritDoc} */ @Override public void enableStatistics(Collection<String> caches, boolean enabled) { cluster.enableStatistics(caches, enabled); }
/** * @return Client reconnect future. */ public IgniteFuture<?> clientReconnectFuture() { IgniteFuture<?> fut = cluster.clientReconnectFuture(); return fut != null ? fut : new IgniteFinishedFutureImpl<>(); }
ctx.cluster().get().clearNodeMap();
/** {@inheritDoc} */ @Override public void clearStatistics(Collection<String> caches) { cluster.clearStatistics(caches); }
/** {@inheritDoc} */ @Override public boolean disableWal(String cacheName) throws IgniteException { return cluster.disableWal(cacheName); }
/** * @param ctx Kernal context. */ public ClusterProcessor(GridKernalContext ctx) { super(ctx); notifyEnabled.set(IgniteSystemProperties.getBoolean(IGNITE_UPDATE_NOTIFIER, true)); cluster = new IgniteClusterImpl(ctx); sndMetrics = !(ctx.config().getDiscoverySpi() instanceof TcpDiscoverySpi); }
/** {@inheritDoc} */ @Override public void enableStatistics(Collection<String> caches, boolean enabled) { cluster.enableStatistics(caches, enabled); }