You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/09/11 13:36:26 UTC

[15/22] ignite git commit: Topology validator javadoc fix (cherry picked from commit 9601736)

Topology validator javadoc fix
(cherry picked from commit 9601736)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d36db7bf
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d36db7bf
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d36db7bf

Branch: refs/heads/ignite-1093-2
Commit: d36db7bf8683c0641ea809963b95dfa7e10176f6
Parents: 978c4ed
Author: Anton Vinogradov <av...@apache.org>
Authored: Thu Sep 10 13:06:12 2015 +0300
Committer: Anton Vinogradov <av...@apache.org>
Committed: Thu Sep 10 13:08:27 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/d36db7bf/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/d36db7bf/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 {
     /**