ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [13/50] ignite git commit: wip
Date Wed, 13 Apr 2016 14:53:12 GMT
wip


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

Branch: refs/heads/ignite-2977
Commit: ed277e40b2ab6c7a0c19385a80b8e2fc592c8fb1
Parents: 21eb103
Author: Pavel Tupitsyn <ptupitsyn@gridgain.com>
Authored: Tue Apr 12 18:20:06 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@gridgain.com>
Committed: Tue Apr 12 18:20:06 2016 +0300

----------------------------------------------------------------------
 .../PlatformCacheEntryEventFilterFactory.java   | 26 +++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ed277e40/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilterFactory.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilterFactory.java
b/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilterFactory.java
index 83d13c1..747001f 100644
--- a/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilterFactory.java
+++ b/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilterFactory.java
@@ -1,7 +1,27 @@
+/*
+ * 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.platform;
 
 import org.apache.ignite.cache.CacheEntryEventSerializableFilter;
 
+import javax.cache.event.CacheEntryEvent;
+import javax.cache.event.CacheEntryListenerException;
+
 /**
  * Test filter factory
  */
@@ -12,6 +32,10 @@ public class PlatformCacheEntryEventFilterFactory implements PlatformJavaObjectF
 
     /** {@inheritDoc} */
     @Override public CacheEntryEventSerializableFilter create() {
-        return null;
+        return new CacheEntryEventSerializableFilter() {
+            @Override public boolean evaluate(CacheEntryEvent event) throws CacheEntryListenerException
{
+                return ((String)event.getValue()).startsWith(startsWith);
+            }
+        };
     }
 }


Mime
View raw message