/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ @Override protected Object readResolve() throws ObjectStreamException { ClusterGroupAdapter parent = (ClusterGroupAdapter)super.readResolve(); return new AgeClusterGroup(parent, isOldest); } }
/** {@inheritDoc} */ @Override public final ClusterGroup forDaemons() { return forPredicate(new DaemonFilter()); }
/** {@inheritDoc} */ @Override public ClusterGroup forClients() { return forPredicate(new AttributeFilter(IgniteNodeAttributes.ATTR_CLIENT_MODE, true)); }
/** {@inheritDoc} */ @Override public final ClusterGroup forCacheNodes(String cacheName) { CU.validateCacheName(cacheName); checkDaemon(); return forPredicate(new CachesFilter(cacheName, true, true, true)); }
/** * Creates appropriate empty projection exception. * * @return Empty projection exception. */ public static ClusterGroupEmptyCheckedException emptyTopologyException() { return new ClusterGroupEmptyCheckedException("Cluster group is empty."); }
/** {@inheritDoc} */ @Override public final ClusterGroup forHost(String host, String... hosts) { A.notNull(host, "host"); return forPredicate(new HostsFilter(host, hosts)); }
/** * @param ctx Kernal context. */ public IgniteClusterImpl(GridKernalContext ctx) { super(ctx, null, (IgnitePredicate<ClusterNode>)null); cfg = ctx.config(); nodeLoc = new ClusterNodeLocalMapImpl(ctx); distributedBaselineConfiguration = new DistributedBaselineConfiguration(cfg, ctx.internalSubscriptionProcessor()); }
/** * @param parent Parent cluster group. * @param isOldest Oldest flag. */ private AgeClusterGroup(ClusterGroupAdapter parent, boolean isOldest) { super(parent.ctx, parent.subjId, parent.p, parent.ids); this.isOldest = isOldest; reset(); }
/** {@inheritDoc} */ @Override public IgniteFuture<Collection<ClusterStartNodeResult>> startNodesAsync(File file, boolean restart, int timeout, int maxConn) throws IgniteException { return cluster.startNodesAsync(file, restart, timeout, maxConn); }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { return prj.executorService(); }
/** {@inheritDoc} */ @Override public boolean enableWal(String cacheName) throws IgniteException { return cluster.enableWal(cacheName); } /** {@inheritDoc} */
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { return prj.services(); } }
/** * @return Error. */ public static ClusterTopologyServerNotFoundException noCoordinatorError() { return new ClusterTopologyServerNotFoundException("Mvcc coordinator is not assigned."); }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { return prj.message(); } }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { return prj.events(); } }
/** {@inheritDoc} */ @Override public ClusterGroup forOldest() { return new AgeClusterGroup(this, true); }
/** {@inheritDoc} */ @Override public final ClusterGroup forDataNodes(String cacheName) { CU.validateCacheName(cacheName); checkDaemon(); return forPredicate(new CachesFilter(cacheName, true, false, false)); }
/** {@inheritDoc} */ @Override public ClusterGroup forServers() { return forPredicate(new AttributeFilter(IgniteNodeAttributes.ATTR_CLIENT_MODE, false)); }
/** {@inheritDoc} */ @Override public ClusterGroup forCacheNodes(String cacheName, boolean affNodes, boolean nearNodes, boolean clientNodes) { CU.validateCacheName(cacheName); checkDaemon(); return forPredicate(new CachesFilter(cacheName, affNodes, nearNodes, clientNodes)); }
/** {@inheritDoc} */ @Override public final ClusterGroup forClientNodes(String cacheName) { CU.validateCacheName(cacheName); checkDaemon(); return forPredicate(new CachesFilter(cacheName, false, true, true)); }