Topology validator javadoc fix
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/96017363 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/96017363 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/96017363 Branch: refs/heads/ignite-1093-2 Commit: 96017363eea8071df8bf53ead70c6c7d2c26b4ed Parents: 9abbe90 Author: Anton Vinogradov <[email protected]> Authored: Thu Sep 10 13:06:12 2015 +0300 Committer: Anton Vinogradov <[email protected]> Committed: Thu Sep 10 13:06:12 2015 +0300 ---------------------------------------------------------------------- .../configuration/CacheConfiguration.java | 41 +------------------- .../ignite/configuration/TopologyValidator.java | 24 +++++++++++- 2 files changed, 25 insertions(+), 40 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/96017363/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java index 643804f..9fb56bc 100644 --- a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java +++ b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java @@ -1785,26 +1785,8 @@ public class CacheConfiguration<K, V> extends MutableConfiguration<K, V> { /** * Gets topology validator. * <p> - * Topology validator checks whether the new topology is valid for specific cache at each topology change. - * Topology is always valid in case no topology validator used. - * <p> - * In case topology is valid for specific cache all operations on this cache are allowed. - * <p> - * In case topology is not valid for specific cache all update operations on this cache are restricted: - * <p>{@link CacheException} will be thrown at update operations (put, remove, etc) attempt. - * <p>{@link IgniteException} will be thrown at transaction commit attempt. + * See {@link TopologyValidator} for details. * - * <p> - * Usage example - * <p> - * Following validator allows to put data only in case topology contains exactly 2 nodes: - * <pre>{@code - * new TopologyValidator() { - * public boolean validate(Collection<ClusterNode> nodes) { - * return nodes.size() == 2; - * } - * } - * }</pre> * @return validator. */ public TopologyValidator getTopologyValidator() { @@ -1814,26 +1796,7 @@ public class CacheConfiguration<K, V> extends MutableConfiguration<K, V> { /** * Sets topology validator. * <p> - * Topology validator checks whether the new topology is valid for specific cache at each topology change. - * Topology is always valid in case no topology validator used. - * <p> - * In case topology is valid for specific cache all operations on this cache are allowed. - * <p> - * In case topology is not valid for specific cache all update operations on this cache are restricted: - * <p>{@link CacheException} will be thrown at update operations (put, remove, etc) attempt. - * <p>{@link IgniteException} will be thrown at transaction commit attempt. - * - * <p> - * Usage example - * <p> - * Following validator allows to put data only in case topology contains exactly 2 nodes: - * <pre>{@code - * new TopologyValidator() { - * public boolean validate(Collection<ClusterNode> nodes) { - * return nodes.size() == 2; - * } - * } - * }</pre> + * See {@link TopologyValidator} for details. * * @param topValidator validator. * @return {@code this} for chaining. http://git-wip-us.apache.org/repos/asf/ignite/blob/96017363/modules/core/src/main/java/org/apache/ignite/configuration/TopologyValidator.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/TopologyValidator.java b/modules/core/src/main/java/org/apache/ignite/configuration/TopologyValidator.java index 49c06a0..874fc69 100644 --- a/modules/core/src/main/java/org/apache/ignite/configuration/TopologyValidator.java +++ b/modules/core/src/main/java/org/apache/ignite/configuration/TopologyValidator.java @@ -19,10 +19,32 @@ package org.apache.ignite.configuration; import java.io.Serializable; import java.util.Collection; +import javax.cache.CacheException; +import org.apache.ignite.IgniteException; import org.apache.ignite.cluster.ClusterNode; /** - * Topology validator. + * Topology validator checks whether the new topology is valid for specific cache at each topology change. + * <p> + * Topology is always valid in case no topology validator used. + * <p> + * In case topology is valid for specific cache all operations on this cache are allowed. + * <p> + * In case topology is not valid for specific cache all update operations on this cache are restricted: + * <ul> + * <li>{@link CacheException} will be thrown at update operations (put, remove, etc) attempt.</li> + * <li>{@link IgniteException} will be thrown at transaction commit attempt.</li> + * </ul> + * Usage example + * <p> + * Following validator allows to put data only in case topology contains exactly 2 nodes: + * <pre>{@code + * new TopologyValidator() { + * public boolean validate(Collection<ClusterNode> nodes) { + * return nodes.size() == 2; + * } + * } + * }</pre> */ public interface TopologyValidator extends Serializable { /**
