You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/08/01 09:26:20 UTC

[37/47] ignite git commit: Minor - added P2P node filter for tests

Minor - added P2P node filter for tests


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

Branch: refs/heads/master
Commit: 3085b20ba75ebb983c35fd094c8864fb8920790a
Parents: 770efe2
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Fri Jul 28 17:56:47 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Fri Jul 28 17:56:47 2017 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/tests/p2p/NodeFilter.java | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3085b20b/modules/extdata/p2p/src/main/java/org/apache/ignite/tests/p2p/NodeFilter.java
----------------------------------------------------------------------
diff --git a/modules/extdata/p2p/src/main/java/org/apache/ignite/tests/p2p/NodeFilter.java b/modules/extdata/p2p/src/main/java/org/apache/ignite/tests/p2p/NodeFilter.java
new file mode 100644
index 0000000..39eb8a8
--- /dev/null
+++ b/modules/extdata/p2p/src/main/java/org/apache/ignite/tests/p2p/NodeFilter.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.tests.p2p;
+
+import org.apache.ignite.cluster.ClusterNode;
+import org.apache.ignite.lang.IgnitePredicate;
+
+/**
+ *
+ */
+public class NodeFilter implements IgnitePredicate<ClusterNode> {
+    @Override public boolean apply(ClusterNode node) {
+        return true;
+    }
+}