[1/3] incubator-geode git commit: Adding a geode-benchmark project with support for running jmh benchmarks

2016-11-07 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 2993e6d6f -> 2e1a8c420


Adding a geode-benchmark project with support for running jmh benchmarks

Adding a new project with a couple of simple benchmarks using jmh, to
make it easier for developers to write microbenchmarks of geode.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/1000f0bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/1000f0bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/1000f0bd

Branch: refs/heads/develop
Commit: 1000f0bd9ff8ed6f5063845a525914c531342838
Parents: 2993e6d
Author: Dan Smith 
Authored: Wed Oct 19 10:16:31 2016 -0700
Committer: Dan Smith 
Committed: Fri Nov 4 15:04:09 2016 -0700

--
 build.gradle|   1 +
 geode-benchmarks/build.gradle   |  26 +
 .../benchmark/RangeQueryWithIndexBenchmark.java | 104 +++
 .../benchmark/RegionOperationBenchmark.java |  62 +++
 settings.gradle |   1 +
 5 files changed, 194 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1000f0bd/build.gradle
--
diff --git a/build.gradle b/build.gradle
index 6e82433..360310f 100755
--- a/build.gradle
+++ b/build.gradle
@@ -25,6 +25,7 @@ buildscript {
 classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
 classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1'
 classpath "com.diffplug.gradle.spotless:spotless:2.2.0"
+classpath "me.champeau.gradle:jmh-gradle-plugin:0.3.1"
   }
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1000f0bd/geode-benchmarks/build.gradle
--
diff --git a/geode-benchmarks/build.gradle b/geode-benchmarks/build.gradle
new file mode 100644
index 000..b6f09bc
--- /dev/null
+++ b/geode-benchmarks/build.gradle
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+
+apply plugin: "me.champeau.gradle.jmh"
+
+dependencies {
+  compile project(':geode-core')
+}
+
+jmh {
+  duplicateClassesStrategy = 'warn'
+}

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1000f0bd/geode-benchmarks/src/jmh/java/org/apache/geode/cache/benchmark/RangeQueryWithIndexBenchmark.java
--
diff --git 
a/geode-benchmarks/src/jmh/java/org/apache/geode/cache/benchmark/RangeQueryWithIndexBenchmark.java
 
b/geode-benchmarks/src/jmh/java/org/apache/geode/cache/benchmark/RangeQueryWithIndexBenchmark.java
new file mode 100644
index 000..7255c1a
--- /dev/null
+++ 
b/geode-benchmarks/src/jmh/java/org/apache/geode/cache/benchmark/RangeQueryWithIndexBenchmark.java
@@ -0,0 +1,104 @@
+/*
+ * 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.geode.cache.benchmark;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.List;
+import java.util.stream.IntStream;
+
+import org.apache.geode.cache.Cache;
+import org.apache.geode.cache.CacheFactory;
+import org.apache.geode.cache.Region;
+import 

[3/3] incubator-geode git commit: GEODE-1985: Updating the SAFE_QUERY_TIME after updating indexes

2016-11-07 Thread upthewaterspout
GEODE-1985: Updating the SAFE_QUERY_TIME after updating indexes

This is a fix for pretty specific race condition
1) T1 does a put and gets to the point of calling setIndexBufferTime,
but hasn't updated the indexes
2) T2 starts a query and finds the entry in the index even though the
value no longer matches the query
3) T1 finishes the put
4) T2 checks to see if should revaluate the entry, but decides not to
because based on the SAFE_QUERY_TIME value the entry changed before the
query started.

By moving the update to SAFE_QUERY_TIME down, the if the an entry
doesn't need reevaluation based on the SAFE_QUERY_TIME, we know the
index was updated before the query started.

There is currently an updateInProgress flag to handle the issue of the
query executing before the SAFE_QUERY_TIME is updated. If the entry is
updated, but not the index, the updateInProgress flag will be set.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/2e1a8c42
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/2e1a8c42
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/2e1a8c42

Branch: refs/heads/develop
Commit: 2e1a8c420fd984bdcc605ababe93b0e6c6b29919
Parents: 4c0d302
Author: Dan Smith 
Authored: Mon Oct 31 14:15:47 2016 -0700
Committer: Dan Smith 
Committed: Mon Nov 7 09:57:52 2016 -0800

--
 .../main/java/org/apache/geode/internal/cache/LocalRegion.java| 3 ++-
 .../query/internal/index/MapRangeIndexMaintenanceJUnitTest.java   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/2e1a8c42/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java 
b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java
index 360c6a9..3873e6e 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java
@@ -5875,6 +5875,8 @@ public class LocalRegion extends AbstractRegion 
implements LoaderHelperFactory,
   }
 } catch (QueryException e) {
   throw new IndexMaintenanceException(e);
+} finally {
+  IndexManager.setIndexBufferTime(lastModifiedTime, cacheTimeMillis());
 }
   }
 }
@@ -7369,7 +7371,6 @@ public class LocalRegion extends AbstractRegion 
implements LoaderHelperFactory,
   lastModified = cacheTimeMillis();
 }
 entry.updateStatsForPut(lastModified);
-IndexManager.setIndexBufferTime(lastModified, cacheTimeMillis());
 if (this.statisticsEnabled && !isProxy()) {
   // do not reschedule if there is already a task in the queue.
   // this prevents bloat in the TimerTask since cancelled tasks

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/2e1a8c42/geode-core/src/test/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java
--
diff --git 
a/geode-core/src/test/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java
 
b/geode-core/src/test/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java
index beffe47..5159f89 100644
--- 
a/geode-core/src/test/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java
@@ -968,7 +968,7 @@ public class MapRangeIndexMaintenanceJUnitTest {
 HashMap map2 = new HashMap();
 map2.put("SUN", 1);
 map2.put("IBM", 2);
-p2.positions = map1;
+p2.positions = map2;
 region.put(2, p2);
 
 



[2/3] incubator-geode git commit: GEODE-1985 Removing some string comparisons in the AttributesDescriptor

2016-11-07 Thread upthewaterspout
GEODE-1985 Removing some string comparisons in the AttributesDescriptor

Optimizing the attributes descriptor by removing some string
comparisons.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/4c0d302f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/4c0d302f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/4c0d302f

Branch: refs/heads/develop
Commit: 4c0d302fcacdc338d967c2fb873c05d0a52f109f
Parents: 1000f0b
Author: Dan Smith 
Authored: Mon Oct 24 17:23:35 2016 -0700
Committer: Dan Smith 
Committed: Mon Nov 7 09:57:32 2016 -0800

--
 .../query/internal/AttributeDescriptor.java | 27 
 1 file changed, 10 insertions(+), 17 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4c0d302f/geode-core/src/main/java/org/apache/geode/cache/query/internal/AttributeDescriptor.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/query/internal/AttributeDescriptor.java
 
b/geode-core/src/main/java/org/apache/geode/cache/query/internal/AttributeDescriptor.java
index a11bea0..f40ab3e 100644
--- 
a/geode-core/src/main/java/org/apache/geode/cache/query/internal/AttributeDescriptor.java
+++ 
b/geode-core/src/main/java/org/apache/geode/cache/query/internal/AttributeDescriptor.java
@@ -33,6 +33,7 @@ import org.apache.geode.cache.query.NameNotFoundException;
 import org.apache.geode.cache.query.QueryInvocationTargetException;
 import org.apache.geode.cache.query.QueryService;
 import org.apache.geode.cache.query.types.ObjectType;
+import org.apache.geode.internal.cache.Token;
 import org.apache.geode.internal.i18n.LocalizedStrings;
 import org.apache.geode.pdx.PdxInstance;
 import org.apache.geode.pdx.PdxSerializationException;
@@ -78,29 +79,25 @@ public class AttributeDescriptor {
   return readPdx((PdxInstance) target);
 }
 // for non pdx objects
-return read(target, target.getClass());
+return readReflection(target);
   }
 
   // used when the resolution of an attribute must be on a superclass
   // instead of the runtime class
-  private Object read(Object target, Class resolutionClass)
+  private Object readReflection(Object target)
   throws NameNotFoundException, QueryInvocationTargetException {
 Support.Assert(target != null);
 Support.Assert(target != QueryService.UNDEFINED);
-Member m;
-if 
(target.getClass().getName().startsWith("org.apache.geode.internal.cache.Token$"))
 {
+if (target instanceof Token) {
   return QueryService.UNDEFINED;
-} else {
-  m = getReadMember(resolutionClass);
 }
+
+Class resolutionClass = target.getClass();
+Member m = getReadMember(resolutionClass);
 try {
   if (m instanceof Method) {
 try {
-  if 
(target.getClass().getName().startsWith("org.apache.geode.internal.cache.Token$"))
 {
-return QueryService.UNDEFINED;
-  } else {
-return ((Method) m).invoke(target, (Object[]) null);
-  }
+  return ((Method) m).invoke(target, (Object[]) null);
 } catch (EntryDestroyedException e) {
   // eat the Exception
   return QueryService.UNDEFINED;
@@ -123,11 +120,7 @@ public class AttributeDescriptor {
 }
   } else {
 try {
-  if 
(target.getClass().getName().startsWith("org.apache.geode.internal.cache.Token$"))
 {
-return QueryService.UNDEFINED;
-  } else {
-return ((Field) m).get(target);
-  }
+  return ((Field) m).get(target);
 } catch (IllegalAccessException e) {
   throw new NameNotFoundException(
   
LocalizedStrings.AttributeDescriptor_FIELD_0_IN_CLASS_1_IS_NOT_ACCESSIBLE_TO_THE_QUERY_PROCESSOR
@@ -315,7 +308,7 @@ public class AttributeDescriptor {
   throws NameNotFoundException, QueryInvocationTargetException {
 try {
   Object obj = pdxInstance.getCachedObject();
-  return read(obj, obj.getClass());
+  return readReflection(obj);
 } catch (PdxSerializationException e) {
   throw new NameNotFoundException( // the domain object is not available
   
LocalizedStrings.AttributeDescriptor_FIELD_0_IN_CLASS_1_IS_NOT_ACCESSIBLE_TO_THE_QUERY_PROCESSOR



[1/2] incubator-geode git commit: Changing geode-spark-connector to depend on 1.0 release.

2016-11-01 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 3822c9053 -> 110a6f5c5


Changing geode-spark-connector to depend on 1.0 release.

It was had a dependency on the -SNAPSHOT version.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/110a6f5c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/110a6f5c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/110a6f5c

Branch: refs/heads/develop
Commit: 110a6f5c5720b159ba936a14a03fcdfbd71f2984
Parents: 838eebc
Author: Dan Smith 
Authored: Tue Nov 1 14:17:13 2016 -0700
Committer: Dan Smith 
Committed: Tue Nov 1 14:19:23 2016 -0700

--
 geode-spark-connector/project/Dependencies.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/110a6f5c/geode-spark-connector/project/Dependencies.scala
--
diff --git a/geode-spark-connector/project/Dependencies.scala 
b/geode-spark-connector/project/Dependencies.scala
index 56d0d96..1518494 100644
--- a/geode-spark-connector/project/Dependencies.scala
+++ b/geode-spark-connector/project/Dependencies.scala
@@ -22,7 +22,7 @@ object Dependencies {
   object Compile {
 val sparkStreaming = "org.apache.spark" %% "spark-streaming" % "1.3.0" 
 val sparkSql = "org.apache.spark" %% "spark-sql" % "1.3.0"
-val geode = "org.apache.geode" % "geode-core" % 
"1.0.0-incubating-SNAPSHOT" excludeAll(ExclusionRule(organization = 
"org.jboss.netty") )
+val geode = "org.apache.geode" % "geode-core" % "1.0.0-incubating" 
excludeAll(ExclusionRule(organization = "org.jboss.netty") )
   }
 
   object Test {



[2/2] incubator-geode git commit: Correcting javadocs on AsyncEventListener to return true.

2016-11-01 Thread upthewaterspout
Correcting javadocs on AsyncEventListener to return true.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/838eebc4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/838eebc4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/838eebc4

Branch: refs/heads/develop
Commit: 838eebc490843d9e29143bd5f24f795f8ac1b355
Parents: 3822c90
Author: Dan Smith 
Authored: Tue Nov 1 13:48:02 2016 -0700
Committer: Dan Smith 
Committed: Tue Nov 1 14:19:23 2016 -0700

--
 .../org/apache/geode/cache/asyncqueue/AsyncEventListener.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/838eebc4/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
 
b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
index 5d59a84..dadee04 100644
--- 
a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
+++ 
b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
@@ -27,7 +27,7 @@ import org.apache.geode.cache.CacheCallback;
  * 
  * 
  * public class MyEventListener implements AsyncEventListener {
- * 
+ *
  *   public boolean processEvents(List events) {
  * for (Iterator i = events.iterator(); i.hasNext();) {
  *   AsyncEvent event = (AsyncEvent) i.next();
@@ -50,6 +50,7 @@ import org.apache.geode.cache.CacheCallback;
  *   }
  * 
  * }
+ * return true;
  *   }
  * }
  * 



incubator-geode git commit: Closing pull request #277

2016-10-31 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 8c9b51b09 -> 6d78cf20c


Closing pull request #277

This closes #277. I put the wrong pull request number in
dbcbd55f9b2965afcf5dcc8453308c1c850d7a5c, which is the commit that
actually merged this pull request.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6d78cf20
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6d78cf20
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6d78cf20

Branch: refs/heads/develop
Commit: 6d78cf20c43f955fdd0d217e095dcb73baac4527
Parents: 8c9b51b
Author: Dan Smith 
Authored: Mon Oct 31 16:44:12 2016 -0700
Committer: Dan Smith 
Committed: Mon Oct 31 16:51:12 2016 -0700

--

--




[1/2] incubator-geode git commit: GEODE-1098: Fix gfsh.bat error with default Java installation

2016-10-28 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 2ef50b24d -> 29bb98a23


GEODE-1098: Fix gfsh.bat error with default Java installation

Paths to JAR dependencies quoted to prevent spaces from causing error

This closes #227


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

Branch: refs/heads/develop
Commit: dbcbd55f9b2965afcf5dcc8453308c1c850d7a5c
Parents: 2ef50b2
Author: mmurdoch 
Authored: Fri Oct 28 19:19:59 2016 +0100
Committer: Dan Smith 
Committed: Fri Oct 28 17:12:03 2016 -0700

--
 geode-assembly/src/main/dist/bin/gfsh.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/dbcbd55f/geode-assembly/src/main/dist/bin/gfsh.bat
--
diff --git a/geode-assembly/src/main/dist/bin/gfsh.bat 
b/geode-assembly/src/main/dist/bin/gfsh.bat
index 8206b6e..a89845c 100755
--- a/geode-assembly/src/main/dist/bin/gfsh.bat
+++ b/geode-assembly/src/main/dist/bin/gfsh.bat
@@ -82,5 +82,5 @@ REM  Expect to find the tools.jar from the JDK
 )
 
 REM Call java with our classpath
-@"%GF_JAVA%" -Dgfsh=true -Dlog4j.configurationFile=classpath:log4j2-cli.xml 
-classpath %DEPENDENCIES% %JAVA_ARGS% %LAUNCHER% %*
+@"%GF_JAVA%" -Dgfsh=true -Dlog4j.configurationFile=classpath:log4j2-cli.xml 
-classpath "%DEPENDENCIES%" %JAVA_ARGS% %LAUNCHER% %*
 :done



[2/2] incubator-geode git commit: Fixing spotless formatting errors.

2016-10-28 Thread upthewaterspout
Fixing spotless formatting errors.

2ef50b24de1457ab91729f22a3c2ff4a8a07557b introduced spotless formatting
issues.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/29bb98a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/29bb98a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/29bb98a2

Branch: refs/heads/develop
Commit: 29bb98a23e720a84d7e0f22dcd0ae25b418eec27
Parents: dbcbd55
Author: Dan Smith 
Authored: Fri Oct 28 17:12:56 2016 -0700
Committer: Dan Smith 
Committed: Fri Oct 28 17:12:56 2016 -0700

--
 .../internal/cache/AbstractRegionEntry.java |  1 +
 .../internal/cache/AbstractRegionEntryTest.java | 44 +---
 2 files changed, 21 insertions(+), 24 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/29bb98a2/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionEntry.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionEntry.java
 
b/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionEntry.java
index 2138af9..41ca8d0 100644
--- 
a/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionEntry.java
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionEntry.java
@@ -228,6 +228,7 @@ public abstract class AbstractRegionEntry implements 
RegionEntry, HashEntryhttp://git-wip-us.apache.org/repos/asf/incubator-geode/blob/29bb98a2/geode-core/src/test/java/org/apache/geode/internal/cache/AbstractRegionEntryTest.java
--
diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/cache/AbstractRegionEntryTest.java
 
b/geode-core/src/test/java/org/apache/geode/internal/cache/AbstractRegionEntryTest.java
index 36e3e30..2f372bc 100644
--- 
a/geode-core/src/test/java/org/apache/geode/internal/cache/AbstractRegionEntryTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/internal/cache/AbstractRegionEntryTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.internal.cache;
 
@@ -31,9 +29,10 @@ import org.apache.geode.test.junit.categories.UnitTest;
 
 @Category(UnitTest.class)
 public class AbstractRegionEntryTest {
-  
+
   @Test
-  public void 
whenMakeTombstoneHasSetValueThatThrowsExceptionDoesNotChangeValueToTombstone() 
throws RegionClearedException {
+  public void 
whenMakeTombstoneHasSetValueThatThrowsExceptionDoesNotChangeValueToTombstone()
+  throws RegionClearedException {
 LocalRegion lr = mock(LocalRegion.class);
 RegionVersionVector rvv = mock(RegionVersionVector.class);
 when(lr.getVersionVector()).thenReturn(rvv);
@@ -42,20 +41,19 @@ public class AbstractRegionEntryTest {
 AbstractRegionEntry re = new TestableRegionEntry(lr, value);
 assertEquals(value, re.getValueField());
 Assertions.assertThatThrownBy(() -> re.makeTombstone(lr, vt))
-.isInstanceOf(RuntimeException.class)
-.hasMessage("throw exception on setValue(TOMBSTONE)");
+

[38/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java
index 0299615..c90a7a4 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.rest.internal.web.controllers;
 
@@ -100,91 +98,75 @@ public class RestAPIsAndInterOpsDUnitTest extends 
LocatorTestBase {
 
   public static final String PEOPLE_REGION_NAME = "People";
 
-  //private static RestTemplate restTemplate;
-
-  private static final String findAllPeopleQuery = 
"/queries?id=findAllPeople=SELECT%20*%20FROM%20/People";
-  private static final String findPeopleByGenderQuery = 
"/queries?id=filterByGender=SELECT%20*%20from%20/People%20where%20gender=$1";
-  private static final String findPeopleByLastNameQuery = 
"/queries?id=filterByLastName=SELECT%20*%20from%20/People%20where%20lastName=$1";
-
-  private static final String[] PARAM_QUERY_IDS_ARRAY = { "findAllPeople",
-  "filterByGender", "filterByLastName" };
-
-  final static String QUERY_ARGS = "["
-  + "{"
-  + "\"@type\": \"string\","
-  + "\"@value\": \"Patel\""
-  + "}"
-  + "]";
-
-  final static String PERSON_AS_JSON_CAS = "{"
-  + "\"@old\" :"
-  + "{"
-  + "\"@type\": \"org.apache.geode.rest.internal.web.controllers.Person\","
-  + "\"id\": 101," + " \"firstName\": \"Mithali\","
-  + " \"middleName\": \"Dorai\"," + " \"lastName\": \"Raj\","
-  + " \"birthDate\": \"12/04/1982\"," + "\"gender\": \"FEMALE\""
-  + "},"
-  + "\"@new\" :"
-  + "{"
-  + "\"@type\": \"org.apache.geode.rest.internal.web.controllers.Person\","
-  + "\"id\": 1101," + " \"firstName\": \"Virat\","
-  + " \"middleName\": \"Premkumar\"," + " \"lastName\": \"Kohli\","
-  + " \"birthDate\": \"08/11/1988\"," + "\"gender\": \"MALE\""
-  + "}"
-  + "}";
-
-  final static String PERSON_AS_JSON_REPLACE = "{"
-  + "\"@type\": \"org.apache.geode.rest.internal.web.controllers.Person\","
-  + "\"id\": 501," + " \"firstName\": \"Barack\","
-  + " \"middleName\": \"Hussein\"," + " \"lastName\": \"Obama\","
-  + " \"birthDate\": \"04/08/1961\"," + "\"gender\": \"MALE\""
-  + "}";
+  // private static RestTemplate restTemplate;
+
+  private static final String findAllPeopleQuery =
+  "/queries?id=findAllPeople=SELECT%20*%20FROM%20/People";
+  private static final String findPeopleByGenderQuery =
+  
"/queries?id=filterByGender=SELECT%20*%20from%20/People%20where%20gender=$1";
+  private static final String findPeopleByLastNameQuery =
+  
"/queries?id=filterByLastName=SELECT%20*%20from%20/People%20where%20lastName=$1";
+
+  private static final String[] PARAM_QUERY_IDS_ARRAY =
+  {"findAllPeople", "filterByGender", "filterByLastName"};
+
+  final static String QUERY_ARGS =
+  "[" + 

[32/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/LogWriter.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/LogWriter.java 
b/geode-core/src/main/java/org/apache/geode/LogWriter.java
index 17e23e0..242433f 100644
--- a/geode-core/src/main/java/org/apache/geode/LogWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/LogWriter.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
@@ -23,278 +21,278 @@ import org.apache.geode.distributed.DistributedSystem;
 import org.apache.geode.i18n.LogWriterI18n;
 
 /**
-  * Defines methods available to clients that want to write a log message
-  * to their GemFire distributed system log file.
-  * 
-  * Instances of this interface can be obtained by calling
-  * {@link DistributedSystem#getLogWriter}.
-  * 
-  * For any logged message the log file will contain:
-  * 
-  *  The message's level.
-  *  The time the message was logged.
-  *  The id of the thread that logged the message.
-  *  The message itself which can be a string and/or an exception
-  *  including the exception's stack trace.
-  * 
-  * 
-  * A message always has a level.
-  * Logging levels are ordered. Enabling logging at a given level also
-  * enables logging at higher levels. The higher the level the more
-  * important and urgent the message.
-  * 
-  * The levels, in descending order, are:
-  * 
-  *  severe  (highest value) is a message level indicating a 
serious failure.
-  *   In general severe messages should describe events that
-  *   are of considerable importance and which will prevent normal program
-  *   execution. They should be reasonably intelligible to end users and
-  *   to information managers.
-  *  error  
-  *   In general error messages should describe events that
-  *   are of considerable importance but will not prevent normal program
-  *   execution. They should be reasonably intelligible to end users and
-  *   to information managers. They are weaker than severe and
-  *   stronger than warning.
-  *  warning is a message level indicating a potential 
problem.
-  *   In general warning messages should describe events that
-  *   will be of interest to end users or information managers, or which 
indicate
-  *   potential problems.
-  *  info is a message level for informational messages.
-  *   Typically info messages should be reasonably significant
-  *   and should make sense to end users and system administrators.
-  *  config is a message level for static configuration 
messages.
-  *   config messages are intended to provide a variety of static
-  *   configuration information, to assist in debugging problems that may be
-  *   associated with particular configurations.
-  *  fine is a message level providing tracing information.
-  *   In general the fine level should be used for information
-  *   that will be broadly interesting to developers. This level is for
-  *   the lowest volume, and most important, tracing messages.
-  *  finer indicates a fairly detailed tracing message.
-  *   Logging calls for entering, returning, or throwing an exception
-  *   are traced at the finer level.
-  *  finest (lowest value) indicates a highly detailed 
tracing message.
-  *   In general the finest level should be used for the most
-  *   

[36/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsWithSSLDUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsWithSSLDUnitTest.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsWithSSLDUnitTest.java
index fde41f1..bb13966 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsWithSSLDUnitTest.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsWithSSLDUnitTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.rest.internal.web.controllers;
 
@@ -116,7 +114,8 @@ public class RestAPIsWithSSLDUnitTest extends 
LocatorTestBase {
   }
 
   private File findTrustedJKSWithSingleEntry() {
-return new File(TestUtil.getResourcePath(RestAPIsWithSSLDUnitTest.class, 
"/ssl/trusted.keystore"));
+return new File(
+TestUtil.getResourcePath(RestAPIsWithSSLDUnitTest.class, 
"/ssl/trusted.keystore"));
   }
 
   private File findTrustStoreJKSForPath(Properties props) {
@@ -139,12 +138,8 @@ public class RestAPIsWithSSLDUnitTest extends 
LocatorTestBase {
   }
 
   @SuppressWarnings("deprecation")
-  protected int startBridgeServer(String hostName,
-  int restServicePort,
-  final String locators,
-  final String[] regions,
-  final Properties sslProperties,
-  boolean clusterLevel) {
+  protected int startBridgeServer(String hostName, int restServicePort, final 
String locators,
+  final String[] regions, final Properties sslProperties, boolean 
clusterLevel) {
 
 Properties props = new Properties();
 props.setProperty(MCAST_PORT, "0");
@@ -189,7 +184,8 @@ public class RestAPIsWithSSLDUnitTest extends 
LocatorTestBase {
 region.put("2", new Person(102L, "Sachin", "Ramesh", "Tendulkar", new 
Date(), Gender.MALE));
 region.put("3", new Person(103L, "Saurabh", "Baburav", "Ganguly", new 
Date(), Gender.MALE));
 region.put("4", new Person(104L, "Rahul", "subrymanyam", "Dravid", new 
Date(), Gender.MALE));
-region.put("5", new Person(105L, "Jhulan", "Chidambaram", "Goswami", new 
Date(), Gender.FEMALE));
+region.put("5",
+new Person(105L, "Jhulan", "Chidambaram", "Goswami", new Date(), 
Gender.FEMALE));
 
 Map userMap = new HashMap();
 userMap.put("6", new Person(101L, "Rahul", "Rajiv", "Gndhi", new Date(), 
Gender.MALE));
@@ -198,7 +194,8 @@ public class RestAPIsWithSSLDUnitTest extends 
LocatorTestBase {
 userMap.put("9", new Person(104L, "Soniya", "Rajiv", "Gandhi", new Date(), 
Gender.FEMALE));
 userMap.put("10", new Person(104L, "Priyanka", "Robert", "Gandhi", new 
Date(), Gender.FEMALE));
 userMap.put("11", new Person(104L, "Murali", "Manohar", "Joshi", new 
Date(), Gender.MALE));
-userMap.put("12", new Person(104L, "Lalkrishna", "Parmhansh", "Advani", 
new Date(), Gender.MALE));
+userMap.put("12",
+new Person(104L, "Lalkrishna", "Parmhansh", "Advani", new Date(), 
Gender.MALE));
 userMap.put("13", new 

[42/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules/src/main/java/org/apache/geode/modules/util/CreateRegionFunction.java
--
diff --git 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/util/CreateRegionFunction.java
 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/util/CreateRegionFunction.java
index 21d11d9..4e9e9fd 100644
--- 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/util/CreateRegionFunction.java
+++ 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/util/CreateRegionFunction.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.util;
 
 import java.io.File;
@@ -54,9 +52,11 @@ public class CreateRegionFunction implements Function, 
Declarable {
 
   public static final String ID = "create-region-function";
 
-  private static final boolean DUMP_SESSION_CACHE_XML = 
Boolean.getBoolean("gemfiremodules.dumpSessionCacheXml");
+  private static final boolean DUMP_SESSION_CACHE_XML =
+  Boolean.getBoolean("gemfiremodules.dumpSessionCacheXml");
 
-  private static final String REGION_CONFIGURATION_METADATA_REGION = 
"__regionConfigurationMetadata";
+  private static final String REGION_CONFIGURATION_METADATA_REGION =
+  "__regionConfigurationMetadata";
 
   public CreateRegionFunction() {
 this(CacheFactory.getAnyInstance());
@@ -106,7 +106,8 @@ public class CreateRegionFunction implements Function, 
Declarable {
 RegionHelper.validateRegion(this.cache, configuration, region);
   } catch (Exception e) {
 if (!e.getMessage()
-
.equals(LocalizedStrings.RegionAttributesCreation_CACHELISTENERS_ARE_NOT_THE_SAME.toLocalizedString()))
 {
+
.equals(LocalizedStrings.RegionAttributesCreation_CACHELISTENERS_ARE_NOT_THE_SAME
+.toLocalizedString())) {
   this.cache.getLogger().warning(e);
 }
 status = RegionStatus.INVALID;
@@ -131,8 +132,7 @@ public class CreateRegionFunction implements Function, 
Declarable {
 return true;
   }
 
-  public void init(Properties properties) {
-  }
+  public void init(Properties properties) {}
 
   private RegionStatus createRegion(RegionConfiguration configuration) {
 // Get a distributed lock
@@ -150,7 +150,8 @@ public class CreateRegionFunction implements Function, 
Declarable {
   dml.lockInterruptibly();
   if (this.cache.getLogger().fineEnabled()) {
 end = System.currentTimeMillis();
-this.cache.getLogger().fine(this + ": Obtained lock on " + dml + " in 
" + (end - start) + " ms");
+this.cache.getLogger()
+.fine(this + ": Obtained lock on " + dml + " in " + (end - start) 
+ " ms");
   }
 
   // Attempt to get the region again after the lock has been obtained
@@ -183,7 +184,8 @@ public class CreateRegionFunction implements Function, 
Declarable {
   RegionHelper.validateRegion(this.cache, configuration, region);
 } catch (Exception e) {
   if (!e.getMessage()
-  
.equals(LocalizedStrings.RegionAttributesCreation_CACHELISTENERS_ARE_NOT_THE_SAME.toLocalizedString()))
 {
+  
.equals(LocalizedStrings.RegionAttributesCreation_CACHELISTENERS_ARE_NOT_THE_SAME
+  .toLocalizedString())) {
 

[43/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSessionManager.java
--
diff --git 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSessionManager.java
 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSessionManager.java
index 5e70c2f..edc2b7d 100644
--- 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSessionManager.java
+++ 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSessionManager.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.session.catalina;
 
 import org.apache.geode.cache.CacheFactory;
@@ -61,7 +59,8 @@ import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 
-abstract public class DeltaSessionManager extends ManagerBase implements 
Lifecycle, PropertyChangeListener, SessionManager {
+abstract public class DeltaSessionManager extends ManagerBase
+implements Lifecycle, PropertyChangeListener, SessionManager {
 
   /**
* The number of rejected sessions.
@@ -104,14 +103,15 @@ abstract public class DeltaSessionManager extends 
ManagerBase implements Lifecyc
   protected static final boolean DEFAULT_PREFER_DESERIALIZED_FORM = true;
 
   /*
-   * This *MUST* only be assigned during start/startInternal otherwise it will 
be associated
-   * with the incorrect context class loader.
+   * This *MUST* only be assigned during start/startInternal otherwise it will 
be associated with
+   * the incorrect context class loader.
*/
   protected Log LOGGER;
 
   protected String regionName = DEFAULT_REGION_NAME;
 
-  protected String regionAttributesId; // the default is different for 
client-server and peer-to-peer
+  protected String regionAttributesId; // the default is different for 
client-server and
+   // peer-to-peer
 
   protected Boolean enableLocalCache; // the default is different for 
client-server and peer-to-peer
 
@@ -131,9 +131,11 @@ abstract public class DeltaSessionManager extends 
ManagerBase implements Lifecyc
 
   private final Set sessionsToTouch;
 
-  private static final long TIMER_TASK_PERIOD = 
Long.getLong("gemfiremodules.sessionTimerTaskPeriod", 1);
+  private static final long TIMER_TASK_PERIOD =
+  Long.getLong("gemfiremodules.sessionTimerTaskPeriod", 1);
 
-  private static final long TIMER_TASK_DELAY = 
Long.getLong("gemfiremodules.sessionTimerTaskDelay", 1);
+  private static final long TIMER_TASK_DELAY =
+  Long.getLong("gemfiremodules.sessionTimerTaskDelay", 1);
 
   public DeltaSessionManager() {
 // Create the set to store sessions to be touched after get attribute 
requests
@@ -197,7 +199,7 @@ abstract public class DeltaSessionManager extends 
ManagerBase implements Lifecyc
 
   @Override
   public boolean getEnableGatewayDeltaReplication() {
-//return this.enableGatewayDeltaReplication;
+// return this.enableGatewayDeltaReplication;
 return false; // disabled
   }
 
@@ -285,11 +287,11 @@ abstract public class DeltaSessionManager extends 
ManagerBase implements Lifecyc
   }
 

[05/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java 
b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
index 6d3fd4b..b62feac 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
@@ -33,28 +31,38 @@ import org.apache.geode.pdx.PdxSerializer;
 
 
 /**
- * Factory class used to create the singleton {@link Cache cache} and connect 
to the GemFire singleton {@link DistributedSystem distributed system}. If the 
application wants to connect to GemFire as a client it should use {@link 
org.apache.geode.cache.client.ClientCacheFactory} instead.
- Once the factory has been configured using its {@link #set(String, 
String)} method you produce a {@link Cache} by calling the {@link #create()} 
method.
+ * Factory class used to create the singleton {@link Cache cache} and connect 
to the GemFire
+ * singleton {@link DistributedSystem distributed system}. If the application 
wants to connect to
+ * GemFire as a client it should use {@link 
org.apache.geode.cache.client.ClientCacheFactory}
+ * instead.
+ * 
+ * Once the factory has been configured using its {@link #set(String, String)} 
method you produce a
+ * {@link Cache} by calling the {@link #create()} method.
  * 
  * To get the existing unclosed singleton cache instance call {@link 
#getAnyInstance}.
  * 
- * If an instance of {@link DistributedSystem} already exists when this factory
- * creates a cache, that instance will be used if it is compatible with this 
factory.
-
-The following examples illustrate bootstrapping the cache using region 
shortcuts:
-
-Example 1: Create a cache and a replicate region named customers.
-
-  Cache c = new CacheFactory().create();
-  Region r = c.createRegionFactory(REPLICATE).create("customers");
-
-Example 2: Create a cache and a partition region with redundancy
-
-  Cache c = new CacheFactory().create();
-  Region r = c.createRegionFactory(PARTITION_REDUNDANT).create("customers");
-
-Example 3: Construct the  cache region declaratively in cache.xml
-
+ * If an instance of {@link DistributedSystem} already exists when this 
factory creates a cache,
+ * that instance will be used if it is compatible with this factory.
+ * 
+ * The following examples illustrate bootstrapping the cache using region 
shortcuts:
+ * 
+ * Example 1: Create a cache and a replicate region named customers.
+ * 
+ * 
+ * Cache c = new CacheFactory().create();
+ * Region r = c.createRegionFactory(REPLICATE).create("customers");
+ * 
+ * 
+ * Example 2: Create a cache and a partition region with redundancy
+ * 
+ * 
+ * Cache c = new CacheFactory().create();
+ * Region r = c.createRegionFactory(PARTITION_REDUNDANT).create("customers");
+ * 
+ * 
+ * Example 3: Construct the cache region declaratively in cache.xml
+ * 
+ * 
   !DOCTYPE cache PUBLIC
 "-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN"
 "http://www.gemstone.com/dtd/cache8_0.dtd;>
@@ -63,17 +71,19 @@ Example 3: Construct the  cache region declaratively in 
cache.xml
   !-- you can override 

[47/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/filter/SessionCachingFilter.java
--
diff --git 
a/extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/filter/SessionCachingFilter.java
 
b/extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/filter/SessionCachingFilter.java
index ed1ffab..71aa768 100644
--- 
a/extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/filter/SessionCachingFilter.java
+++ 
b/extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/filter/SessionCachingFilter.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.session.filter;
 
@@ -36,51 +34,48 @@ import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.atomic.AtomicInteger;
 
 /**
- * Primary class which orchestrates everything. This is the class which gets
- * configured in the web.xml.
+ * Primary class which orchestrates everything. This is the class which gets 
configured in the
+ * web.xml.
  */
 public class SessionCachingFilter implements Filter {
 
   /**
* Logger instance
*/
-  private static final Logger LOG =
-  LoggerFactory.getLogger(SessionCachingFilter.class.getName());
+  private static final Logger LOG = 
LoggerFactory.getLogger(SessionCachingFilter.class.getName());
 
   /**
-   * The filter configuration object we are associated with.  If this value is
-   * null, this filter instance is not currently configured.
+   * The filter configuration object we are associated with. If this value is 
null, this filter
+   * instance is not currently configured.
*/
   private FilterConfig filterConfig = null;
 
   /**
-   * Some containers will want to instantiate multiple instances of this 
filter,
-   * but we only need one SessionManager
+   * Some containers will want to instantiate multiple instances of this 
filter, but we only need
+   * one SessionManager
*/
   private static SessionManager manager = null;
 
   /**
* Can be overridden during testing.
*/
-  private static AtomicInteger started =
-  new AtomicInteger(
-  Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX + 
"override.session.manager.count", 1));
+  private static AtomicInteger started = new AtomicInteger(
+  Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX + 
"override.session.manager.count", 1));
 
-  private static int percentInactiveTimeTriggerRebuild =
-  Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX + 
"session.inactive.trigger.rebuild", 80);
+  private static int percentInactiveTimeTriggerRebuild = Integer
+  .getInteger(DistributionConfig.GEMFIRE_PREFIX + 
"session.inactive.trigger.rebuild", 80);
 
   /**
-   * This latch ensures that at least one thread/instance has fired up the
-   * session manager before any other threads complete the init method.
+   * This latch ensures that at least one thread/instance has fired up the 
session manager before
+   * any other threads complete the init method.
*/
   private static CountDownLatch startingLatch = new CountDownLatch(1);
 
   /**
-   * This request wrapper class extends the support class
-   * HttpServletRequestWrapper, which implements all the methods 

[27/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/GemFireMemberStatus.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/GemFireMemberStatus.java 
b/geode-core/src/main/java/org/apache/geode/admin/GemFireMemberStatus.java
index b785125..5b4e59e 100755
--- a/geode-core/src/main/java/org/apache/geode/admin/GemFireMemberStatus.java
+++ b/geode-core/src/main/java/org/apache/geode/admin/GemFireMemberStatus.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin;
 
@@ -39,10 +37,12 @@ import java.net.InetAddress;
 import java.util.*;
 
 /**
- * Class GemFireMemberStatus provides the status of a specific
- * GemFire member VM. This VM can be a peer, a client, a server and/or a
- * gateway.
- * @deprecated as of 7.0 use the management
 package instead
+ * Class GemFireMemberStatus provides the status of a specific 
GemFire member VM. This
+ * VM can be a peer, a client, a server and/or a gateway.
+ * 
+ * @deprecated as of 7.0 use the management
+ * package instead
  */
 public class GemFireMemberStatus implements Serializable {
   private static final long serialVersionUID = 3389997790525991310L;
@@ -69,7 +69,7 @@ public class GemFireMemberStatus implements Serializable {
 
   protected boolean _isPrimaryGatewayHub;
 
-  protected Object/*GatewayHubStatus*/ _gatewayHubStatus;
+  protected Object/* GatewayHubStatus */ _gatewayHubStatus;
 
   protected boolean _isConnected;
   protected Serializable _memberId;
@@ -96,11 +96,11 @@ public class GemFireMemberStatus implements Serializable {
 
   protected long _maximumHeapSize;
   protected long _freeHeapSize;
-  
+
   protected long upTime = -1;
 
   protected transient final Cache cache;
-  
+
   public GemFireMemberStatus() {
 this(null);
   }
@@ -124,6 +124,7 @@ public class GemFireMemberStatus implements Serializable {
 
   /**
* Returns whether this member is a client to a cache server
+   * 
* @return whether this member is a client to a cache server
*/
   public boolean getIsClient() {
@@ -132,8 +133,8 @@ public class GemFireMemberStatus implements Serializable {
 
   /**
* Sets whether this member is a client to a cache server
-   * @param isClient Boolean defining whether this member is a client to a
-   * cache server
+   * 
+   * @param isClient Boolean defining whether this member is a client to a 
cache server
*/
   protected void setIsClient(boolean isClient) {
 this._isClient = isClient;
@@ -141,6 +142,7 @@ public class GemFireMemberStatus implements Serializable {
 
   /**
* Returns whether this member is a cache server
+   * 
* @return whether this member is a cache server
*/
   public boolean getIsServer() {
@@ -149,6 +151,7 @@ public class GemFireMemberStatus implements Serializable {
 
   /**
* Sets whether this member is a cache server
+   * 
* @param isServer Boolean defining whether this member is a cache server
*/
   protected void setIsServer(boolean isServer) {
@@ -156,15 +159,16 @@ public class GemFireMemberStatus implements Serializable {
   }
 
   public int getServerPort() {
- return this._serverPort;
+return this._serverPort;
   }
-  
+
   protected void setServerPort(int port) {
- this._serverPort = port;
+

[37/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsQueryAndFEJUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsQueryAndFEJUnitTest.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsQueryAndFEJUnitTest.java
index 390f12d..5397b95 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsQueryAndFEJUnitTest.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/RestAPIsQueryAndFEJUnitTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.rest.internal.web.controllers;
 
@@ -76,611 +74,252 @@ public class RestAPIsQueryAndFEJUnitTest {
   private Cache c;
 
   private String hostName;
-  
+
   private String baseURL;
-  
+
   private int restServicePort;
-  
+
   private final String CUSTOMER_REGION = "customers";
-  
+
   private final String ITEM_REGION = "items";
   private final String ORDER_REGION = "orders";
   private final String PRIMITIVE_KV_STORE_REGION = "primitiveKVStore";
   private final String UNKNOWN_REGION = "unknown_region";
   private final String EMPTY_REGION = "empty_region";
-  
+
   private Map queryResultByIndex;
- 
+
   private final String ORDER1_AS_JSON = "{"
   + "\"@type\": \"org.apache.geode.rest.internal.web.controllers.Order\","
   + "\"purchaseOrderNo\": 111," + "\"customerId\": 101,"
-  + "\"description\": \"Purchase order for company - A\"," + 
"\"orderDate\": \"01/10/2014\"," + "\"deliveryDate\": \"01/20/2014\","
-  + "\"contact\": \"Nilkanthkumar N Patel\","
+  + "\"description\": \"Purchase order for company - A\"," + 
"\"orderDate\": \"01/10/2014\","
+  + "\"deliveryDate\": \"01/20/2014\"," + "\"contact\": \"Nilkanthkumar N 
Patel\","
   + "\"email\": \"npa...@pivotal.io\"," + "\"phone\": \"020-2048096\"," + 
"\"totalPrice\": 205,"
-  + "\"items\":" + "[" + "{" + "\"itemNo\": 1,"
-  + "\"description\": \"Product-1\"," + "\"quantity\": 5,"
-  + "\"unitPrice\": 10," + "\"totalPrice\": 50" + "}," + "{"
-  + "\"itemNo\": 1," + "\"description\": \"Product-2\","
-  + "\"quantity\": 10," + "\"unitPrice\": 15.5," + "\"totalPrice\": 155"
-  + "}" + "]" + "}";
-  
+  + "\"items\":" + "[" + "{" + "\"itemNo\": 1," + "\"description\": 
\"Product-1\","
+  + "\"quantity\": 5," + "\"unitPrice\": 10," + "\"totalPrice\": 50" + 
"}," + "{"
+  + "\"itemNo\": 1," + "\"description\": \"Product-2\"," + "\"quantity\": 
10,"
+  + "\"unitPrice\": 15.5," + "\"totalPrice\": 155" + "}" + "]" + "}";
+
   private final String MALFORMED_JSON = "{"
   + "\"@type\" \"org.apache.geode.rest.internal.web.controllers.Order\","
   + "\"purchaseOrderNo\": 111," + "\"customerId\": 101,"
-  + "\"description\": \"Purchase order for company - A\"," + 
"\"orderDate\": \"01/10/2014\"," + "\"deliveryDate\": \"01/20/2014\","
-  + "\"contact\": \"Nilkanthkumar N Patel\","
+  + "\"description\": \"Purchase order for company - A\"," + 
"\"orderDate\": \"01/10/2014\","
+  + "\"deliveryDate\": \"01/20/2014\"," + "\"contact\": \"Nilkanthkumar N 
Patel\","
   + "\"email\": 

[45/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java
--
diff --git 
a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java
 
b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java
index e2f7f51..cb0465d 100644
--- 
a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java
+++ 
b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java
@@ -1,37 +1,33 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.session.junit;
 
 /**
- * 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
+ * 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.
+ * 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.
  */
 
 import org.junit.After;
@@ -57,8 +53,7 @@ import java.util.StringTokenizer;
 import java.util.logging.Logger;
 
 public class PerTestClassLoaderRunner extends NamedRunner {
-  private static final Logger LOGGER = Logger
-  .getLogger(PerTestClassLoaderRunner.class.getName());
+  private static final Logger LOGGER = 
Logger.getLogger(PerTestClassLoaderRunner.class.getName());
 
   // The classpath is needed because the custom class loader looks there to 
find the classes.
   private static String classPath;
@@ -93,8 +88,7 @@ public class PerTestClassLoaderRunner extends NamedRunner {
*
* @throws ClassNotFoundException the class not found exception
*/
-  private void loadClassesWithCustomClassLoader()
-  throws ClassNotFoundException {
+  private void loadClassesWithCustomClassLoader() throws 
ClassNotFoundException {
 String classPath = System.getProperty("java.class.path");
 StringTokenizer st = new StringTokenizer(classPath, 

[04/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java 
b/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
index 318fed0..ae4dcb5 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
@@ -1,42 +1,41 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
 
-/** A user-defined object defined in the {@link RegionAttributes} that is
- * called synchronously before a region or entry in the cache is
- * modified. The typical use for a CacheWriter is to update a 
database.
- * Application writers should implement these methods to execute
+/**
+ * A user-defined object defined in the {@link RegionAttributes} that is 
called synchronously before
+ * a region or entry in the cache is modified. The typical use for a 
CacheWriter is to
+ * update a database. Application writers should implement these methods to 
execute
  * application-specific behavior before the cache is modified.
  *
- * Before the region is updated via a put, create, or destroy operation,
- * GemFire will call a CacheWriter that is installed anywhere in 
any
- * participating cache for that region, preferring a local 
CacheWriter
- * if there is one. Usually there will be only one CacheWriter in
- * the distributed system. If there are multiple CacheWriters
- * available in the distributed system, the GemFire
- * implementation always prefers one that is stored locally, or else picks one
- * arbitrarily; in any case only one CacheWriter will be invoked.
+ * 
+ * Before the region is updated via a put, create, or destroy operation, 
GemFire will call a
+ * CacheWriter that is installed anywhere in any participating 
cache for that region,
+ * preferring a local CacheWriter if there is one. Usually there 
will be only one
+ * CacheWriter in the distributed system. If there are multiple
+ * CacheWriters available in the distributed system, the GemFire 
implementation always
+ * prefers one that is stored locally, or else picks one arbitrarily; in any 
case only one
+ * CacheWriter will be invoked.
  *
- * The CacheWriter is capable of aborting the update to the 
cache by throwing
- * a CacheWriterException. This exception or any runtime exception
- * thrown by the CacheWriter will abort the operation and the
- * exception will be propagated to the initiator of the operation, regardless
- * of whether the initiator is in the same VM as the CacheWriter.
+ * 
+ * The CacheWriter is capable of aborting the update to the cache 
by throwing a
+ * CacheWriterException. This exception or any runtime exception 
thrown by the
+ * CacheWriter will abort the operation and the exception will be 
propagated to the
+ * initiator of the operation, regardless of whether the initiator is in the 
same VM as the
+ * CacheWriter.
  *
  *
  * @see AttributesFactory#setCacheWriter
@@ -44,107 +43,88 @@ package org.apache.geode.cache;
  * @see AttributesMutator#setCacheWriter
  * @since GemFire 3.0
  */
-public interface CacheWriter extends CacheCallback {
+public interface CacheWriter extends CacheCallback {
 
   /**
-   * Called before an entry is updated. The 

[28/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/CacheServerConfig.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/CacheServerConfig.java 
b/geode-core/src/main/java/org/apache/geode/admin/CacheServerConfig.java
index fc4ce0f..389d6bc 100644
--- a/geode-core/src/main/java/org/apache/geode/admin/CacheServerConfig.java
+++ b/geode-core/src/main/java/org/apache/geode/admin/CacheServerConfig.java
@@ -1,24 +1,22 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin;
 
 /**
- * Configuration for a GemFire cache server that is managed by the
- * administration API.  The cache server may or may not be running.
+ * Configuration for a GemFire cache server that is managed by the 
administration API. The cache
+ * server may or may not be running.
  *
  * @see AdminDistributedSystem#addCacheServer()
  *
@@ -28,27 +26,25 @@ package org.apache.geode.admin;
 @Deprecated
 public interface CacheServerConfig extends CacheVmConfig {
   /**
-   * Returns the cache.xml declarative caching
-   * initialization file used to configure this cache server VM.  By
-   * default, a cache server VM is started without an XML file.
+   * Returns the cache.xml declarative caching initialization 
file used to configure
+   * this cache server VM. By default, a cache server VM is started without an 
XML file.
*/
   public String getCacheXMLFile();
 
   /**
-   * Sets the cache.xml declarative caching
-   * initialization file used to configure this cache server VM.
+   * Sets the cache.xml declarative caching initialization file 
used to configure this
+   * cache server VM.
*/
   public void setCacheXMLFile(String cacheXml);
 
   /**
-   * Returns the location(s) of user classes (such as cache loaders)
-   * required by the cache server VM.
+   * Returns the location(s) of user classes (such as cache loaders) required 
by the cache server
+   * VM.
*/
   public String getClassPath();
 
   /**
-   * Sets the location(s) of user classes (such as cache loaders)
-   * required by the cache server VM.
+   * Sets the location(s) of user classes (such as cache loaders) required by 
the cache server VM.
*/
   public void setClassPath(String classpath);
 }

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/CacheVm.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/admin/CacheVm.java 
b/geode-core/src/main/java/org/apache/geode/admin/CacheVm.java
index 5bfeddc..30d8701 100755
--- a/geode-core/src/main/java/org/apache/geode/admin/CacheVm.java
+++ b/geode-core/src/main/java/org/apache/geode/admin/CacheVm.java
@@ -1,33 +1,31 @@
 /*
- * 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+ * agreements. See the NOTICE file 

[23/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreHelper.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreHelper.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreHelper.java
index 0d68f02..551aaa1 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreHelper.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreHelper.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -31,15 +29,15 @@ public class BackupDataStoreHelper {
   public static String LOCK_SERVICE_NAME = 
BackupDataStoreHelper.class.getSimpleName();
 
   private static String LOCK_NAME = LOCK_SERVICE_NAME + "_token";
-  
+
   private static Object LOCK_SYNC = new Object();
 
   @SuppressWarnings("rawtypes")
-  public static BackupDataStoreResult backupAllMembers(
-  DM dm, Set recipients, File targetDir, File baselineDir) {
+  public static BackupDataStoreResult backupAllMembers(DM dm, Set recipients, 
File targetDir,
+  File baselineDir) {
 FlushToDiskRequest.send(dm, recipients);
 
-boolean abort= true;
+boolean abort = true;
 Map successfulMembers;
 Map existingDataStores;
 try {
@@ -50,7 +48,7 @@ public class BackupDataStoreHelper {
 }
 return new BackupDataStoreResult(existingDataStores, successfulMembers);
   }
-  
+
   private static DistributedLockService getLockService(DM dm) {
 DistributedLockService dls = 
DistributedLockService.getServiceNamed(LOCK_SERVICE_NAME);
 if (dls == null) {
@@ -65,11 +63,11 @@ public class BackupDataStoreHelper {
 Assert.assertTrue(dls != null);
 return dls;
   }
-  
+
   public static boolean obtainLock(DM dm) {
 return getLockService(dm).lock(LOCK_NAME, 0, -1);
   }
-  
+
   public static void releaseLock(DM dm) {
 getLockService(dm).unlock(LOCK_NAME);
   }

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreResult.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreResult.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreResult.java
index b2a201d..eae674b 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreResult.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/BackupDataStoreResult.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 

[12/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java
index 81f543d..d3f4ab2 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java
@@ -1,9 +1,8 @@
 /*
- * Copyright (C) MX4J.
- * All rights reserved.
+ * Copyright (C) MX4J. All rights reserved.
  *
- * This software is distributed under the terms of the MX4J License version 
1.0.
- * See the terms of the MX4J License in the documentation provided with this 
software.
+ * This software is distributed under the terms of the MX4J License version 
1.0. See the terms of
+ * the MX4J License in the documentation provided with this software.
  */
 
 package org.apache.geode.admin.jmx.internal;
@@ -64,1176 +63,1170 @@ import org.apache.geode.internal.i18n.LocalizedStrings;
  * @author mailto:biorn_stee...@users.sourceforge.net;>Simone 
Bordet
  * @version $Revision: 1.14 $
  */
-public class MX4JModelMBean implements ModelMBean, MBeanRegistration, 
NotificationEmitter
-{
-   private static final String OBJECT_RESOURCE_TYPE = "ObjectReference";
-
-   private static final int ALWAYS_STALE = 1;
-   private static final int NEVER_STALE = 2;
-   private static final int STALE = 3;
-   private static final int NOT_STALE = 4;
-
-   private static final int PERSIST_NEVER = -1;
-   private static final int PERSIST_ON_TIMER = -2;
-   private static final int PERSIST_ON_UPDATE = -3;
-   private static final int PERSIST_NO_MORE_OFTEN_THAN = -4;
-
-   private MBeanServer m_mbeanServer;
-   private Object m_managedResource;
-   private boolean m_canBeRegistered;
-   private ModelMBeanInfo m_modelMBeanInfo;
-   private NotificationBroadcasterSupport m_attributeChangeBroadcaster = new 
NotificationBroadcasterSupport();
-   private NotificationBroadcasterSupport m_generalBroadcaster = new 
NotificationBroadcasterSupport();
-
-   public MX4JModelMBean() throws MBeanException, RuntimeOperationsException
-   {
-  try
-  {
- load();
+public class MX4JModelMBean implements ModelMBean, MBeanRegistration, 
NotificationEmitter {
+  private static final String OBJECT_RESOURCE_TYPE = "ObjectReference";
+
+  private static final int ALWAYS_STALE = 1;
+  private static final int NEVER_STALE = 2;
+  private static final int STALE = 3;
+  private static final int NOT_STALE = 4;
+
+  private static final int PERSIST_NEVER = -1;
+  private static final int PERSIST_ON_TIMER = -2;
+  private static final int PERSIST_ON_UPDATE = -3;
+  private static final int PERSIST_NO_MORE_OFTEN_THAN = -4;
+
+  private MBeanServer m_mbeanServer;
+  private Object m_managedResource;
+  private boolean m_canBeRegistered;
+  private ModelMBeanInfo m_modelMBeanInfo;
+  private NotificationBroadcasterSupport m_attributeChangeBroadcaster =
+  new NotificationBroadcasterSupport();
+  private NotificationBroadcasterSupport m_generalBroadcaster =
+  new NotificationBroadcasterSupport();
+
+  public MX4JModelMBean() throws MBeanException, RuntimeOperationsException {
+try {
+  load();
+} catch (Exception x) {
+  Logger logger = getLogger();
+  
logger.warn(LocalizedStrings.MX4JModelMBean_CANNOT_RESTORE_PREVIOUSLY_SAVED_STATUS
+  .toLocalizedString(), x);
+}
+  }
+
+  public MX4JModelMBean(ModelMBeanInfo info) throws MBeanException, 
RuntimeOperationsException {
+if (info == null)
+  throw new RuntimeOperationsException(new IllegalArgumentException(
+  LocalizedStrings.MX4JModelMBean_MODELMBEANINFO_PARAMETER_CANT_BE_NULL
+  .toLocalizedString()));
+else
+  setModelMBeanInfo(info);
+  }
+
+  private Logger getLogger() {
+return Log.getLogger(getClass().getName());
+  }
+
+  public ObjectName preRegister(MBeanServer server, ObjectName name) throws 
Exception {
+if (m_canBeRegistered) {
+  m_mbeanServer = server;
+  return name;
+} else {
+  throw new MBeanRegistrationException(new IllegalStateException(
+  
LocalizedStrings.MX4JModelMBean_MODELMBEAN_CANNOT_BE_REGISTERED_UNTIL_SETMODELMBEANINFO_HAS_BEEN_CALLED
+  .toLocalizedString()));
+}
+  }
+
+  public void postRegister(Boolean registrationDone) {
+if (!registrationDone.booleanValue())
+  clear();
+  }
+
+  public void preDeregister() throws Exception {}
+
+  public void postDeregister() {
+clear();
+  }
+
+  private void clear() {
+m_mbeanServer = null;
+m_managedResource = null;
+m_modelMBeanInfo = null;
+m_generalBroadcaster = null;
+m_attributeChangeBroadcaster = null;
+// PENDING: also remove generic listeners, attribute change 

[48/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionManager.java
--
diff --git 
a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionManager.java
 
b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionManager.java
index f6378be..20cfeca 100644
--- 
a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionManager.java
+++ 
b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionManager.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.session.internal.filter;
 
@@ -52,8 +50,8 @@ import java.util.Map;
 import java.util.UUID;
 
 /**
- * This class implements the session management using a Gemfire 
distributedCache
- * as a persistent store for the session objects
+ * This class implements the session management using a Gemfire 
distributedCache as a persistent
+ * store for the session objects
  */
 public class GemfireSessionManager implements SessionManager {
 
@@ -89,16 +87,15 @@ public class GemfireSessionManager implements 
SessionManager {
   private boolean isStopping = false;
 
   /**
-   * Boolean indicating whether this manager is defined in the same context 
(war
-   * / classloader) as the filter.
+   * Boolean indicating whether this manager is defined in the same context 
(war / classloader) as
+   * the filter.
*/
   private boolean isolated = false;
 
   /**
* Map of wrapping GemFire session id to native session id
*/
-  private Map nativeSessionMap =
-  new HashMap();
+  private Map nativeSessionMap = new HashMap();
 
   /**
* MBean for statistics
@@ -106,9 +103,8 @@ public class GemfireSessionManager implements 
SessionManager {
   private SessionStatistics mbean;
 
   /**
-   * This CL is used to compare against the class loader of attributes getting
-   * pulled out of the cache. This variable should be set to the CL of the
-   * filter running everything.
+   * This CL is used to compare against the class loader of attributes getting 
pulled out of the
+   * cache. This variable should be set to the CL of the filter running 
everything.
*/
   private ClassLoader referenceClassLoader;
 
@@ -123,21 +119,22 @@ public class GemfireSessionManager implements 
SessionManager {
* Set up properties with default values
*/
   private TypeAwareMap properties =
-  new TypeAwareMap(CacheProperty.class) {{
-put(CacheProperty.REGION_NAME, RegionHelper.NAME + "_sessions");
-put(CacheProperty.ENABLE_GATEWAY_DELTA_REPLICATION, Boolean.FALSE);
-put(CacheProperty.ENABLE_GATEWAY_REPLICATION, Boolean.FALSE);
-put(CacheProperty.ENABLE_DEBUG_LISTENER, Boolean.FALSE);
-put(CacheProperty.STATISTICS_NAME, "gemfire_statistics");
-put(CacheProperty.SESSION_DELTA_POLICY, "delta_queued");
-put(CacheProperty.REPLICATION_TRIGGER, "set");
-/**
- * For 

[55/55] [abbrv] incubator-geode git commit: Adding support for running jmh benchmarks to gradle and adding a CompactRangeIndexBenchmark.

2016-10-24 Thread upthewaterspout
Adding support for running jmh benchmarks to gradle and adding a 
CompactRangeIndexBenchmark.


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

Branch: refs/heads/feature/GEODE-1985
Commit: 45513045c14751688129d5635963c157f5886832
Parents: d6afb70
Author: Dan Smith 
Authored: Wed Oct 19 10:16:31 2016 -0700
Committer: Dan Smith 
Committed: Mon Oct 24 11:12:48 2016 -0700

--
 build.gradle|   2 +
 .../index/CompactRangeIndexBenchmark.java   | 105 +++
 gradle/jmh.gradle   |   6 ++
 3 files changed, 113 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/45513045/build.gradle
--
diff --git a/build.gradle b/build.gradle
index a734e05..0472064 100755
--- a/build.gradle
+++ b/build.gradle
@@ -25,6 +25,7 @@ buildscript {
 classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
 classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1'
 classpath "com.diffplug.gradle.spotless:spotless:2.2.0"
+classpath "me.champeau.gradle:jmh-gradle-plugin:0.3.1"
   }
 }
 
@@ -81,6 +82,7 @@ apply from: "${scriptDir}/code-analysis.gradle"
 apply from: "${scriptDir}/sonar.gradle"
 apply from: "${scriptDir}/ide.gradle"
 apply from: "${scriptDir}/rat.gradle"
+apply from: "${scriptDir}/jmh.gradle"
 
 subprojects {
   // Make sure clean task for rootProject runs last

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/45513045/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/index/CompactRangeIndexBenchmark.java
--
diff --git 
a/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/index/CompactRangeIndexBenchmark.java
 
b/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/index/CompactRangeIndexBenchmark.java
new file mode 100644
index 000..545353d
--- /dev/null
+++ 
b/geode-core/src/jmh/java/org/apache/geode/cache/query/internal/index/CompactRangeIndexBenchmark.java
@@ -0,0 +1,105 @@
+/*
+ * 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.geode.cache.query.internal.index;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.List;
+import java.util.stream.IntStream;
+
+import org.apache.geode.cache.Cache;
+import org.apache.geode.cache.CacheFactory;
+import org.apache.geode.cache.Region;
+import org.apache.geode.cache.RegionShortcut;
+import org.apache.geode.cache.query.FunctionDomainException;
+import org.apache.geode.cache.query.IndexExistsException;
+import org.apache.geode.cache.query.IndexNameConflictException;
+import org.apache.geode.cache.query.NameResolutionException;
+import org.apache.geode.cache.query.Query;
+import org.apache.geode.cache.query.QueryInvocationTargetException;
+import org.apache.geode.cache.query.RegionNotFoundException;
+import org.apache.geode.cache.query.SelectResults;
+import org.apache.geode.cache.query.TypeMismatchException;
+import org.openjdk.jmh.annotations.Benchmark;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Scope;
+import org.openjdk.jmh.annotations.Setup;
+import org.openjdk.jmh.annotations.State;
+import org.openjdk.jmh.annotations.Warmup;
+
+@Fork(3)
+public class CompactRangeIndexBenchmark {
+
+  @State(Scope.Benchmark)
+  public static class CacheState {
+private Region region;
+private Query query;
+
+public CacheState() {}
+
+@Setup
+public void setup() {
+  Cache cache = new CacheFactory().set("mcast-port", "0").set("locators", 
"").create();
+
+  region = 
cache.createRegionFactory(RegionShortcut.REPLICATE).create("region");
+  try {
+

[21/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java
index 20871d8..59e8386 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -35,35 +33,28 @@ import java.util.Properties;
 import static org.apache.geode.distributed.ConfigurationProperties.*;
 
 /**
- * Implements the actual administration (starting, stopping, etc.) of
- * GemFire {@link ManagedEntity}s.  It {@link Runtime#exec(java.lang.String) 
executes}
- * commands to administer the entities based on information provided
- * by the {@link InternalManagedEntity} object.  Note that it does not
- * use SystemAdmin to manage "local" entities; it always
- * execs the scripts.
+ * Implements the actual administration (starting, stopping, etc.) of GemFire
+ * {@link ManagedEntity}s. It {@link Runtime#exec(java.lang.String) executes} 
commands to administer
+ * the entities based on information provided by the {@link 
InternalManagedEntity} object. Note that
+ * it does not use SystemAdmin to manage "local" entities; it 
always execs the scripts.
  *
  * 
  *
- * This class is a refactoring of Systemcontroller,
- * RemoteCommand, and LocatorRemoteCommand.
+ * This class is a refactoring of Systemcontroller, 
RemoteCommand, and
+ * LocatorRemoteCommand.
  *
  * @since GemFire 4.0
  */
 class EnabledManagedEntityController implements ManagedEntityController {
   private static final Logger logger = LogService.getLogger();
 
-//  /** A lock to ensure that only entity is managed at a time.  See bug
-//   * 31374. */
-//  private static Object startStopLock = new Object();
+  // /** A lock to ensure that only entity is managed at a time. See bug
+  // * 31374. */
+  // private static Object startStopLock = new Object();
 
   /** Known strings found in output indicating error. */
-  private static final String[] ERROR_OUTPUTS = new String[] {
-"No such file or directory",
-"The system cannot find the file specified.",
-"Access is denied.",
-"cannot open",
-"ERROR"
-  };
+  private static final String[] ERROR_OUTPUTS = new String[] {"No such file or 
directory",
+  "The system cannot find the file specified.", "Access is denied.", 
"cannot open", "ERROR"};
 
   /** Token in command prefix to be replaced with actual HOST */
   private static final String HOST = "{HOST}";
@@ -71,39 +62,41 @@ class EnabledManagedEntityController implements 
ManagedEntityController {
   /** Token in command prefix to be replaced with actual execution CMD */
   private static final String CMD = "{CMD}";
 
-  //  Instance Fields  //
+  // Instance Fields //
 
-  /** The thread group in which threads launched by this system
-   * controller reside. */
+  /**
+   * The thread group in which threads launched by 

[46/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/CommonTests.java
--
diff --git 
a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/CommonTests.java
 
b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/CommonTests.java
index c1677a1..c31afc6 100644
--- 
a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/CommonTests.java
+++ 
b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/CommonTests.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.session.internal.filter;
 
 import static org.junit.Assert.*;
@@ -42,8 +40,8 @@ import org.junit.Ignore;
 import org.junit.Test;
 
 /**
- * This servlet tests the effects of the downstream SessionCachingFilter 
filter.
- * When these tests are performed, the filter would already have taken effect.
+ * This servlet tests the effects of the downstream SessionCachingFilter 
filter. When these tests
+ * are performed, the filter would already have taken effect.
  */
 public abstract class CommonTests extends BasicServletTestCaseAdapter {
 
@@ -52,10 +50,8 @@ public abstract class CommonTests extends 
BasicServletTestCaseAdapter {
   @Test
   public void testGetSession1() throws Exception {
 doFilter();
-HttpSession session1 =
-((HttpServletRequest) getFilteredRequest()).getSession();
-HttpSession session2 =
-((HttpServletRequest) getFilteredRequest()).getSession();
+HttpSession session1 = ((HttpServletRequest) 
getFilteredRequest()).getSession();
+HttpSession session2 = ((HttpServletRequest) 
getFilteredRequest()).getSession();
 
 assertSame("Session should be the same", session1, session2);
   }
@@ -84,8 +80,7 @@ public abstract class CommonTests extends 
BasicServletTestCaseAdapter {
 getFilteredRequest().setAttribute("foo", "bar");
 
 assertEquals("bar", getFilteredRequest().getAttribute("foo"));
-assertNull("Unknown attribute should be null",
-getFilteredRequest().getAttribute("baz"));
+assertNull("Unknown attribute should be null", 
getFilteredRequest().getAttribute("baz"));
   }
 
   @Test
@@ -101,8 +96,7 @@ public abstract class CommonTests extends 
BasicServletTestCaseAdapter {
 doFilter();
 
 assertEquals("bar", getFilteredRequest().getAttribute("foo"));
-assertNull("Unknown attribute should be null",
-getFilteredRequest().getAttribute("baz"));
+assertNull("Unknown attribute should be null", 
getFilteredRequest().getAttribute("baz"));
   }
 
   @Test
@@ -166,8 +160,7 @@ public abstract class CommonTests extends 
BasicServletTestCaseAdapter {
 
 
   /**
-   * Test that various methods throw the appropriate exception when the 
session is
-   * invalid.
+   * Test that various methods throw the appropriate exception when the 
session is invalid.
*/
   @Test
   public void testInvalidate1() throws Exception {
@@ -342,7 +335,9 @@ public abstract class CommonTests extends 
BasicServletTestCaseAdapter {
 doFilter();
 
 // Ugh
-MockHttpSession session = (MockHttpSession) ((GemfireHttpSession) 
((HttpServletRequest) 

[10/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java
index ac75f38..40a514a 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -38,215 +36,208 @@ import java.util.*;
 import java.util.concurrent.atomic.AtomicLong;
 
 /**
- * This class uses the JMX Attributes/Operations that use (return/throw) 
- * GemFire types. This is the single MBean accessible with ObjectName string
- * {@link MemberInfoWithStatsMBean#MBEAN_NAME}}. This MBean can be used to 
- * retrieve the all member details as plain java types.
+ * This class uses the JMX Attributes/Operations that use (return/throw) 
GemFire types. This is the
+ * single MBean accessible with ObjectName string {@link 
MemberInfoWithStatsMBean#MBEAN_NAME}}. This
+ * MBean can be used to retrieve the all member details as plain java types.
  * 
- * This MBean also acts as a Notification Hub for all the Notifications that 
are 
- * defined for Admin Distributed System. 
+ * This MBean also acts as a Notification Hub for all the Notifications that 
are defined for Admin
+ * Distributed System.
  * 
  * 
  * @since GemFire 6.5
  */
-public class MemberInfoWithStatsMBean extends AbstractDynamicMBean 
- implements NotificationEmitter {
+public class MemberInfoWithStatsMBean extends AbstractDynamicMBean implements 
NotificationEmitter {
   private static final Logger logger = LogService.getLogger();
-  
+
   /* constants defining max no of attributes/operations/notifications */
-  private static final int MAX_ATTRIBUTES_COUNT= 3;
-  private static final int MAX_OPERATIONS_COUNT= 3;
+  private static final int MAX_ATTRIBUTES_COUNT = 3;
+  private static final int MAX_OPERATIONS_COUNT = 3;
   private static final int MAX_NOTIFICATIONS_COUNT = 9;
-  
+
   private static final String NOT_AVAILABLE_STR = "N/A";
   private static final String NOT_AVAILABLE = null;
   private static final Number NOT_AVAILABLE_NUMBER = null;
 
-  /* String constant used for a region that is used on admin side just as a 
root 
-   * for rootRegions defined on the member */
+  /*
+   * String constant used for a region that is used on admin side just as a 
root for rootRegions
+   * defined on the member
+   */
   private static final String PLACE_HOLDER_ROOT_REGION = "/Root/";
 
   /* String that are used to form QueryExp/ObjectName for querying MBeanServer 
*/
-  private static final String REGION_QUERY_EXPRESSION = 
"*GemFire.Cache*:*,owner={0},type=Region";  
-  private static final String STATS_QUERY_EXPRESSION  = 
"*GemFire.Statistic*:*,source={0},name={1}";
-  
+  private static final String REGION_QUERY_EXPRESSION = 
"*GemFire.Cache*:*,owner={0},type=Region";
+  private static final String STATS_QUERY_EXPRESSION = 
"*GemFire.Statistic*:*,source={0},name={1}";
+
   /** mbean name 

[29/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystem.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystem.java 
b/geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystem.java
index 982c4f1..cd4dc7e 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystem.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/AdminDistributedSystem.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin;
 
@@ -28,87 +26,81 @@ import java.util.Set;
 import java.util.UUID;
 
 /**
- * Administrative interface for managing an entire GemFire distributed
- * system.  This interface should not be confused with {@link
- * org.apache.geode.distributed.DistributedSystem
- * DistributedSystem} that represents a connection to a GemFire
- * distributed system.
+ * Administrative interface for managing an entire GemFire distributed system. 
This interface should
+ * not be confused with {@link org.apache.geode.distributed.DistributedSystem 
DistributedSystem}
+ * that represents a connection to a GemFire distributed system.
  *
  * @see AdminDistributedSystemFactory
  *
- * @since GemFire 3.5
- * @deprecated as of 7.0 use the management
 package instead
+ * @since GemFire 3.5
+ * @deprecated as of 7.0 use the management
+ * package instead
  */
 public interface AdminDistributedSystem {
-   
+
   /**
* Retrieves the unique id for this system.
*/
   public String getId();
-  
+
   /**
-   * Retrieves display friendly name for this system.  If this administrative
-   * VM defined an optional name for its connection to the distributed system,
-   * that name will be returned.  Otherwise the returned value will be {@link
-   * org.apache.geode.admin.AdminDistributedSystem#getId}.
+   * Retrieves display friendly name for this system. If this administrative 
VM defined an optional
+   * name for its connection to the distributed system, that name will be 
returned. Otherwise the
+   * returned value will be {@link 
org.apache.geode.admin.AdminDistributedSystem#getId}.
*/
   public String getName();
-  
+
   /**
-   * Retrieves the remote command and formatting this system should use to 
-   * access and/or manipulate resources on remote machines.
+   * Retrieves the remote command and formatting this system should use to 
access and/or manipulate
+   * resources on remote machines.
*/
   public String getRemoteCommand();
 
   /**
-   * Sets the remote command and formatting this system should use to access 
-   * and/or manipulate resources on remote machines.
+   * Sets the remote command and formatting this system should use to access 
and/or manipulate
+   * resources on remote machines.
*/
   public void setRemoteCommand(String remoteCommand);
 
   /**
-   * Sets the lowest level of alert that should be delivered to the
-   * {@link AlertListener}s registered on this
-   * AdminDistributedSystem.  The default level is {@link
-   * AlertLevel#WARNING}. 
+   * Sets the lowest level of alert that should be delivered to the {@link 
AlertListener}s
+   * registered on this AdminDistributedSystem. The default level 
is
+   * {@link AlertLevel#WARNING}.
*/
   public void 

[52/55] [abbrv] incubator-geode git commit: GEODE-2011 Client code which clears pdx registry needs synchronization

2016-10-24 Thread upthewaterspout
GEODE-2011 Client code which clears pdx registry needs synchronization

We clear pdx registry in client when we re-connect to cluster. But
during that time other thread may end up using old registry while other
thread is clearing this. Thus we need to synchronize that. In current
code it happens through listener events and I modified that notification
to synchronize this.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6eb0fd39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6eb0fd39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6eb0fd39

Branch: refs/heads/feature/GEODE-1985
Commit: 6eb0fd398e9bff7798939df6781aa52979ef9693
Parents: 8bf3957
Author: Hitesh Khamesra 
Authored: Fri Oct 21 15:52:00 2016 -0700
Committer: Hitesh Khamesra 
Committed: Fri Oct 21 15:52:00 2016 -0700

--
 .../cache/client/internal/EndpointManagerImpl.java   | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6eb0fd39/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java
 
b/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java
index f594278..ec8a818 100644
--- 
a/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java
@@ -77,6 +77,7 @@ public class EndpointManagerImpl implements EndpointManager {
   Map endpointMapTemp =
   new HashMap(endpointMap);
   endpoint = new Endpoint(this, ds, server, stats, memberId);
+  listener.clearPdxRegistry(endpoint);
   endpointMapTemp.put(server, endpoint);
   endpointMap = Collections.unmodifiableMap(endpointMapTemp);
   addedEndpoint = true;
@@ -291,9 +292,21 @@ public class EndpointManagerImpl implements 
EndpointManager {
   // logger.warn("HIGHUP:JOIN:"+endpoint.getLocation());
   for (Iterator itr = endpointListeners.iterator(); 
itr.hasNext();) {
 EndpointManager.EndpointListener listener = itr.next();
-listener.endpointNowInUse(endpoint);
+if (!(listener instanceof PdxRegistryRecoveryListener)) {
+  listener.endpointNowInUse(endpoint);
+}
+  }
+}
+
+public void clearPdxRegistry(Endpoint endpoint) {
+  for (Iterator itr = endpointListeners.iterator(); 
itr.hasNext();) {
+EndpointManager.EndpointListener listener = itr.next();
+if (listener instanceof PdxRegistryRecoveryListener) {
+  listener.endpointNowInUse(endpoint);
+}
   }
 }
+
   }
 
 



[06/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java 
b/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
index d3aaf9c..51301bc 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
@@ -1,32 +1,28 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
 
 
 /**
- * Supports modification of certain region attributes after the region has been
- * created. It is recommended that the attributes be completely initialized
- * using an {@link AttributesFactory} before creating the region instead of
- * using an AttributesMutator after region creation. This will
- * avoid a potential performance penalty due to the additional
- * network traffic.
- *
- * The setter methods all return the previous value of the attribute. 
+ * Supports modification of certain region attributes after the region has 
been created. It is
+ * recommended that the attributes be completely initialized using an {@link 
AttributesFactory}
+ * before creating the region instead of using an 
AttributesMutator after region
+ * creation. This will avoid a potential performance penalty due to the 
additional network traffic.
+ * 
+ * The setter methods all return the previous value of the attribute.
  *
  *
  *
@@ -35,176 +31,195 @@ package org.apache.geode.cache;
  * @see AttributesFactory
  * @since GemFire 3.0
  */
-public interface AttributesMutator {
-  
-  /** Returns the Region whose attributes this mutator affects.
+public interface AttributesMutator {
+
+  /**
+   * Returns the Region whose attributes this mutator affects.
+   * 
* @return the Region this mutator affects
*/
-  public Region getRegion();
-  
-  /** Changes the timeToLive expiration attributes for the region as a whole
+  public Region getRegion();
+
+  /**
+   * Changes the timeToLive expiration attributes for the region as a whole
*
* @param timeToLive the expiration attributes for the region timeToLive
* @return the previous value of region timeToLive
-   * @throws IllegalArgumentException if timeToLive is null or if the
-   * ExpirationAction is LOCAL_INVALIDATE and the region is
-   * {@link DataPolicy#withReplication replicated}
+   * @throws IllegalArgumentException if timeToLive is null or if the 
ExpirationAction is
+   * LOCAL_INVALIDATE and the region is {@link 
DataPolicy#withReplication replicated}
* @throws IllegalStateException if statistics are disabled for this region.
*/
   public ExpirationAttributes setRegionTimeToLive(ExpirationAttributes 
timeToLive);
-  
-  /** Changes the idleTimeout expiration attributes for the region as a whole.
-   * Resets the {@link CacheStatistics#getLastAccessedTime} for the region.
+
+  /**
+   * Changes the idleTimeout expiration attributes for the region as a whole. 
Resets the
+   * {@link CacheStatistics#getLastAccessedTime} for the region.
*
* @param idleTimeout the ExpirationAttributes for this region idleTimeout
* @return the previous value of region idleTimeout
-   * @throws IllegalArgumentException if idleTimeout is 

[15/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java
index 37e7eea..e55c3f1 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -75,30 +73,26 @@ import 
org.apache.geode.internal.logging.log4j.LogWriterAppender;
 import org.apache.geode.internal.logging.log4j.LogWriterAppenders;
 
 /**
- * The GemFire JMX Agent provides the ability to administrate one GemFire
- * distributed system via JMX.
+ * The GemFire JMX Agent provides the ability to administrate one GemFire 
distributed system via
+ * JMX.
  *
- * @since GemFire 3.5
+ * @since GemFire 3.5
  */
-public class AgentImpl
-implements org.apache.geode.admin.jmx.Agent,
-   org.apache.geode.admin.jmx.internal.ManagedResource {
+public class AgentImpl implements org.apache.geode.admin.jmx.Agent,
+org.apache.geode.admin.jmx.internal.ManagedResource {
 
   private static final Logger logger = LogService.getLogger();
-  
+
   /**
-   * MX4J HttpAdaptor only supports "basic" as an authentication method.
-   * Enabling HttpAdaptor authentication ({@link
-   * AgentConfig#HTTP_AUTHENTICATION_ENABLED_NAME}) causes the browser to
-   * require a login with username ({@link
-   * AgentConfig#HTTP_AUTHENTICATION_USER_NAME}) and password ({@link
-   * AgentConfig#HTTP_AUTHENTICATION_PASSWORD_NAME}).
+   * MX4J HttpAdaptor only supports "basic" as an authentication method. 
Enabling HttpAdaptor
+   * authentication ({@link AgentConfig#HTTP_AUTHENTICATION_ENABLED_NAME}) 
causes the browser to
+   * require a login with username ({@link 
AgentConfig#HTTP_AUTHENTICATION_USER_NAME}) and password
+   * ({@link AgentConfig#HTTP_AUTHENTICATION_PASSWORD_NAME}).
*/
   private static final String MX4J_HTTPADAPTOR_BASIC_AUTHENTICATION = "basic";
 
   /** JMX Service URL template for JMX/RMI Connector Server */
-  private static final String JMX_SERVICE_URL =
-  
"service:jmx:rmi://{0}:{1}/jndi/rmi://{2}:{3}{4}";
+  private static final String JMX_SERVICE_URL = 
"service:jmx:rmi://{0}:{1}/jndi/rmi://{2}:{3}{4}";
 
   /**
* Set third-party logging configration: MX4J, Jakarta Commons-Logging.
@@ -108,7 +102,7 @@ implements org.apache.geode.admin.jmx.Agent,
 String commonsLog = System.getProperty("org.apache.commons.logging.log");
 if (commonsLog == null || commonsLog.length() == 0) {
   System.setProperty("org.apache.commons.logging.log",
- "org.apache.commons.logging.impl.SimpleLog");
+  "org.apache.commons.logging.impl.SimpleLog");
 }
   }
 
@@ -118,26 +112,24 @@ implements org.apache.geode.admin.jmx.Agent,
   if (Boolean.getBoolean("gfAgentDebug")) {
 mx4j.log.Log.setDefaultPriority(mx4j.log.Logger.TRACE); // .DEBUG
   }
-}
-catch (VirtualMachineError err) {
+} catch (VirtualMachineError err) {
   SystemFailure.initiateFailure(err);
-  // If this ever 

[40/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/LauncherLifecycleCommandsJUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/LauncherLifecycleCommandsJUnitTest.java
 
b/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/LauncherLifecycleCommandsJUnitTest.java
index 7d280c9..8ac5dd5 100755
--- 
a/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/LauncherLifecycleCommandsJUnitTest.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/LauncherLifecycleCommandsJUnitTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.management.internal.cli.commands;
 
@@ -44,8 +42,8 @@ import 
org.apache.geode.management.internal.cli.i18n.CliStrings;
 import org.apache.geode.test.junit.categories.UnitTest;
 
 /**
- * The LauncherLifecycleCommandsJUnitTest class is a test suite of test cases 
testing the contract and functionality of
- * the lifecycle launcher GemFire shell (Gfsh) commands.
+ * The LauncherLifecycleCommandsJUnitTest class is a test suite of test cases 
testing the contract
+ * and functionality of the lifecycle launcher GemFire shell (Gfsh) commands.
  *
  * @see 
org.apache.geode.management.internal.cli.commands.LauncherLifecycleCommands
  * @see org.junit.Assert
@@ -86,7 +84,8 @@ public class LauncherLifecycleCommandsJUnitTest {
 
 assertTrue(commandLine.isEmpty());
 
-getLauncherLifecycleCommands().addGemFirePropertyFile(commandLine, 
"/path/to/gemfire.properties");
+getLauncherLifecycleCommands().addGemFirePropertyFile(commandLine,
+"/path/to/gemfire.properties");
 
 assertFalse(commandLine.isEmpty());
 
assertTrue(commandLine.contains("-DgemfirePropertyFile=/path/to/gemfire.properties"));
@@ -119,10 +118,12 @@ public class LauncherLifecycleCommandsJUnitTest {
   final String propertyValue = gemfireProperties.getProperty(propertyName);
   if (StringUtils.isBlank(propertyValue)) {
 for (final String systemProperty : commandLine) {
-  assertFalse(systemProperty.startsWith("-D" + 
DistributionConfig.GEMFIRE_PREFIX + "".concat(propertyName).concat("=")));
+  assertFalse(systemProperty.startsWith(
+  "-D" + DistributionConfig.GEMFIRE_PREFIX + 
"".concat(propertyName).concat("=")));
 }
   } else {
-assertTrue(commandLine.contains("-D" + 
DistributionConfig.GEMFIRE_PREFIX + 
"".concat(propertyName).concat("=").concat(propertyValue)));
+assertTrue(commandLine.contains("-D" + 
DistributionConfig.GEMFIRE_PREFIX
++ "".concat(propertyName).concat("=").concat(propertyValue)));
   }
 }
   }
@@ -147,7 +148,7 @@ public class LauncherLifecycleCommandsJUnitTest {
 gemfireProperties.setProperty(NAME, "machine");
 
 gemfireProperties.setProperty(START_DEV_REST_API, "true");
-gemfireProperties.setProperty(HTTP_SERVICE_PORT,  "8080");
+gemfireProperties.setProperty(HTTP_SERVICE_PORT, "8080");
 gemfireProperties.setProperty(HTTP_SERVICE_BIND_ADDRESS, "localhost");
 
 
@@ -160,10 +161,12 @@ public class LauncherLifecycleCommandsJUnitTest {
   final String propertyValue = 

[22/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java
index 6b313e2..a89d390 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -35,19 +33,15 @@ import java.util.*;
 import static org.apache.geode.distributed.ConfigurationProperties.*;
 
 /**
- * An implementation of the configuration object for an
- * AdminDistributedSystem.  After a config has been used
- * to create an AdminDistributedSystem most of the
- * configuration attributes cannot be changed.  However, some
- * operations (such as getting information about GemFire managers and
- * distribution locators) are "passed through" to the
- * AdminDistributedSystem associated with this
- * configuration object.
+ * An implementation of the configuration object for an 
AdminDistributedSystem. After a
+ * config has been used to create an AdminDistributedSystem most 
of the configuration
+ * attributes cannot be changed. However, some operations (such as getting 
information about GemFire
+ * managers and distribution locators) are "passed through" to the
+ * AdminDistributedSystem associated with this configuration 
object.
  *
  * @since GemFire 3.5
  */
-public class DistributedSystemConfigImpl
-implements DistributedSystemConfig {
+public class DistributedSystemConfigImpl implements DistributedSystemConfig {
 
   private static final Logger logger = LogService.getLogger();
 
@@ -86,8 +80,7 @@ public class DistributedSystemConfigImpl
   private Set cacheServerConfigs = new HashSet();
 
   /**
-   * Configs for the managed distribution locators in the distributed
-   * system
+   * Configs for the managed distribution locators in the distributed system
*/
   private Set locatorConfigs = new HashSet();
 
@@ -97,10 +90,10 @@ public class DistributedSystemConfigImpl
   private String systemName = DEFAULT_NAME;
 
   /**
-   * The admin distributed system object that is configured by this
-   * config object.
+   * The admin distributed system object that is configured by this config 
object.
*
-   * @since GemFire 4.0 */
+   * @since GemFire 4.0
+   */
   private AdminDistributedSystemImpl system;
 
   /**
@@ -108,27 +101,21 @@ public class DistributedSystemConfigImpl
*/
   private InternalLogWriter logWriter;
 
-  ///  Static Methods  ///
+  /// Static Methods ///
 
   /**
-   * Filters out all properties that are unique to the admin
-   * DistributedSystemConfig that are not present in the
-   * internal DistributionConfig.
+   * Filters out all properties that are unique to the admin 
DistributedSystemConfig
+   * that are not present in the internal DistributionConfig.
*
* @since GemFire 4.0
*/
-  private static Properties
-  filterOutAdminProperties(Properties props) {
+  private static 

[34/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/DataSerializer.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/DataSerializer.java 
b/geode-core/src/main/java/org/apache/geode/DataSerializer.java
index 09b6ced..29b20a2 100644
--- a/geode-core/src/main/java/org/apache/geode/DataSerializer.java
+++ b/geode-core/src/main/java/org/apache/geode/DataSerializer.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
 
@@ -69,63 +67,54 @@ import org.apache.geode.internal.offheap.StoredObject;
 import org.apache.geode.pdx.PdxInstance;
 
 /**
- * Provides static helper methods for reading and writing
- * non-primitive data when working with a {@link DataSerializable}.
- * For instance, classes that implement DataSerializable
- * can use the DataSerializer in their
- * toData and fromData methods:
+ * Provides static helper methods for reading and writing non-primitive data 
when working with a
+ * {@link DataSerializable}. For instance, classes that implement 
DataSerializable can
+ * use the DataSerializer in their toData and 
fromData
+ * methods:
  *
- * 
+ * 
  *
  * 
-public class Employee implements DataSerializable {
-  private int id;
-  private String name;
-  private Date birthday;
-  private Company employer;
-
-  public void toData(DataOutput out) throws IOException {
-out.writeInt(this.id);
-out.writeUTF(this.name);
-DataSerializer.writeDate(this.birthday, out);
-DataSerializer.writeObject(this.employer, out);
-  }
-
-  public void fromData(DataInput in)
-throws IOException, ClassNotFoundException {
-
-this.id = in.readInt();
-this.name = in.readUTF();
-this.birthday = DataSerializer.readDate(in);
-this.employer = (Company) DataSerializer.readObject(in);
-  }
-}
-
+ * public class Employee implements DataSerializable {
+ *   private int id;
+ *   private String name;
+ *   private Date birthday;
+ *   private Company employer;
+ * 
+ *   public void toData(DataOutput out) throws IOException {
+ * out.writeInt(this.id);
+ * out.writeUTF(this.name);
+ * DataSerializer.writeDate(this.birthday, out);
+ * DataSerializer.writeObject(this.employer, out);
+ *   }
+ * 
+ *   public void fromData(DataInput in) throws IOException, 
ClassNotFoundException {
+ * 
+ * this.id = in.readInt();
+ * this.name = in.readUTF();
+ * this.birthday = DataSerializer.readDate(in);
+ * this.employer = (Company) DataSerializer.readObject(in);
+ *   }
+ * }
+ * 
  * 
  *
  * 
  *
- * Instances of DataSerializer are used to data serialize
- * objects (such as instances of standard Java classes or third-party
- * classes for which the source code is not available) that do not
- * implement the DataSerializable interface.
+ * Instances of DataSerializer are used to data serialize objects 
(such as instances of
+ * standard Java classes or third-party classes for which the source code is 
not available) that do
+ * not implement the DataSerializable interface.
  *
  * 
  *
- * The following DataSerializer data serializes instances
- * of Company.  In order for the data serialization
- * framework to consult this custom serializer, it must be {@linkplain
- * #register(Class) registered} with the framework.
+ * The following DataSerializer data 

[07/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java 
b/geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java
index 3418c21..1a46f24 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
@@ -41,42 +39,39 @@ import 
org.apache.geode.internal.cache.UserSpecifiedRegionAttributes;
 import org.apache.geode.internal.cache.xmlcache.RegionAttributesCreation;
 import org.apache.geode.internal.i18n.LocalizedStrings;
 
-/** Creates instances of {@link RegionAttributes}. An 
AttributesFactory
- * instance maintains state for creating RegionAttributes 
instances.
- * The setter methods are used to change the settings that will be used for
- * creating the next attributes instance with the {@link #create}
- * method. If you create a factory with the default constructor, then the
- * factory is set up to create attributes with all default settings. You can
- * also create a factory by providing a RegionAttributes, which
- * will set up the new factory with the settings provided in that attributes
- * instance.
+/**
+ * Creates instances of {@link RegionAttributes}. An 
AttributesFactory instance
+ * maintains state for creating RegionAttributes instances. The 
setter methods are used
+ * to change the settings that will be used for creating the next attributes 
instance with the
+ * {@link #create} method. If you create a factory with the default 
constructor, then the factory is
+ * set up to create attributes with all default settings. You can also create 
a factory by providing
+ * a RegionAttributes, which will set up the new factory with the 
settings provided in
+ * that attributes instance.
  *
- * Once a RegionAttributes is created, it can only be modified
- * after it has been used to create a Region, and then only by
- * using an {@link AttributesMutator} obtained from the region.
+ * 
+ * Once a RegionAttributes is created, it can only be modified 
after it has been used
+ * to create a Region, and then only by using an {@link 
AttributesMutator} obtained
+ * from the region.
  *
  * Attributes
  * Callbacks
  * 
  * {@link CacheLoader} [default: null, meaning no 
loader]
- * User-implemented plug-in for loading data on cache misses.
- *{@link #setCacheLoader} {@link RegionAttributes#getCacheLoader}
- *{@link AttributesMutator#setCacheLoader}
+ * User-implemented plug-in for loading data on cache misses.
+ * {@link #setCacheLoader} {@link RegionAttributes#getCacheLoader}
+ * {@link AttributesMutator#setCacheLoader}
  *
  * {@link CacheWriter} [default: null, meaning no 
writer]
- * User-implemented plug-in for intercepting cache modifications, e.g.
- * for writing to an external data source.
- * {@link #setCacheWriter} {@link RegionAttributes#getCacheWriter}
- * {@link AttributesMutator#setCacheWriter}
+ * User-implemented plug-in for intercepting cache modifications, e.g. for 
writing to an
+ * external data source.
+ * {@link #setCacheWriter} {@link 

[33/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/Delta.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/Delta.java 
b/geode-core/src/main/java/org/apache/geode/Delta.java
index de3ef98..a474981 100755
--- a/geode-core/src/main/java/org/apache/geode/Delta.java
+++ b/geode-core/src/main/java/org/apache/geode/Delta.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
 
@@ -22,12 +20,11 @@ import java.io.IOException;
 
 
 /**
- * This interface defines a contract between the application and GemFire that
- * allows GemFire to determine whether an application object contains a delta,
- * allows GemFire to extract the delta from an application object, and generate
- * a new application object by applying a delta to an existing application
- * object. The difference in object state is contained in the {@link 
DataOutput}
- * and {@link DataInput} parameters.
+ * This interface defines a contract between the application and GemFire that 
allows GemFire to
+ * determine whether an application object contains a delta, allows GemFire to 
extract the delta
+ * from an application object, and generate a new application object by 
applying a delta to an
+ * existing application object. The difference in object state is contained in 
the
+ * {@link DataOutput} and {@link DataInput} parameters.
  * 
  * @since GemFire 6.1
  * 
@@ -40,10 +37,9 @@ public interface Delta {
   boolean hasDelta();
 
   /**
-   * This method is invoked on an application object at the delta sender, if
-   * GemFire determines the presence of a delta by calling
-   * {@link Delta#hasDelta()} on the object. The delta is written to the
-   * {@link DataOutput} object provided by GemFire.
+   * This method is invoked on an application object at the delta sender, if 
GemFire determines the
+   * presence of a delta by calling {@link Delta#hasDelta()} on the object. 
The delta is written to
+   * the {@link DataOutput} object provided by GemFire.
* 
* Any delta state should be reset in this method.
* 
@@ -53,11 +49,10 @@ public interface Delta {
 
 
   /**
-   * This method is invoked on an existing application object when an update is
-   * received as a delta. This method throws an {@link InvalidDeltaException}
-   * when the delta in the {@link DataInput} cannot be applied to the object.
-   * GemFire automatically handles an {@link InvalidDeltaException} by
-   * reattempting the update by sending the full application object.
+   * This method is invoked on an existing application object when an update 
is received as a delta.
+   * This method throws an {@link InvalidDeltaException} when the delta in the 
{@link DataInput}
+   * cannot be applied to the object. GemFire automatically handles an {@link 
InvalidDeltaException}
+   * by reattempting the update by sending the full application object.
* 
* @throws IOException
* @throws InvalidDeltaException

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/DeltaSerializationException.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/DeltaSerializationException.java 

[19/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
index 6c76f69..951b364 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -30,9 +28,8 @@ import 
org.apache.geode.internal.statistics.platform.ProcessStats;
 import java.util.*;
 
 /**
- * Contains the logic for evaluating the health of a GemFire
- * distributed system member according to the thresholds provided in a
- * {@link MemberHealthConfig}.  
+ * Contains the logic for evaluating the health of a GemFire distributed 
system member according to
+ * the thresholds provided in a {@link MemberHealthConfig}.
  *
  * @see VMStats
  * @see ProcessStats
@@ -52,8 +49,8 @@ class MemberHealthEvaluator extends AbstractHealthEvaluator {
   /** The description of the member being evaluated */
   private String description;
 
-//  /** Statistics about this VM (may be null) */
-//  private VMStatsContract vmStats;
+  // /** Statistics about this VM (may be null) */
+  // private VMStatsContract vmStats;
 
   /** Statistics about this process (may be null) */
   private ProcessStats processStats;
@@ -64,13 +61,12 @@ class MemberHealthEvaluator extends AbstractHealthEvaluator 
{
   /** The previous value of the reply timeouts stat */
   private long prevReplyTimeouts;
 
-  //  Constructors  //
+  // Constructors //
 
   /**
* Creates a new MemberHealthEvaluator
*/
-  MemberHealthEvaluator(GemFireHealthConfig config,
-DM dm) {
+  MemberHealthEvaluator(GemFireHealthConfig config, DM dm) {
 super(config, dm);
 
 this.config = config;
@@ -79,12 +75,12 @@ class MemberHealthEvaluator extends AbstractHealthEvaluator 
{
 GemFireStatSampler sampler = system.getStatSampler();
 if (sampler != null) {
   // Sampling is enabled
-//  this.vmStats = sampler.getVMStats();
+  // this.vmStats = sampler.getVMStats();
   this.processStats = sampler.getProcessStats();
 }
 
 this.dmStats = dm.getStats();
-
+
 StringBuffer sb = new StringBuffer();
 sb.append("Application VM member ");
 sb.append(dm.getId());
@@ -96,7 +92,7 @@ class MemberHealthEvaluator extends AbstractHealthEvaluator {
 this.description = sb.toString();
   }
 
-    Instance Methods  
+   Instance Methods 
 
   @Override
   protected String getDescription() {
@@ -104,10 +100,9 @@ class MemberHealthEvaluator extends 
AbstractHealthEvaluator {
   }
 
   /**
-   * Checks to make sure that the {@linkplain
-   * ProcessStats#getProcessSize VM's process size} is less than the
-   * {@linkplain MemberHealthConfig#getMaxVMProcessSize threshold}.
-   * If not, the status is "okay" health.
+   * Checks to make sure that the {@linkplain 

[44/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDeltaForwarderCacheListener.java
--
diff --git 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDeltaForwarderCacheListener.java
 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDeltaForwarderCacheListener.java
index aa8ad99..a276728 100644
--- 
a/extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDeltaForwarderCacheListener.java
+++ 
b/extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDeltaForwarderCacheListener.java
@@ -1,19 +1,17 @@
 /*
-* 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.
-*/
+ * 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.geode.modules.gatewaydelta;
 
 import org.apache.geode.cache.Cache;
@@ -33,7 +31,8 @@ import org.apache.geode.internal.cache.LocalRegion;
 
 import java.util.Properties;
 
-public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter implements Declarable {
+public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter
+implements Declarable {
 
   private final Cache cache;
 
@@ -55,9 +54,7 @@ public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter")
-.append(event.getNewValue())
+.append(event.getKey()).append("->").append(event.getNewValue())
 .append(" that originated in the local site. Sending it to the 
remote site.");
 this.cache.getLogger().fine(builder.toString());
   }
@@ -67,12 +64,12 @@ public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter")
-.append(event.getNewValue())
+.append(event.getKey()).append("->").append(event.getNewValue())
 .append(" that originated in the remote site.");
 this.cache.getLogger().fine(builder.toString());
   }
@@ -90,16 +85,14 @@ public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter event) {
-//System.out.println("GatewayDeltaForwarderCacheListener.afterUpdate: " + 
event);
+// System.out.println("GatewayDeltaForwarderCacheListener.afterUpdate: " + 
event);
 // If the event is from the local site, create an 'update' event and send 
it to the
 // gateway delta region
 if (event.getCallbackArgument() == null) {
   if (this.cache.getLogger().fineEnabled()) {
 StringBuilder builder = new StringBuilder();
 builder.append("GatewayDeltaForwarderCacheListener: Received update 
event for ")
-.append(event.getKey())
-.append("->")
-.append(event.getNewValue())
+.append(event.getKey()).append("->").append(event.getNewValue())
 .append(" that originated in the local site. Sending it to the 
remote site.");
 this.cache.getLogger().fine(builder.toString());
   }
@@ -114,9 +107,7 @@ public class GatewayDeltaForwarderCacheListener extends 
CacheListenerAdapter")
-.append(event.getNewValue())
+.append(event.getKey()).append("->").append(event.getNewValue())
 .append(" that originated in the remote site.");
 this.cache.getLogger().fine(builder.toString());
   }
@@ -130,16 +121,15 @@ public class 

[39/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/Customer.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/Customer.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/Customer.java
index 801c5a7..263e6c7 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/Customer.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/Customer.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.rest.internal.web.controllers;
 
@@ -22,6 +20,7 @@ import org.apache.geode.internal.lang.ObjectUtils;
 /**
  * The Customer class models a customer entity.
  * 
+ * 
  * @since GemFire 8.0
  */
 
@@ -31,8 +30,7 @@ public class Customer implements Serializable {
   private String firstName;
   private String lastName;
 
-  public Customer() {
-  }
+  public Customer() {}
 
   public Customer(final Long custId) {
 this.customerId = custId;
@@ -81,8 +79,8 @@ public class Customer implements Serializable {
 final Customer that = (Customer) obj;
 
 return (ObjectUtils.equals(this.getCustomerId(), that.getCustomerId())
-&& ObjectUtils.equals(this.getLastName(), that.getLastName()) && 
ObjectUtils
-  .equals(this.getFirstName(), that.getFirstName()));
+&& ObjectUtils.equals(this.getLastName(), that.getLastName())
+&& ObjectUtils.equals(this.getFirstName(), that.getFirstName()));
   }
 
   @Override

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/DateTimeUtils.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/DateTimeUtils.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/DateTimeUtils.java
index 1467821..2701608 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/DateTimeUtils.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/controllers/DateTimeUtils.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed 

[35/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/CancelCriterion.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/CancelCriterion.java 
b/geode-core/src/main/java/org/apache/geode/CancelCriterion.java
index f0eb160..e4f9a41 100644
--- a/geode-core/src/main/java/org/apache/geode/CancelCriterion.java
+++ b/geode-core/src/main/java/org/apache/geode/CancelCriterion.java
@@ -1,32 +1,29 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
 
 /**
  * Abstract cancellation proxy for cancelling an operation, esp. a thread.
  * 
- * Creators of services or threads should implement a subclass of 
CancelCriterion,
- * and implement the two methods - cancelInProgress, and 
generateCancelledException(e).
+ * Creators of services or threads should implement a subclass of 
CancelCriterion, and implement the
+ * two methods - cancelInProgress, and generateCancelledException(e).
  * 
  * Code inside the service can check to see if the service is cancelled by 
calling
- * {@link #checkCancelInProgress(Throwable)}. Generally the pattern is to check
- * before performing an operation, check if the service is canceled before 
propgrating 
- * an exception futher up the stack, and check for cancelation inside a long 
loop.
- * Eg.
+ * {@link #checkCancelInProgress(Throwable)}. Generally the pattern is to 
check before performing an
+ * operation, check if the service is canceled before propgrating an exception 
futher up the stack,
+ * and check for cancelation inside a long loop. Eg.
  * 
  * 
  * while(true) {
@@ -43,25 +40,25 @@ package org.apache.geode;
  * @see CancelException
  * @since GemFire 5.1
  */
-public abstract class CancelCriterion
-{
-  
+public abstract class CancelCriterion {
+
   /**
-   * Indicate if the service is in the progress of being cancelled.  The
-   * typical use of this is to indicate, in the case of an {@link 
InterruptedException},
-   * that the current operation should be cancelled.
-   * @return null if the service is not shutting down, or a message that can 
be used to
-   * construct an exception indicating the service is shut down.
+   * Indicate if the service is in the progress of being cancelled. The 
typical use of this is to
+   * indicate, in the case of an {@link InterruptedException}, that the 
current operation should be
+   * cancelled.
+   * 
+   * @return null if the service is not shutting down, or a message that can 
be used to construct an
+   * exception indicating the service is shut down.
*/
   public abstract String cancelInProgress();
-//import org.apache.geode.distributed.internal.DistributionManager;
-//* 
-//* In particular, a {@link DistributionManager} returns a non-null result 
if
-//* message distribution has been terminated.
-  
+  // import org.apache.geode.distributed.internal.DistributionManager;
+  // * 
+  // * In particular, a {@link DistributionManager} returns a non-null result 
if
+  // * message distribution has been terminated.
+
   /**
-   * Use this utility  function in your implementation of cancelInProgress()
-   * and cancelled() to indicate a system failure
+   * Use this utility function in your implementation of cancelInProgress() 
and cancelled() to
+   * indicate a system failure
* 
* @return failure string 

[14/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java
index b87792d..6a1bd63 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -55,18 +53,19 @@ import org.apache.geode.internal.util.IOUtils;
 import org.apache.geode.internal.util.JavaCommandBuilder;
 
 /**
- * A command line utility inspired by the CacheServerLauncher 
that is responsible for administering
- * a stand-along GemFire JMX {@link Agent}.
+ * A command line utility inspired by the CacheServerLauncher 
that is responsible for
+ * administering a stand-along GemFire JMX {@link Agent}.
  * 
+ * 
  * @since GemFire 3.5
  */
 public class AgentLauncher {
 
   private static final Logger logger = LogService.getLogger();
-  
+
   /** Should the launch command be printed? */
-  public static final boolean PRINT_LAUNCH_COMMAND = 
Boolean.getBoolean(AgentLauncher.class.getSimpleName()
-  + ".PRINT_LAUNCH_COMMAND");
+  public static final boolean PRINT_LAUNCH_COMMAND =
+  Boolean.getBoolean(AgentLauncher.class.getSimpleName() + 
".PRINT_LAUNCH_COMMAND");
 
   /* constants used to define state */
   static final int SHUTDOWN = 0;
@@ -79,7 +78,10 @@ public class AgentLauncher {
   /** Agent configuration options */
   static final String AGENT_PROPS = "agent-props";
 
-  /** A flag to indicate if the current log file should be kept. Used only 
when 'start' is used to fork off the 'server' */
+  /**
+   * A flag to indicate if the current log file should be kept. Used only when 
'start' is used to
+   * fork off the 'server'
+   */
   static final String APPENDTO_LOG_FILE = "appendto-log-file";
 
   /** optional and additional classpath entries */
@@ -107,10 +109,11 @@ public class AgentLauncher {
   private final String statusFileName;
 
   /**
-   * Instantiates an AgentLauncher for execution and control of the GemFire 
JMX Agent process.  This constructor is
-   * package private to prevent direct instantiation or subclassing by classes 
outside this package, but does allow
-   * the class to be tested as needed.
+   * Instantiates an AgentLauncher for execution and control of the GemFire 
JMX Agent process. This
+   * constructor is package private to prevent direct instantiation or 
subclassing by classes
+   * outside this package, but does allow the class to be tested as needed.
* 
+   * 
* @param basename base name for the application to be launched
*/
   AgentLauncher(final String basename) {
@@ -135,15 +138,17 @@ public class AgentLauncher {
 SortedMap map = new TreeMap();
 
 int maxLength = 0;
-for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
+for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {
   String prop = (String) iter.next();
   int length = prop.length();
   if (length > maxLength) {
 maxLength = length;

[41/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-assembly/src/test/java/org/apache/geode/BundledJarsJUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/BundledJarsJUnitTest.java 
b/geode-assembly/src/test/java/org/apache/geode/BundledJarsJUnitTest.java
index 415866b..8c228f2 100644
--- a/geode-assembly/src/test/java/org/apache/geode/BundledJarsJUnitTest.java
+++ b/geode-assembly/src/test/java/org/apache/geode/BundledJarsJUnitTest.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
 
@@ -45,31 +43,34 @@ public class BundledJarsJUnitTest {
   private static final String VERSION_PATTERN = "[0-9-_.v]{3,}.*\\.jar$";
   protected static final String GEMFIRE_HOME = System.getenv("GEMFIRE");
   private Set expectedJars;
-  
+
   @Before
   public void loadExpectedJars() throws IOException {
-String expectedJarFile = 
TestUtil.getResourcePath(BundledJarsJUnitTest.class, "/expected_jars.txt");
-
-expectedJars = Files.lines(Paths.get(expectedJarFile))
-.collect(Collectors.toSet());
+String expectedJarFile =
+TestUtil.getResourcePath(BundledJarsJUnitTest.class, 
"/expected_jars.txt");
+
+expectedJars = 
Files.lines(Paths.get(expectedJarFile)).collect(Collectors.toSet());
   }
-  
+
   @Test
   public void verifyBundledJarsHaveNotChanged() throws IOException {
 TreeMap sortedJars = getBundledJars();
-Stream lines = sortedJars.entrySet().stream().map(entry -> 
removeVersion(entry.getKey()));
+Stream lines =
+sortedJars.entrySet().stream().map(entry -> 
removeVersion(entry.getKey()));
 Set bundledJarNames = new 
TreeSet(lines.collect(Collectors.toSet()));
-
+
 Files.write(Paths.get("bundled_jars.txt"), bundledJarNames);
 
 TreeSet newJars = new TreeSet(bundledJarNames);
 newJars.removeAll(expectedJars);
 TreeSet missingJars = new TreeSet(expectedJars);
 missingJars.removeAll(bundledJarNames);
-
+
 StringBuilder message = new StringBuilder();
-message.append("The bundled jars have changed. Please make sure you update 
the licence and notice");
-message.append("\nas described in 
https://cwiki.apache.org/confluence/display/GEODE/License+Guide+for+Contributors;);
+message.append(
+"The bundled jars have changed. Please make sure you update the 
licence and notice");
+message.append(
+"\nas described in 
https://cwiki.apache.org/confluence/display/GEODE/License+Guide+for+Contributors;);
 message.append("\nWhen fixed, copy 
geode-assembly/build/test/bundled_jars.txt");
 message.append("\nto src/test/resources/expected_jars.txt");
 message.append("\nRemoved Jars\n--\n");
@@ -77,34 +78,33 @@ public class BundledJarsJUnitTest {
 message.append("\n\nAdded Jars\n--\n");
 message.append(String.join("\n", newJars));
 message.append("\n\n");
-
+
 assertTrue(message.toString(), expectedJars.equals(bundledJarNames));
-
+
   }
 
   /**
-   * Find all of the jars bundled with the project.
-   * Key is the name of the jar, value is the path.
+   * Find all of the jars bundled with the project. Key is the name of the 
jar, value is the path.
*/
   protected TreeMap getBundledJars() {
-File gemfireHomeDirectory= new 

[53/55] [abbrv] incubator-geode git commit: GEODE-706 Fixed race condition between expiry thread and user thread.

2016-10-24 Thread upthewaterspout
GEODE-706 Fixed race condition between expiry thread and user thread.

ExpirationManager tracks the regionEntry as reference to expiryTask. It
assumes, it is unique for that key. But consistency check mechanism
keeps that regionEntry around and that enforces re-use of that for new
update. That introduces the race condition between expiry thread and
user thread, it endup not scheduling the entry for expiration. As a fix,
now "consistency check mechanism" unschedules the expiry task to avoid
this race condition.

Unmarked flaky from testEntryIdleDestroy test


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/24a72040
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/24a72040
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/24a72040

Branch: refs/heads/feature/GEODE-1985
Commit: 24a72040cba3afe96da8ef752aa1f07c10dd1fa1
Parents: 6eb0fd3
Author: Hitesh Khamesra 
Authored: Fri Oct 21 15:59:16 2016 -0700
Committer: Hitesh Khamesra 
Committed: Fri Oct 21 16:09:29 2016 -0700

--
 .../org/apache/geode/internal/cache/AbstractRegionMap.java  | 9 ++---
 .../org/apache/geode/internal/cache/EntryEventImpl.java | 9 -
 .../org/apache/geode/internal/cache/EntryExpiryTask.java| 3 +--
 .../java/org/apache/geode/internal/cache/LocalRegion.java   | 3 ---
 .../test/java/org/apache/geode/cache30/RegionTestCase.java  | 2 --
 5 files changed, 7 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/24a72040/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
 
b/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
index b2738ba..de05b0d 100644
--- 
a/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
@@ -1521,9 +1521,11 @@ public abstract class AbstractRegionMap implements 
RegionMap {
   } finally {
 if (opCompleted) {
   if (re != null) {
-owner.cancelExpiryTask(re, event.getExpiryTask());
-  } else if (tombstone != null) {
-owner.cancelExpiryTask(tombstone, event.getExpiryTask());
+// we only want to cancel if concurrency-check is not enabled
+// re(regionentry) will be null when concurrency-check is 
enable and removeTombstone
+// method
+// will call cancelExpiryTask on regionEntry
+owner.cancelExpiryTask(re);
   }
 }
   }
@@ -3801,6 +3803,7 @@ public abstract class AbstractRegionMap implements 
RegionMap {
   try {
 re.setValue(_getOwner(), Token.REMOVED_PHASE2);
 if (removeTombstone(re)) {
+  _getOwner().cancelExpiryTask(re);
   result = true;
   incEntryCount(-1);
   // Bug 51118: When the method is called by tombstoneGC thread, 
current 're' is an

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/24a72040/geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java 
b/geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java
index 65ae0f3..02c0422 100644
--- 
a/geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java
@@ -69,7 +69,6 @@ public class EntryEventImpl
   // PACKAGE FIELDS //
   public transient LocalRegion region;
   private transient RegionEntry re;
-  private transient ExpiryTask expiryTask;
 
   protected KeyInfo keyInfo;
 
@@ -2820,12 +2819,4 @@ public class EntryEventImpl
   public boolean isOldValueOffHeap() {
 return isOffHeapReference(this.oldValue);
   }
-
-  public ExpiryTask getExpiryTask() {
-return expiryTask;
-  }
-
-  public void setExpiryTask(ExpiryTask expiryTask) {
-this.expiryTask = expiryTask;
-  }
 }

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/24a72040/geode-core/src/main/java/org/apache/geode/internal/cache/EntryExpiryTask.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/internal/cache/EntryExpiryTask.java 
b/geode-core/src/main/java/org/apache/geode/internal/cache/EntryExpiryTask.java
index 603f713..254fc88 100644
--- 

[17/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AdminDistributedSystemJmxImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AdminDistributedSystemJmxImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AdminDistributedSystemJmxImpl.java
index 5ff4bfa..1bfddf2 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AdminDistributedSystemJmxImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AdminDistributedSystemJmxImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -49,26 +47,25 @@ import java.util.concurrent.atomic.AtomicInteger;
 /**
  * Provides MBean support for managing a GemFire distributed system.
  * 
- * TODO: refactor to implement DistributedSystem and delegate to instance of
- * DistributedSystemImpl. Wrap all delegate calls w/ e.printStackTrace() since 
- * the HttpAdaptor devours them (what to do w/ template methods then?)
+ * TODO: refactor to implement DistributedSystem and delegate to instance of 
DistributedSystemImpl.
+ * Wrap all delegate calls w/ e.printStackTrace() since the HttpAdaptor 
devours them (what to do w/
+ * template methods then?)
  *
- * @since GemFire 3.5
+ * @since GemFire 3.5
  */
-public class AdminDistributedSystemJmxImpl 
-  extends AdminDistributedSystemImpl
-  implements ManagedResource, DistributedSystemConfig, 
StatAlertsAggregator {
+public class AdminDistributedSystemJmxImpl extends AdminDistributedSystemImpl
+implements ManagedResource, DistributedSystemConfig, StatAlertsAggregator {
 
   private static final Logger logger = LogService.getLogger();
-  
+
   private Properties mailProps;
 
   // The file name where the StatAlertDefinitions would be serialized
   private String statAlertDefnSerFile = System.getProperty("user.dir");
-  
-  /** 
-   * Simple counter incrementing on each notification.  This this currently 
-   * resets at every restart of Agent
+
+  /**
+   * Simple counter incrementing on each notification. This this currently 
resets at every restart
+   * of Agent
*/
   private final AtomicInteger notificationSequenceNumber = new AtomicInteger();
 
@@ -78,8 +75,7 @@ public class AdminDistributedSystemJmxImpl
   private volatile boolean isRmiClientCountZero;
 
   /**
-   * Variable to indicate if Statistics Alert definitions could be persisted 
-   * across runs/sessions.
+   * Variable to indicate if Statistics Alert definitions could be persisted 
across runs/sessions.
*/
   private volatile boolean canPersistStatAlertDefs = true;
 
@@ -87,15 +83,13 @@ public class AdminDistributedSystemJmxImpl
   private CacheAndRegionListenerImpl cacheRegionListener;
 
   // -
-  //   Constructor(s)
+  // Constructor(s)
   // -
-  
+
   /**
-   * Constructs new DistributedSystemJmxImpl and registers an MBean to 
represent
-   * it.
+   * Constructs new DistributedSystemJmxImpl and registers an MBean to 
represent it.
* 
-   * @param config
-   *  configuration defining the JMX agent.
+   * @param config 

[13/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/DistributionLocatorJmxImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/DistributionLocatorJmxImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/DistributionLocatorJmxImpl.java
index ad60682..65c2477 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/DistributionLocatorJmxImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/DistributionLocatorJmxImpl.java
@@ -1,81 +1,78 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
-//import org.apache.geode.admin.AdminException;
-//import org.apache.geode.admin.DistributionLocator;
+// import org.apache.geode.admin.AdminException;
+// import org.apache.geode.admin.DistributionLocator;
 import org.apache.geode.admin.DistributionLocatorConfig;
 import org.apache.geode.admin.internal.AdminDistributedSystemImpl;
 import org.apache.geode.internal.i18n.LocalizedStrings;
-//import org.apache.geode.internal.Assert;
-
-//import org.apache.commons.modeler.ManagedBean;
-//import org.apache.commons.modeler.AttributeInfo;
-
-//import java.util.Date;
-//import java.util.Set;
-
-//import javax.management.Attribute;
-//import javax.management.AttributeList;
-//import javax.management.Descriptor;
-//import javax.management.JMException;
-//import javax.management.MBeanServer;
-//import javax.management.MalformedObjectNameException;
-//import javax.management.Notification;
-//import javax.management.NotificationListener;
+// import org.apache.geode.internal.Assert;
+
+// import org.apache.commons.modeler.ManagedBean;
+// import org.apache.commons.modeler.AttributeInfo;
+
+// import java.util.Date;
+// import java.util.Set;
+
+// import javax.management.Attribute;
+// import javax.management.AttributeList;
+// import javax.management.Descriptor;
+// import javax.management.JMException;
+// import javax.management.MBeanServer;
+// import javax.management.MalformedObjectNameException;
+// import javax.management.Notification;
+// import javax.management.NotificationListener;
 import javax.management.ObjectName;
-//import javax.management.modelmbean.DescriptorSupport;
+// import javax.management.modelmbean.DescriptorSupport;
 import javax.management.modelmbean.ModelMBean;
-//import javax.management.modelmbean.ModelMBeanAttributeInfo;
+// import javax.management.modelmbean.ModelMBeanAttributeInfo;
 
 /**
  * Provides MBean support for managing a distribution locator.
  *
  */
-public class DistributionLocatorJmxImpl 
-extends org.apache.geode.admin.internal.DistributionLocatorImpl
-implements org.apache.geode.admin.jmx.internal.ManagedResource,
-   DistributionLocatorConfig {
+public class DistributionLocatorJmxImpl
+extends org.apache.geode.admin.internal.DistributionLocatorImpl
+implements org.apache.geode.admin.jmx.internal.ManagedResource, 
DistributionLocatorConfig {
 
   /** The JMX object name of this managed resource */
   private ObjectName objectName;
 
   // -
-  //   Constructor(s)
+  // Constructor(s)
   // -
-  
+
   /**
-   * 

[20/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/LogCollator.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/LogCollator.java 
b/geode-core/src/main/java/org/apache/geode/admin/internal/LogCollator.java
index 6a183c5..83aa440 100755
--- a/geode-core/src/main/java/org/apache/geode/admin/internal/LogCollator.java
+++ b/geode-core/src/main/java/org/apache/geode/admin/internal/LogCollator.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
@@ -23,20 +21,19 @@ import org.apache.geode.internal.admin.ApplicationVM;
 import org.apache.geode.internal.logging.MergeLogFiles;
 
 import java.io.ByteArrayInputStream;
-import java.io.InputStream;  
-import java.io.PrintWriter;  
-import java.io.StringWriter;  
+import java.io.InputStream;
+import java.io.PrintWriter;
+import java.io.StringWriter;
 import java.util.ArrayList;
 import java.util.List;
 
 public class LogCollator {
-  
+
   private GfManagerAgent system;
   private List logTails;
-
-  public LogCollator() {
-  }
-  
+
+  public LogCollator() {}
+
   public String collateLogs(GfManagerAgent system) {
 try {
   if (system == null) {
@@ -47,15 +44,14 @@ public class LogCollator {
   gatherActiveLogs();
   gatherInactiveLogs();
   return mergeLogs();
-}
-finally {
+} finally {
   this.system = null;
   this.logTails = null;
 }
   }
 
   // -
-  
+
   private String mergeLogs() {
 // combine logs...
 InputStream[] logFiles = new InputStream[this.logTails.size()];
@@ -65,14 +61,13 @@ public class LogCollator {
   logFiles[i] = new ByteArrayInputStream(loglet.tail.getBytes());
   logFileNames[i] = loglet.name;
 }
-
+
 // delegate to MergeLogFiles...
 StringWriter writer = new StringWriter();
 PrintWriter mergedLog = new PrintWriter(writer);
 if (!MergeLogFiles.mergeLogFiles(logFiles, logFileNames, mergedLog)) {
   return writer.toString();
-} 
-else {
+} else {
   return "";
 }
   }
@@ -83,27 +78,17 @@ public class LogCollator {
   addLogFrom(runningsApps[i]);
 }
   }
-  
+
   private void gatherInactiveLogs() {
-/* not yet supported
-if (useStopped) {
-  LogViewHelper helper = new LogViewHelper();
-  for (Iterator iter = stoppedNodes.iterator(); iter.hasNext(); ) {
-Object adminEntity = iter.next();
-helper.setAdminEntity(adminEntity);
-try {
-  if (helper.logViewAvailable()) {
-String[] logs = helper.getSystemLogs();
-addTail(allTails, logs, adminEntity.toString());
-  }
-} catch (Exception e) {
-  Service.getService().reportSystemError(e);
-}
-  }
-}
-*/
+/*
+ * not yet supported if (useStopped) { LogViewHelper helper = new 
LogViewHelper(); for
+ * (Iterator iter = stoppedNodes.iterator(); iter.hasNext(); ) { Object 
adminEntity =
+ * iter.next(); helper.setAdminEntity(adminEntity); try { if 
(helper.logViewAvailable()) {
+ * String[] logs = helper.getSystemLogs(); addTail(allTails, logs, 
adminEntity.toString()); } }
+ * catch (Exception e) { 

[24/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/AdminDistributedSystemImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/AdminDistributedSystemImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/AdminDistributedSystemImpl.java
index aba79d2..59fce55 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/AdminDistributedSystemImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/AdminDistributedSystemImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -54,22 +52,21 @@ import static 
org.apache.geode.distributed.ConfigurationProperties.*;
 /**
  * Represents a GemFire distributed system for remote 
administration/management.
  *
- * @since GemFire 3.5
+ * @since GemFire 3.5
  */
-public class AdminDistributedSystemImpl
-implements org.apache.geode.admin.AdminDistributedSystem,
-   org.apache.geode.internal.admin.JoinLeaveListener,
-   org.apache.geode.internal.admin.AlertListener,
-   
org.apache.geode.distributed.internal.InternalDistributedSystem.DisconnectListener
 {
+public class AdminDistributedSystemImpl implements 
org.apache.geode.admin.AdminDistributedSystem,
+org.apache.geode.internal.admin.JoinLeaveListener,
+org.apache.geode.internal.admin.AlertListener,
+
org.apache.geode.distributed.internal.InternalDistributedSystem.DisconnectListener
 {
 
   private static final Logger logger = LogService.getLogger();
-  
+
   /** String identity of this distributed system */
   private String id;
-  
+
   /** Latest alert broadcast by any system members */
   private Alert latestAlert;
-  
+
   // -
 
   /** Internal admin agent to delegate low-level work to */
@@ -80,7 +77,7 @@ implements org.apache.geode.admin.AdminDistributedSystem,
 
   /** Set of non-Manager members in this system */
   private final Set applicationSet = new HashSet();
-  
+
   /** Set of DistributionLocators for this system */
   private final Set locatorSet = new HashSet();
 
@@ -89,70 +86,69 @@ implements org.apache.geode.admin.AdminDistributedSystem,
 
   /** Configuration defining this distributed system */
   private final DistributedSystemConfigImpl config;
-  
+
   /** Controller for starting and stopping managed entities */
   private ManagedEntityController controller;
-  
+
   /** Log file collator for gathering and merging system member logs */
   private LogCollator logCollator = new LogCollator();
-  
-  /** The level above which alerts will be delivered to the alert
-   * listeners */
+
+  /**
+   * The level above which alerts will be delivered to the alert listeners
+   */
   private AlertLevel alertLevel = AlertLevel.WARNING;
 
   /** The alert listeners registered on this distributed system. */
   private volatile Set alertListeners = Collections.emptySet();
   private final Object alertLock = new Object();
-  
+
   private LogWriterAppender logWriterAppender;
-  
+
   private InternalLogWriter logWriter;
-  
+
   /** The membership listeners registered on this distributed system */
   private volatile Set membershipListeners = Collections.EMPTY_SET;
   private final Object 

[03/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java 
b/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
index 3956682..a21dd8a 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
 
@@ -21,132 +19,151 @@ import 
org.apache.geode.distributed.internal.DistributionConfig;
 import java.io.File;
 
 /**
- * Factory for creating instances of {@link DiskStore}.
- * To get an instance of this factory call {@link 
Cache#createDiskStoreFactory}.
- * If all you want to do is find an existing disk store see {@link 
Cache#findDiskStore}.
+ * Factory for creating instances of {@link DiskStore}. To get an instance of 
this factory call
+ * {@link Cache#createDiskStoreFactory}. If all you want to do is find an 
existing disk store see
+ * {@link Cache#findDiskStore}.
  * 
- * To use this factory configure it with the set methods and then
- * call {@link #create} to produce a disk store instance.
+ * To use this factory configure it with the set methods and then 
call {@link #create}
+ * to produce a disk store instance.
  * 
  * @since GemFire 6.5
  */
-public interface DiskStoreFactory
-{
+public interface DiskStoreFactory {
   /**
-   * The name of the default disk store is "DEFAULT".
-   * This name can be used to redefine the default disk store.
-   * Regions that have not had their disk-store-name set will
-   * use this disk store.
+   * The name of the default disk store is "DEFAULT". This name can be used to 
redefine the default
+   * disk store. Regions that have not had their disk-store-name set will use 
this disk store.
*/
   public static final String DEFAULT_DISK_STORE_NAME = "DEFAULT";
   /**
-   * The default setting for auto compaction. 
-   * Current value: true.
+   * The default setting for auto compaction.
+   * 
+   * Current value: true.
*/
   public static final boolean DEFAULT_AUTO_COMPACT = true;
-  
+
   /**
* The default compaction threshold.
-   * Current value: 50.
+   * 
+   * Current value: 50.
*/
   public static final int DEFAULT_COMPACTION_THRESHOLD = 50;
 
   /**
* The default value of the allow force compaction attribute.
-   * Current value: false.
+   * 
+   * Current value: false.
*/
   public static final boolean DEFAULT_ALLOW_FORCE_COMPACTION = false;
 
   /**
* The default maximum oplog file size in megabytes.
-   * Current value: 1024 which is one gigabyte.
+   * 
+   * Current value: 1024 which is one gigabyte.
*/
-  public static final long DEFAULT_MAX_OPLOG_SIZE = 
Long.getLong(DistributionConfig.GEMFIRE_PREFIX + "DEFAULT_MAX_OPLOG_SIZE", 
1024L)
-  .longValue(); // 1024 == 1 GB; // sys prop used by dunit and junit
+  public static final long DEFAULT_MAX_OPLOG_SIZE =
+  Long.getLong(DistributionConfig.GEMFIRE_PREFIX + 
"DEFAULT_MAX_OPLOG_SIZE", 1024L).longValue(); // 1024
+   
  // ==
+

[16/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java
index 07a95df..4e53b07 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -46,19 +44,19 @@ import org.apache.geode.internal.util.IOUtils;
 /**
  * Provides the JMX Agent configuration properties.
  * 
- * Supports importing of persisted properties from an external configuration
- * file.
+ * Supports importing of persisted properties from an external configuration 
file.
  * 
- * Select values can also be overridden with command line arguments.  See
- * remarks on individual properties for further information.
+ * Select values can also be overridden with command line arguments. See 
remarks on individual
+ * properties for further information.
  * 
  * Extends and implements DistributedSystemConfig.
- * @since GemFire 3.5 (in which it was named AgentConfig)
+ * 
+ * @since GemFire 3.5 (in which it was named AgentConfig)
  */
 public class AgentConfigImpl extends DistributedSystemConfigImpl implements 
AgentConfig {
 
   // -
-  //   Static class variable(s)
+  // Static class variable(s)
   // -
 
   /**
@@ -77,7 +75,7 @@ public class AgentConfigImpl extends 
DistributedSystemConfigImpl implements Agen
   public static final String AGENT_PROPSFILE_PROPERTY_NAME = 
"gfAgentPropertyFile";
 
   // -
-  //   DistributionLocator properties...
+  // DistributionLocator properties...
   // -
 
   /**
@@ -112,44 +110,42 @@ public class AgentConfigImpl extends 
DistributedSystemConfigImpl implements Agen
   /**
* The default log file for stand-alone JMX agents
*/
-  /*package scope*/
+  /* package scope */
   static final String DEFAULT_LOG_FILE = "agent.log";
 
   /**
* The default startup log file to be used by agent launcher
*/
-  /*package scope*/
+  /* package scope */
   static final String DEFAULT_STARTUP_LOG_FILE = "start_agent.log";
 
   private static String OBFUSCATED_STRING = "";
 
-  //  Static Methods  //
+  // Static Methods //
 
   /**
-   * The propertyFile is the name of the property file that will
-   * be loaded on startup of the Agent.
+   * The propertyFile is the name of the property file that will 
be loaded on startup
+   * of the Agent.
* 
* The file will be searched for, in order, in the following directories:
* 
-   *  the current directory
-   *  the home directory
-   *  the class path
+   * the current directory
+   * the home directory
+   * the class path
* 
* Only the first file found will be 

[09/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java
index 6bf240f..1ba6b84 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -45,36 +43,31 @@ public class RMIRegistryService implements 
RMIRegistryServiceMBean {
   private boolean isRunning;
 
   /**
-   * Constructor to configure RMI Registry to start using default RMI Registry 
-   * port: {@link Registry#REGISTRY_PORT}
+   * Constructor to configure RMI Registry to start using default RMI Registry 
port:
+   * {@link Registry#REGISTRY_PORT}
*/
   public RMIRegistryService() {
 this(Registry.REGISTRY_PORT);
   }
 
   /**
-   * Constructor to configure RMI Registry to start using given RMI Registry
-   * port.
+   * Constructor to configure RMI Registry to start using given RMI Registry 
port.
* 
-   * @param port
-   *  to run RMI Registry on
+   * @param port to run RMI Registry on
*/
   public RMIRegistryService(int port) {
 setPort(port);
   }
 
   /**
-   * Constructor to configure RMI Registry to start using given RMI Registry
-   * port & host bind address.
+   * Constructor to configure RMI Registry to start using given RMI Registry 
port & host bind
+   * address.
* 
-   * @param host
-   *  to bind RMI Registry to
-   * @param port
-   *  to run RMI Registry on
+   * @param host to bind RMI Registry to
+   * @param port to run RMI Registry on
* 
-   * @throws UnknownHostException
-   *   if IP Address can not be resolved for the given host string 
while
-   *   creating the RMIServerSocketFactory
+   * @throws UnknownHostException if IP Address can not be resolved for the 
given host string while
+   * creating the RMIServerSocketFactory
*/
   public RMIRegistryService(String host, int port) throws UnknownHostException 
{
 setPort(port);
@@ -83,7 +76,7 @@ public class RMIRegistryService implements 
RMIRegistryServiceMBean {
   ssf = new RMIServerSocketFactoryImpl(host);
 }
   }
-  
+
   /**
* Returns the host on which rmiregistry listens for incoming connections
*
@@ -96,16 +89,15 @@ public class RMIRegistryService implements 
RMIRegistryServiceMBean {
   /**
* Sets the host on which rmiregistry listens for incoming connections
* 
-   * @param host
-   *  the host on which rmiregistry listens for incoming connections
+   * @param host the host on which rmiregistry listens for incoming connections
*/
   protected void setHost(String host) {
-if (isRunning()) { 
+if (isRunning()) {
   throw new IllegalStateException("RMIRegistryService is running, cannot 
change the host");
 }
 this.host = host;
   }
-  
+
   /**
* Returns the port on which rmiregistry listens for incoming connections
* 
@@ -118,11 +110,10 @@ public class RMIRegistryService implements 

[26/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/SystemMemberBridgeServer.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/SystemMemberBridgeServer.java 
b/geode-core/src/main/java/org/apache/geode/admin/SystemMemberBridgeServer.java
index 71fb7e1..7a1fb1a 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/SystemMemberBridgeServer.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/SystemMemberBridgeServer.java
@@ -1,26 +1,24 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin;
 
 import org.apache.geode.cache.server.ServerLoadProbe;
 
 /**
- * Administrative interface that represents a CacheServer that
- * serves the contents of a system member's cache. 
+ * Administrative interface that represents a CacheServer that serves the 
contents of a system
+ * member's cache.
  *
  * @see SystemMemberCache#addCacheServer
  *
@@ -30,39 +28,33 @@ import org.apache.geode.cache.server.ServerLoadProbe;
 @Deprecated
 public interface SystemMemberBridgeServer {
 
-  /** 
-   * Returns the port on which this bridge server listens for bridge
-   * clients to connect.
+  /**
+   * Returns the port on which this bridge server listens for bridge clients 
to connect.
*/
   public int getPort();
 
   /**
-   * Sets the port on which this bridge server listens for bridge
-   * clients to connect.
+   * Sets the port on which this bridge server listens for bridge clients to 
connect.
*
-   * @throws AdminException
-   * If this bridge server is running
+   * @throws AdminException If this bridge server is running
*/
   public void setPort(int port) throws AdminException;
 
   /**
-   * Starts this bridge server.  Once the server is running, its
-   * configuration cannot be changed.
+   * Starts this bridge server. Once the server is running, its configuration 
cannot be changed.
*
-   * @throws AdminException
-   * If an error occurs while starting the bridge server
+   * @throws AdminException If an error occurs while starting the bridge server
*/
   public void start() throws AdminException;
 
-  /** 
+  /**
* Returns whether or not this bridge server is running
*/
   public boolean isRunning();
 
   /**
-   * Stops this bridge server.  Note that the
-   * BridgeServer can be reconfigured and restarted if
-   * desired.
+   * Stops this bridge server. Note that the BridgeServer can be 
reconfigured and
+   * restarted if desired.
*/
   public void stop() throws AdminException;
 
@@ -72,80 +64,87 @@ public interface SystemMemberBridgeServer {
   public void refresh();
 
   /**
-   * Returns a string representing the ip address or host name that this server
-   * will listen on.
+   * Returns a string representing the ip address or host name that this 
server will listen on.
+   * 
* @return the ip address or host name that this server is to listen on
* @since GemFire 5.7
*/
   public String getBindAddress();
+
   /**
-   * Sets the ip address or host name that this server is to listen on for
-   * client connections.
-   * Setting a specific bind address will cause the bridge server to always
-   * use this address and ignore any address specified by "server-bind-address"
-   * or "bind-address" in the gemfire.properties file
-  

[18/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionEventImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionEventImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionEventImpl.java
index c59e049..74115bb 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionEventImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionEventImpl.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.internal;
 
@@ -21,34 +19,30 @@ import org.apache.geode.distributed.DistributedMember;
 import org.apache.geode.cache.Operation;
 
 /**
- * An event that describes an operation on a region.
- * Instances of this are delivered to a {@link SystemMemberCacheListener} when 
a
- * a region comes or goes.
+ * An event that describes an operation on a region. Instances of this are 
delivered to a
+ * {@link SystemMemberCacheListener} when a a region comes or goes.
  *
  * @since GemFire 5.0
  */
-public class SystemMemberRegionEventImpl
-  extends SystemMemberCacheEventImpl
-  implements SystemMemberRegionEvent
-{
+public class SystemMemberRegionEventImpl extends SystemMemberCacheEventImpl
+implements SystemMemberRegionEvent {
 
-  /** 
-   * The path of region created/destroyed 
+  /**
+   * The path of region created/destroyed
*/
   private final String regionPath;
 
-  ///  Constructors  ///
+  /// Constructors ///
 
   /**
-   * Creates a new SystemMemberRegionEvent for the member
-   * with the given id.
+   * Creates a new SystemMemberRegionEvent for the member with 
the given id.
*/
   protected SystemMemberRegionEventImpl(DistributedMember id, Operation op, 
String regionPath) {
 super(id, op);
 this.regionPath = regionPath;
   }
 
-  /  Instance Methods  /
+  / Instance Methods /
 
   public String getRegionPath() {
 return this.regionPath;

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionImpl.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionImpl.java
 
b/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionImpl.java
index 9e8f392..fbf0839 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionImpl.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/internal/SystemMemberRegionImpl.java
@@ -1,25 +1,23 @@
 /*
- * 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
+ * Licensed to the Apache Software Foundation (ASF) under 

[08/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java
index dd52a4e..06b0be9 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -32,46 +30,42 @@ import javax.naming.OperationNotSupportedException;
 import java.util.concurrent.atomic.AtomicInteger;
 
 /**
- * Defines methods that all SystemMember MBeans should
- * implement.
+ * Defines methods that all SystemMember MBeans should implement.
  *
  * @since GemFire 4.0
  */
-public interface SystemMemberJmx
-  extends SystemMember, NotificationListener {
-  /** 
-   * Notification type for indicating a cache got created on a member of this 
-   * distributed system.
+public interface SystemMemberJmx extends SystemMember, NotificationListener {
+  /**
+   * Notification type for indicating a cache got created on a member of this 
distributed system.
*/
   public static final String NOTIF_CACHE_CREATED =
   DistributionConfig.GEMFIRE_PREFIX + "distributedsystem.cache.created";
-  /** 
-   * Notification type for indicating a cache is closed on a member of this 
-   * distributed system.
+  /**
+   * Notification type for indicating a cache is closed on a member of this 
distributed system.
*/
   public static final String NOTIF_CACHE_CLOSED =
   DistributionConfig.GEMFIRE_PREFIX + "distributedsystem.cache.closed";
-  /** 
-   * Notification type for indicating a region is created in a cache on a 
member 
-   * of this distributed system.
+  /**
+   * Notification type for indicating a region is created in a cache on a 
member of this distributed
+   * system.
*/
   public static final String NOTIF_REGION_CREATED =
   DistributionConfig.GEMFIRE_PREFIX + 
"distributedsystem.cache.region.created";
-  /** 
-   * Notification type for indicating a region was removed from a cache on a 
-   * member of this distributed system.
+  /**
+   * Notification type for indicating a region was removed from a cache on a 
member of this
+   * distributed system.
*/
   public static final String NOTIF_REGION_LOST =
   DistributionConfig.GEMFIRE_PREFIX + 
"distributedsystem.cache.region.lost";
-  
+
   /** Notification type for indicating client joined */
   public static final String NOTIF_CLIENT_JOINED =
   DistributionConfig.GEMFIRE_PREFIX + 
"distributedsystem.cache.client.joined";
-  
+
   /** Notification type for indicating client left */
   public static final String NOTIF_CLIENT_LEFT =
   DistributionConfig.GEMFIRE_PREFIX + 
"distributedsystem.cache.client.left";
-  
+
   /** Notification type for indicating client crashed */
   public static final String NOTIF_CLIENT_CRASHED =
   DistributionConfig.GEMFIRE_PREFIX + 
"distributedsystem.cache.client.crashed";
@@ -84,61 +78,54 @@ public interface SystemMemberJmx
   public int getRefreshInterval();
 
   /**
-   * RefreshInterval is now set only through the 

[25/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/SystemMembershipListener.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/SystemMembershipListener.java 
b/geode-core/src/main/java/org/apache/geode/admin/SystemMembershipListener.java
index b1d6afe..eed5578 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/SystemMembershipListener.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/SystemMembershipListener.java
@@ -1,29 +1,29 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin;
 
 /**
- * A listener whose callback methods are invoked when members join or
- * leave the GemFire distributed system.
+ * A listener whose callback methods are invoked when members join or leave 
the GemFire distributed
+ * system.
  *
  * @see AdminDistributedSystem#addMembershipListener
  *
  * @since GemFire 3.5
- * @deprecated as of 7.0 use the management
 package instead
+ * @deprecated as of 7.0 use the management
+ * package instead
  */
 public interface SystemMembershipListener {
 
@@ -33,29 +33,27 @@ public interface SystemMembershipListener {
   public void memberJoined(SystemMembershipEvent event);
 
   /**
-   * Invoked when a member has gracefully left the distributed system.  This
-   * occurs when the member took action to remove itself from the distributed
-   * system.
+   * Invoked when a member has gracefully left the distributed system. This 
occurs when the member
+   * took action to remove itself from the distributed system.
*/
   public void memberLeft(SystemMembershipEvent event);
 
   /**
-   * Invoked when a member has unexpectedly left the distributed
-   * system.  This occurs when a member is forcibly removed from the
-   * distributed system by another process, such as from
-   *  failure 
detection, or
-   * 
-   * network partition detection processing.
+   * Invoked when a member has unexpectedly left the distributed system. This 
occurs when a member
+   * is forcibly removed from the distributed system by another process, such 
as from  failure 
detection, or  
network
+   * partition detection processing.
*/
   public void memberCrashed(SystemMembershipEvent event);
 
-//   /**
-//* Invoked when a member broadcasts an informational message.
-//*
-//* @see org.apache.geode.distributed.DistributedSystem#fireInfoEvent
-//*
-//* @since GemFire 4.0
-//*/
-//   public void memberInfo(SystemMembershipEvent event);
+  // /**
+  // * Invoked when a member broadcasts an informational message.
+  // *
+  // * @see org.apache.geode.distributed.DistributedSystem#fireInfoEvent
+  // *
+  // * @since GemFire 4.0
+  // */
+  // public void memberInfo(SystemMembershipEvent event);
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/UnmodifiableConfigurationException.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/UnmodifiableConfigurationException.java
 
b/geode-core/src/main/java/org/apache/geode/admin/UnmodifiableConfigurationException.java
index e89fc96..758dbd7 100755
--- 
a/geode-core/src/main/java/org/apache/geode/admin/UnmodifiableConfigurationException.java
+++ 

[31/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/StatisticsFactory.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/StatisticsFactory.java 
b/geode-core/src/main/java/org/apache/geode/StatisticsFactory.java
index 4fe13ee..8056b73 100644
--- a/geode-core/src/main/java/org/apache/geode/StatisticsFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/StatisticsFactory.java
@@ -1,49 +1,43 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode;
 
-//import org.apache.geode.distributed.DistributedSystem;
-//import org.apache.geode.internal.statistics.StatArchiveFormat;
-//import java.io.IOException;
-//import java.io.Reader;
+// import org.apache.geode.distributed.DistributedSystem;
+// import org.apache.geode.internal.statistics.StatArchiveFormat;
+// import java.io.IOException;
+// import java.io.Reader;
 
 /**
- * Instances of this interface provide methods that create instances
- * of {@link Statistics}.
- * It can also be used to create instances of {@link StatisticDescriptor}
- * and {@link StatisticsType} because it implements {@link 
StatisticsTypeFactory}.
- * {@link
- * org.apache.geode.distributed.DistributedSystem} is the only
- * instance of this interface.
+ * Instances of this interface provide methods that create instances of {@link 
Statistics}. It can
+ * also be used to create instances of {@link StatisticDescriptor} and {@link 
StatisticsType}
+ * because it implements {@link StatisticsTypeFactory}.
+ * {@link org.apache.geode.distributed.DistributedSystem} is the only instance 
of this interface.
  *
  * 
  *
- * A StatisticsFactory can create a {@link
- * StatisticDescriptor statistic} of three numeric types:
- * int, long, and double.  A
- * statistic (StatisticDescriptor) can either be a
- * gauge meaning that its value can increase and decrease or a
- * counter meaning that its value is strictly increasing.
- * Marking a statistic as a counter allows statistic display tools
- * to properly display a statistics whose value "wraps around" (that
- * is, exceeds its maximum value).
+ * A StatisticsFactory can create a {@link StatisticDescriptor 
statistic} of three
+ * numeric types: int, long, and 
double. A statistic
+ * (StatisticDescriptor) can either be a gauge meaning 
that its value can
+ * increase and decrease or a counter meaning that its value is 
strictly increasing. Marking
+ * a statistic as a counter allows statistic display tools to properly display 
a statistics whose
+ * value "wraps around" (that is, exceeds its maximum value).
+ * 
+ * 
+ * The following code is an example of how to create a type using the api. In 
this example the type
+ * has two stats whose values always increase:
  * 
- * The following code is an example of how to create a type using the api.
- * In this example the type has two stats whose values always increase:
  * 
 StatisticsFactory f = ...;
 StatisticsType t = f.createType(
@@ -62,13 +56,16 @@ package org.apache.geode;
 this.sampleCountId = this.samplerStats.nameToId("sampleCount");
 this.sampleTimeId = this.samplerStats.nameToId("sampleTime");
  * 
+ * 
  * Later on the stat ids can be used to increment the stats:
+ * 
  * 
-this.samplerStats.incInt(this.sampleCountId, 1);
-

[01/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates. [F

2016-10-24 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-1985 7b9a3832b -> 45513045c (forced update)


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/cache/EntryNotFoundInRegion.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/EntryNotFoundInRegion.java 
b/geode-core/src/main/java/org/apache/geode/cache/EntryNotFoundInRegion.java
index 17105b1..ad0f516 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/EntryNotFoundInRegion.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/EntryNotFoundInRegion.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.cache;
 
@@ -29,22 +27,26 @@ public class EntryNotFoundInRegion extends GemFireException 
{
 
   /**
* Generates an {@link InternalGemFireError}
+   * 
* @param msg the detail message
* @deprecated Do not create instances of this class.
*/
   @Deprecated
   public EntryNotFoundInRegion(String msg) {
-throw new 
InternalGemFireError(LocalizedStrings.EntryNotFoundInRegion_THIS_CLASS_IS_DEPRECATED.toLocalizedString());
+throw new InternalGemFireError(
+
LocalizedStrings.EntryNotFoundInRegion_THIS_CLASS_IS_DEPRECATED.toLocalizedString());
   }
 
   /**
* Generates an {@link InternalGemFireError}
+   * 
* @param msg the detail message
* @param cause the causal Throwable
* @deprecated do not create instances of this class.
*/
   @Deprecated
   public EntryNotFoundInRegion(String msg, Throwable cause) {
-throw new 
InternalGemFireError(LocalizedStrings.EntryNotFoundInRegion_THIS_CLASS_IS_DEPRECATED.toLocalizedString());
+throw new InternalGemFireError(
+
LocalizedStrings.EntryNotFoundInRegion_THIS_CLASS_IS_DEPRECATED.toLocalizedString());
   }
 }



[11/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JServerSocketFactory.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JServerSocketFactory.java
 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JServerSocketFactory.java
index 474f8dd..e799279 100644
--- 
a/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JServerSocketFactory.java
+++ 
b/geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JServerSocketFactory.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.geode.admin.jmx.internal;
 
@@ -32,129 +30,107 @@ import java.util.Properties;
 /**
  * Creates ServerSockets for JMX adaptors.
  * 
- * The interface {@link mx4j.tools.adaptor.AdaptorServerSocketFactory} is
- * implemented in order to support securing of {@link 
- * mx4j.tools.adaptor.http.HttpAdaptor}.
+ * The interface {@link mx4j.tools.adaptor.AdaptorServerSocketFactory} is 
implemented in order to
+ * support securing of {@link mx4j.tools.adaptor.http.HttpAdaptor}.
  * 
- * The interface {@link java.rmi.server.RMIServerSocketFactory} is implemented
- * to support the securing of {@link 
- * javax.management.remote.JMXConnectorServer}.  See {@link
- * javax.management.remote.rmi.RMIConnectorServer} for the actual subclass that
- * is used for the JMX RMI adaptor.
+ * The interface {@link java.rmi.server.RMIServerSocketFactory} is implemented 
to support the
+ * securing of {@link javax.management.remote.JMXConnectorServer}. See
+ * {@link javax.management.remote.rmi.RMIConnectorServer} for the actual 
subclass that is used for
+ * the JMX RMI adaptor.
  * 
  * Complete info on JSSE, including debugging, can be found at
  * http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html;>
  * 
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html
  *
- * @since GemFire 3.5 (old name was SSLAdaptorServerSocketFactory)
+ * @since GemFire 3.5 (old name was SSLAdaptorServerSocketFactory)
  */
-public class MX4JServerSocketFactory 
-implements mx4j.tools.adaptor.AdaptorServerSocketFactory,
-   java.rmi.server.RMIServerSocketFactory {
+public class MX4JServerSocketFactory implements 
mx4j.tools.adaptor.AdaptorServerSocketFactory,
+java.rmi.server.RMIServerSocketFactory {
 
   private static final Logger logger = LogService.getLogger();
-  
+
   private static final int DEFAULT_BACKLOG = 50;
-  
+
   private final SocketCreator socketCreator;
   private String bindAddress = DistributedSystemConfig.DEFAULT_BIND_ADDRESS;
   private int backlog = DEFAULT_BACKLOG;
-  
+
   /**
* Constructs new instance of MX4JServerSocketFactory.
* 
-   * @param useSSL
-   *  true if ssl is to be enabled
-   * @param needClientAuth
-   *  true if client authentication is required
-   * @param protocols
-   *  space-delimited list of ssl protocols to use
-   * @param ciphers
-   *  space-delimited list of ssl ciphers to use
-   * @param gfsecurityProps
-   *  vendor properties passed in through gfsecurity.properties
+   * @param useSSL true if ssl is to be enabled
+   * @param needClientAuth true if client authentication is required
+   * @param protocols space-delimited list of 

[30/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/SystemFailure.java
--
diff --git a/geode-core/src/main/java/org/apache/geode/SystemFailure.java 
b/geode-core/src/main/java/org/apache/geode/SystemFailure.java
index 8acf473..99b0671 100644
--- a/geode-core/src/main/java/org/apache/geode/SystemFailure.java
+++ b/geode-core/src/main/java/org/apache/geode/SystemFailure.java
@@ -1,18 +1,16 @@
 /*
- * 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
+ * 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
+ * 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.
+ * 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.
  */
 /**
  * 
@@ -28,97 +26,76 @@ import org.apache.geode.internal.i18n.LocalizedStrings;
 /**
  * Catches and responds to JVM failure
  * 
- * This class represents a catastrophic failure of the system,
- * especially the Java virtual machine.  Any class may,
- * at any time, indicate that a system failure has occurred by calling
- * {@link #initiateFailure(Error)} (or, less commonly,
- * {@link #setFailure(Error)}).
+ * This class represents a catastrophic failure of the system, especially the 
Java virtual machine.
+ * Any class may, at any time, indicate that a system failure has occurred by 
calling
+ * {@link #initiateFailure(Error)} (or, less commonly, {@link 
#setFailure(Error)}).
  * 
- * In practice, the most common type of failure that is likely to be
- * reported by an otherwise healthy JVM is {@link OutOfMemoryError}.  However,
- * GemFire will report any occurrence of {@link VirtualMachineError} as
- * a JVM failure.
+ * In practice, the most common type of failure that is likely to be reported 
by an otherwise
+ * healthy JVM is {@link OutOfMemoryError}. However, GemFire will report any 
occurrence of
+ * {@link VirtualMachineError} as a JVM failure.
  * 
- * When a failure is reported, you must assume that the JVM has broken 
- * its fundamental execution contract with your application. 
- * No programming invariant can be assumed to be true, and your 
+ * When a failure is reported, you must assume that the JVM has broken its 
fundamental execution
+ * contract with your application. No programming invariant can be 
assumed to be true, and your
  * entire application must be regarded as corrupted.
- * Failure Hooks
- * GemFire uses this class to disable its distributed system (group
- * communication) and any open caches.  It also provides a hook for you
- * to respond to after GemFire disables itself.
- * Failure WatchDog
- * When {@link #startThreads()} is called, a "watchdog" {@link Thread} is 
started that 
- * periodically checks to see if system corruption has been reported.  When 
- * system corruption is detected, this thread proceeds to:
+ * Failure Hooks GemFire uses this class to disable its distributed 
system (group
+ * communication) and any open caches. It also provides a hook for you to 
respond to after GemFire
+ * disables itself.
+ * Failure WatchDog When {@link #startThreads()} is called, a 
"watchdog" {@link Thread} is
+ * started that periodically checks to see if system corruption has been 
reported. When system
+ * corruption is detected, this thread proceeds to:
  * 
  * 
- * 
- * Close GemFire -- Group communication is ceased (this cache
- * member recuses itself from the distributed system) and the cache
- * is further poisoned (it is pointless to try to cleanly close it at this
- * point.).
+ * Close GemFire -- Group communication is ceased (this cache 
member recuses 

[50/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/build.gradle
--
diff --git a/build.gradle b/build.gradle
index bc31c92..a734e05 100755
--- a/build.gradle
+++ b/build.gradle
@@ -24,6 +24,7 @@ buildscript {
 classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.0"
 classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
 classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1'
+classpath "com.diffplug.gradle.spotless:spotless:2.2.0"
   }
 }
 
@@ -45,7 +46,7 @@ allprojects {
   // We want to see all test results.  This is equivalatent to setting 
--continue
   // on the command line.
   gradle.startParameter.continueOnFailure = true
-  
+
   repositories {
 mavenCentral()
 maven { url "http://repo.spring.io/release; }
@@ -63,7 +64,7 @@ task cleanAll(type: Delete) {
   delete rootProject.buildDir
   if (!buildRoot.isEmpty()) {
 delete buildRoot
-  }  
+  }
 }
 
 // allow external projects to override include location
@@ -84,6 +85,13 @@ apply from: "${scriptDir}/rat.gradle"
 subprojects {
   // Make sure clean task for rootProject runs last
   clean.finalizedBy rootProject.cleanAll
+
+  apply plugin: "com.diffplug.gradle.spotless"
+  spotless {
+java {
+  eclipseFormatFile 
"${rootProject.projectDir}/etc/eclipse-java-google-style.xml"
+}
+  }
 }
 
 task cleanExamples(type: GradleBuild) {

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/eclipse-java-google-style.xml
--
diff --git a/etc/eclipse-java-google-style.xml 
b/etc/eclipse-java-google-style.xml
new file mode 100644
index 000..08d930a
--- /dev/null
+++ b/etc/eclipse-java-google-style.xml
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/eclipseFormatterProfile.xml
--
diff --git a/etc/eclipseFormatterProfile.xml b/etc/eclipseFormatterProfile.xml
deleted file mode 100755
index b9f8410..000
--- a/etc/eclipseFormatterProfile.xml
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-



[49/55] [abbrv] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-24 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/intellij-java-google-style.xml
--
diff --git a/etc/intellij-java-google-style.xml 
b/etc/intellij-java-google-style.xml
new file mode 100644
index 000..22d9c23
--- /dev/null
+++ b/etc/intellij-java-google-style.xml
@@ -0,0 +1,365 @@
+
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+
+  
+  
+
+
+  
+  
+
+  
+  
+
+
+
+  
+  
+
+  
+  
+
+  
+  
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+  
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/intellijIdeaCodeStyle.xml
--
diff --git a/etc/intellijIdeaCodeStyle.xml b/etc/intellijIdeaCodeStyle.xml
deleted file mode 100755
index 0b5c31b..000
--- a/etc/intellijIdeaCodeStyle.xml
+++ /dev/null
@@ -1,477 +0,0 @@
-
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-  
-
-  
-  
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
-  
-  
-
-
-  
-
-  
-
-  
-true
-  
-
-
-  
-true
-  
-
-
-  
-true
-  
-
-
-  
-true
-  
-
-  
-
-  
-  
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-  

[54/55] [abbrv] incubator-geode git commit: GEODE-1985: Check for index expression reevalaution using a time window

2016-10-24 Thread upthewaterspout
GEODE-1985: Check for index expression reevalaution using a time window

Changing the logic for how to we check to see if an entry may have been
concurrently modified while an indexed query is in progress.

The new logic just has a time window, defaulting to 10 minutes. If the
entry was changed less than 10 minutes for the query started, we will
reevaluate the index expression to make sure the entry is still valid.


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

Branch: refs/heads/feature/GEODE-1985
Commit: d6afb70d474e54a63523b3d3245a67e18f547c15
Parents: 24a7204
Author: Dan Smith 
Authored: Mon Oct 10 17:41:07 2016 -0700
Committer: Dan Smith 
Committed: Mon Oct 24 11:11:15 2016 -0700

--
 .../query/internal/index/IndexManager.java  | 60 ++---
 .../geode/internal/cache/GemFireCacheImpl.java  |  2 +-
 .../geode/internal/cache/LocalRegion.java   |  1 -
 .../query/internal/IndexManagerJUnitTest.java   | 60 +
 ...AbstractIndexMaintenanceIntegrationTest.java | 92 +++-
 ...aintenanceNoReevaluationIntegrationTest.java | 42 +
 .../internal/index/RangeIndexAPIJUnitTest.java  |  6 +-
 .../cache/PartitionedRegionQueryDUnitTest.java  | 37 ++--
 8 files changed, 152 insertions(+), 148 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d6afb70d/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
 
b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
index 27f239e..7a05e7c 100644
--- 
a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
+++ 
b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
@@ -108,12 +108,14 @@ public class IndexManager {
   public static boolean TEST_RANGEINDEX_ONLY = false;
   public static final String INDEX_ELEMARRAY_THRESHOLD_PROP = 
"index_elemarray_threshold";
   public static final String INDEX_ELEMARRAY_SIZE_PROP = 
"index_elemarray_size";
+  public static final String IN_PROGRESS_UPDATE_WINDOW_PROP = 
"index.IN_PROGRESS_UPDATE_WINDOW_MS";
   public static final int INDEX_ELEMARRAY_THRESHOLD =
   Integer.parseInt(System.getProperty(INDEX_ELEMARRAY_THRESHOLD_PROP, 
"100"));
   public static final int INDEX_ELEMARRAY_SIZE =
   Integer.parseInt(System.getProperty(INDEX_ELEMARRAY_SIZE_PROP, "5"));
-  public final static AtomicLong SAFE_QUERY_TIME = new AtomicLong(0);
-  public static boolean ENABLE_UPDATE_IN_PROGRESS_INDEX_CALCULATION = true;
+
+  public static long IN_PROGRESS_UPDATE_WINDOW =
+  Long.getLong(IN_PROGRESS_UPDATE_WINDOW_PROP, 10 * 60 * 1000);
   /** The NULL constant */
   public static final Object NULL = new NullToken();
 
@@ -143,36 +145,9 @@ public class IndexManager {
   }
 
   /**
-   * Stores the largest combination of current time + delta If there is a 
large delta/hiccup in
-   * timings, this allows us to calculate the correct results for a query but, 
reevaluate more
-   * aggressively. But the large hiccup will eventually be rolled off as time 
is always increasing
-   * This is a fix for #47475
-   * 
-   * @param operationTime the last modified time from version tag
-   * @param currentCacheTime
-   */
-  public static boolean setIndexBufferTime(long operationTime, long 
currentCacheTime) {
-long timeDifference = currentCacheTime - operationTime;
-return setNewLargestValue(SAFE_QUERY_TIME, currentCacheTime + 
timeDifference);
-  }
-
-  /**
-   * only for test purposes This should not be called from any product code. 
Calls from product code
-   * will possibly cause continous reevaluation (performance issue) OR 
incorrect query results
-   * (functional issue)
-   **/
-  public static void resetIndexBufferTime() {
-SAFE_QUERY_TIME.set(0);
-  }
-
-  /**
-   * Calculates whether we need to reevluate the key for the region entry We 
added a way to
-   * determine whether to reevaluate an entry for query execution The method 
is to keep track of the
-   * delta and current time in a single long value The value is then used by 
the query to determine
-   * if a region entry needs to be reevaluated, based on subtracting the value 
with the query
-   * execution time. This provides a delta + some false positive time (dts) If 
the dts + last
-   * modified time of the region entry is > query start time, we can assume 
that 

[1/2] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-21 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/spotlessPlugin [created] d0175ec5a


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d0175ec5/etc/intellij-java-google-style.xml
--
diff --git a/etc/intellij-java-google-style.xml 
b/etc/intellij-java-google-style.xml
new file mode 100644
index 000..22d9c23
--- /dev/null
+++ b/etc/intellij-java-google-style.xml
@@ -0,0 +1,365 @@
+
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+
+  
+  
+
+
+  
+  
+
+  
+  
+
+
+
+  
+  
+
+  
+  
+
+  
+  
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+  
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d0175ec5/etc/intellijIdeaCodeStyle.xml
--
diff --git a/etc/intellijIdeaCodeStyle.xml b/etc/intellijIdeaCodeStyle.xml
deleted file mode 100755
index 0b5c31b..000
--- a/etc/intellijIdeaCodeStyle.xml
+++ /dev/null
@@ -1,477 +0,0 @@
-
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-  
-
-  
-  
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
-  
-  
-
-
-  
-
-  
-
-  
-true
-  
-
-
-  
-true
-  
-
-
-  
-true
-  
-
-
-  
-true
-  
-
-  
-
-  
-  
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  
-
-  
-
-
-  
-
-  
-true
-true
-true
-true
-  

[2/2] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.

2016-10-21 Thread upthewaterspout
Added Spotless plugin to enforce formatting standards.
Added Google Java Style guide formatter templates, removed existing formatter 
templates.


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

Branch: refs/heads/feature/spotlessPlugin
Commit: d0175ec5aa8acf1b34ece3183fe03e9874450cbb
Parents: 56917a2
Author: Jared Stewart 
Authored: Wed Oct 12 15:37:48 2016 -0700
Committer: Dan Smith 
Committed: Fri Oct 21 16:30:48 2016 -0700

--
 build.gradle   |  12 +-
 etc/eclipse-java-google-style.xml  | 337 ++
 etc/eclipseFormatterProfile.xml| 295 
 etc/intellij-java-google-style.xml | 365 
 etc/intellijIdeaCodeStyle.xml  | 477 
 gradle/rat.gradle  |   4 +-
 6 files changed, 714 insertions(+), 776 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d0175ec5/build.gradle
--
diff --git a/build.gradle b/build.gradle
index bc31c92..a734e05 100755
--- a/build.gradle
+++ b/build.gradle
@@ -24,6 +24,7 @@ buildscript {
 classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.0"
 classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
 classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1'
+classpath "com.diffplug.gradle.spotless:spotless:2.2.0"
   }
 }
 
@@ -45,7 +46,7 @@ allprojects {
   // We want to see all test results.  This is equivalatent to setting 
--continue
   // on the command line.
   gradle.startParameter.continueOnFailure = true
-  
+
   repositories {
 mavenCentral()
 maven { url "http://repo.spring.io/release; }
@@ -63,7 +64,7 @@ task cleanAll(type: Delete) {
   delete rootProject.buildDir
   if (!buildRoot.isEmpty()) {
 delete buildRoot
-  }  
+  }
 }
 
 // allow external projects to override include location
@@ -84,6 +85,13 @@ apply from: "${scriptDir}/rat.gradle"
 subprojects {
   // Make sure clean task for rootProject runs last
   clean.finalizedBy rootProject.cleanAll
+
+  apply plugin: "com.diffplug.gradle.spotless"
+  spotless {
+java {
+  eclipseFormatFile 
"${rootProject.projectDir}/etc/eclipse-java-google-style.xml"
+}
+  }
 }
 
 task cleanExamples(type: GradleBuild) {

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d0175ec5/etc/eclipse-java-google-style.xml
--
diff --git a/etc/eclipse-java-google-style.xml 
b/etc/eclipse-java-google-style.xml
new file mode 100644
index 000..08d930a
--- /dev/null
+++ b/etc/eclipse-java-google-style.xml
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d0175ec5/etc/eclipseFormatterProfile.xml
--
diff --git a/etc/eclipseFormatterProfile.xml b/etc/eclipseFormatterProfile.xml
deleted file mode 100755
index b9f8410..000
--- a/etc/eclipseFormatterProfile.xml
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-



incubator-geode git commit: GEODE-2019 Adding missing apache license header

2016-10-20 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop bc060f95c -> af55d9292


GEODE-2019 Adding missing apache license header


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

Branch: refs/heads/develop
Commit: af55d9292c2eacf9db43909b9c68c32b927b21de
Parents: bc060f9
Author: Dan Smith 
Authored: Thu Oct 20 17:11:25 2016 -0700
Committer: Dan Smith 
Committed: Thu Oct 20 17:11:25 2016 -0700

--
 .../automated_rebalance.html.md.erb | 16 
 1 file changed, 16 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/af55d929/geode-docs/developing/partitioned_regions/automated_rebalance.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/automated_rebalance.html.md.erb 
b/geode-docs/developing/partitioned_regions/automated_rebalance.html.md.erb
index 387275d..37b7dce 100644
--- a/geode-docs/developing/partitioned_regions/automated_rebalance.html.md.erb
+++ b/geode-docs/developing/partitioned_regions/automated_rebalance.html.md.erb
@@ -1,6 +1,22 @@
 ---
 title:  Automated Rebalancing of Partitioned Region Data
 ---
+
 
 Automated rebalance triggers a rebalance
 (see [Rebalancing Partitioned Region Data](rebalancing_pr_data.html))



[1/2] incubator-geode git commit: GEODE-2022: Marking testRRPRLocalQueryingWithHetroIndexes as flaky

2016-10-20 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop b2e776859 -> 7e659b238


GEODE-2022: Marking testRRPRLocalQueryingWithHetroIndexes as flaky


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7e659b23
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7e659b23
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7e659b23

Branch: refs/heads/develop
Commit: 7e659b2381eae3847d1c7e29bb1b37df518dde35
Parents: 59df3d9
Author: Dan Smith 
Authored: Thu Oct 20 13:07:35 2016 -0700
Committer: Dan Smith 
Committed: Thu Oct 20 13:09:12 2016 -0700

--
 .../cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java  | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7e659b23/geode-core/src/test/java/org/apache/geode/cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java
--
diff --git 
a/geode-core/src/test/java/org/apache/geode/cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java
 
b/geode-core/src/test/java/org/apache/geode/cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java
index c9e5084..3e8250b 100644
--- 
a/geode-core/src/test/java/org/apache/geode/cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/cache/query/partitioned/PRColocatedEquiJoinDUnitTest.java
@@ -19,6 +19,7 @@
  */
 package org.apache.geode.cache.query.partitioned;
 
+import org.apache.geode.test.junit.categories.FlakyTest;
 import org.junit.experimental.categories.Category;
 import org.junit.Test;
 
@@ -1341,6 +1342,7 @@ public class PRColocatedEquiJoinDUnitTest extends 
PartitionedRegionDUnitTestCase
 
 
   @Test
+  @Category(FlakyTest.class) // GEODE-2022
   public void testRRPRLocalQueryingWithHetroIndexes() throws Exception {
 
 Host host = Host.getHost(0);



[2/2] incubator-geode git commit: GEODE-388: Marking dynamic-region-factory as deprecated in the xml.

2016-10-20 Thread upthewaterspout
GEODE-388: Marking dynamic-region-factory as deprecated in the xml.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/59df3d93
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/59df3d93
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/59df3d93

Branch: refs/heads/develop
Commit: 59df3d93e7c51e43685356de82b074531966015f
Parents: b2e7768
Author: Dan Smith 
Authored: Wed Oct 19 10:49:07 2016 -0700
Committer: Dan Smith 
Committed: Thu Oct 20 13:09:12 2016 -0700

--
 .../META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd | 4 
 1 file changed, 4 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/59df3d93/geode-core/src/main/resources/META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd
--
diff --git 
a/geode-core/src/main/resources/META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd
 
b/geode-core/src/main/resources/META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd
index adf734c..d3d83f1 100755
--- 
a/geode-core/src/main/resources/META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd
+++ 
b/geode-core/src/main/resources/META-INF/schemas/geode.apache.org/schema/cache/cache-1.0.xsd
@@ -1245,7 +1245,11 @@ As of 6.5 disk-dirs is deprecated on region-attributes. 
Use disk-store-name inst
   
   
 
+  deprecated
   
+dynamic-region-factory is deprecated. Use functions to create regions 
dynamically
+instead.
+
 A "dynamic-region-factory" element configures a dynamic region factory 
for
 this cache. If this optional element is missing then the cache does not
 support dynamic regions.



[2/2] incubator-geode git commit: Adding a docker container to build and view the geode docs

2016-10-19 Thread upthewaterspout
Adding a docker container to build and view the geode docs


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

Branch: refs/heads/develop
Commit: bc7a675a7c2d819c5d99f070d29e485cf1c0ad64
Parents: e130e5b
Author: Dan Smith 
Authored: Fri Oct 14 17:54:12 2016 -0700
Committer: Dan Smith 
Committed: Wed Oct 19 10:19:16 2016 -0700

--
 dev-tools/docker/docs/Dockerfile| 25 ++
 dev-tools/docker/docs/build-docs.sh | 32 +
 dev-tools/docker/docs/build-image-common.sh | 61 
 dev-tools/docker/docs/view-docs.sh  | 35 ++
 4 files changed, 153 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/bc7a675a/dev-tools/docker/docs/Dockerfile
--
diff --git a/dev-tools/docker/docs/Dockerfile b/dev-tools/docker/docs/Dockerfile
new file mode 100644
index 000..67a31f4
--- /dev/null
+++ b/dev-tools/docker/docs/Dockerfile
@@ -0,0 +1,25 @@
+# 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.
+
+FROM ruby:2.3.0
+MAINTAINER Geode Community 
+
+LABEL Vendor="Apache Geode (incubating)"
+LABEL version=unstable
+
+ADD Gemfile Gemfile
+ADD Gemfile.lock Gemfile.lock
+RUN bundle install

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/bc7a675a/dev-tools/docker/docs/build-docs.sh
--
diff --git a/dev-tools/docker/docs/build-docs.sh 
b/dev-tools/docker/docs/build-docs.sh
new file mode 100755
index 000..4b670b0
--- /dev/null
+++ b/dev-tools/docker/docs/build-docs.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# 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.
+
+set -e -x -u
+
+. $SCRIPT_DIR/build-image-common.sh
+
+docker run -i -t \
+  --rm=true \
+  -w "/home/${USER_NAME}/incubator-geode/geode-book" \
+  -u "${USER_NAME}" \
+  -v "$PWD:/home/${USER_NAME}/incubator-geode" \
+  -v "/home/${USER_NAME}/.m2:/home/${USER_NAME}/.m2" \
+  ${IMAGE_NAME}-${USER_NAME} \
+  bundle exec bookbinder bind local
+
+popd
+

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/bc7a675a/dev-tools/docker/docs/build-image-common.sh
--
diff --git a/dev-tools/docker/docs/build-image-common.sh 
b/dev-tools/docker/docs/build-image-common.sh
new file mode 100644
index 000..ff0de73
--- /dev/null
+++ b/dev-tools/docker/docs/build-image-common.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+# 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
+# 

[1/2] incubator-geode git commit: GEODE-388: Deprecating DynamicRegionFactory

2016-10-19 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop e130e5b62 -> ad43d4472


GEODE-388: Deprecating DynamicRegionFactory

Marking DynamicRegionFactory as deprecated.


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

Branch: refs/heads/develop
Commit: ad43d4472c3bc9bb4500b34e2aec58f7fcb406d3
Parents: bc7a675
Author: Dan Smith 
Authored: Mon Oct 17 16:28:51 2016 -0700
Committer: Dan Smith 
Committed: Wed Oct 19 10:19:16 2016 -0700

--
 .../main/java/org/apache/geode/cache/DynamicRegionFactory.java   | 4 
 1 file changed, 4 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/ad43d447/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java 
b/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java
index 3cfa73b..a4d84a6 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionFactory.java
@@ -31,6 +31,7 @@ import org.apache.geode.SystemFailure;
 import org.apache.geode.cache.client.Pool;
 import org.apache.geode.cache.client.PoolManager;
 import org.apache.geode.cache.client.internal.ServerRegionProxy;
+import org.apache.geode.cache.execute.FunctionService;
 import org.apache.geode.cache.wan.GatewaySender;
 import org.apache.geode.distributed.DistributedMember;
 import org.apache.geode.distributed.internal.InternalDistributedSystem;
@@ -126,9 +127,12 @@ import org.apache.geode.security.GemFireSecurityException;
  * not directly access this Region; instead use the methods on this factory.
  * 
  * @since GemFire 4.3
+ * @deprecated This class is deprecated. Use {@link FunctionService} to create 
regions on
+ * other members instead.
  *
  */
 @SuppressWarnings("deprecation")
+@Deprecated
 public abstract class DynamicRegionFactory  {
 
   public static final String dynamicRegionListName = "__DynamicRegions";



[22/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/basic_config/the_cache/setting_cache_properties.html.md.erb
--
diff --git 
a/geode-docs/basic_config/the_cache/setting_cache_properties.html.md.erb 
b/geode-docs/basic_config/the_cache/setting_cache_properties.html.md.erb
index 76d5066..c56eaa7 100644
--- a/geode-docs/basic_config/the_cache/setting_cache_properties.html.md.erb
+++ b/geode-docs/basic_config/the_cache/setting_cache_properties.html.md.erb
@@ -2,6 +2,23 @@
 title:  Options for Configuring the Cache and Data Regions
 ---
 
+
+
 To populate your Apache Geode cache and fine-tune its storage and distribution 
behavior, you need to define cached data regions and provide custom 
configuration for the cache and regions.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/configuring/chapter_overview.html.md.erb
--
diff --git a/geode-docs/configuring/chapter_overview.html.md.erb 
b/geode-docs/configuring/chapter_overview.html.md.erb
index 8026e72..295444c 100644
--- a/geode-docs/configuring/chapter_overview.html.md.erb
+++ b/geode-docs/configuring/chapter_overview.html.md.erb
@@ -2,6 +2,23 @@
 title:  Configuring and Running a Cluster
 ---
 
+
+
 You use the `gfsh` command-line utility to configure your Apache Geode cluster 
(also called a "distributed system"). The cluster configuration service 
persists the cluster configurations and distributes the configurations to 
members of the cluster. There are also several additional ways to configure a 
cluster.
 
 You use `gfsh` to configure regions, disk stores, members, and other Geode 
objects. You also use `gfsh` to start and stop locators, servers, and Geode 
monitoring tools. As you execute these commands, the cluster configuration 
service persists the configuration. When new members join the cluster, the 
service distributes the configuration to the new members.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/configuring/cluster_config/deploying_application_jars.html.md.erb
--
diff --git 
a/geode-docs/configuring/cluster_config/deploying_application_jars.html.md.erb 
b/geode-docs/configuring/cluster_config/deploying_application_jars.html.md.erb
index 08eb1d5..1e43753 100644
--- 
a/geode-docs/configuring/cluster_config/deploying_application_jars.html.md.erb
+++ 
b/geode-docs/configuring/cluster_config/deploying_application_jars.html.md.erb
@@ -2,6 +2,23 @@
 title:  Deploying Application JARs to Apache Geode Members
 ---
 
+
+
 You can dynamically deploy your application JAR files to specific members or 
to all members in your distributed system. Geode automatically keeps track of 
JAR file versions; autoloads the deployed JAR files to the CLASSPATH; and 
auto-registers any functions that the JAR contains.
 
 To deploy and undeploy application JAR files in Apache Geode, use the `gfsh` 
`deploy` or `undeploy` command. You can deploy a single JAR or multiple JARs 
(by either specifying the JAR filenames or by specifying a directory that 
contains the JAR files), and you can also target the deployment to a member 
group or multiple member group. For example, after connecting to the 
distributed system where you want to deploy the JARs, you could type at the 
`gfsh` prompt:

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/configuring/cluster_config/export-import.html.md.erb
--
diff --git a/geode-docs/configuring/cluster_config/export-import.html.md.erb 
b/geode-docs/configuring/cluster_config/export-import.html.md.erb
index e730c5b..5a89f51 100644
--- a/geode-docs/configuring/cluster_config/export-import.html.md.erb
+++ b/geode-docs/configuring/cluster_config/export-import.html.md.erb
@@ -2,6 +2,23 @@
 title:  Exporting and Importing Cluster Configurations
 ---
 
+
+
 The cluster configuration service exports and imports configurations created 
using `gfsh` for an entire Apache Geode cluster.
 
 The cluster configuration service saves the cluster configuration as you 
create a regions, disk-stores and other objects using `gfsh` commands. You can 
export this configuration as well as any jar files that contain application 
files to a zip file and then import this configuration to create a new cluster.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/configuring/cluster_config/gfsh_config_troubleshooting.html.md.erb
--
diff --git 
a/geode-docs/configuring/cluster_config/gfsh_config_troubleshooting.html.md.erb 
b/geode-docs/configuring/cluster_config/gfsh_config_troubleshooting.html.md.erb
index 51f89b0..638ff1d 100644
--- 

[20/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/configure_pr_single_hop.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/configure_pr_single_hop.html.md.erb 
b/geode-docs/developing/partitioned_regions/configure_pr_single_hop.html.md.erb
index 5518905..a7eeeb2 100644
--- 
a/geode-docs/developing/partitioned_regions/configure_pr_single_hop.html.md.erb
+++ 
b/geode-docs/developing/partitioned_regions/configure_pr_single_hop.html.md.erb
@@ -2,6 +2,23 @@
 title:  Configure Client Single-Hop Access to Server-Partitioned Regions
 ---
 
+
+
 Configure your client/server system for direct, single-hop access to 
partitioned region data in the servers.
 
 This requires a client/server installation that uses one or more partitioned 
regions on the server.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/configuring_bucket_for_pr.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/configuring_bucket_for_pr.html.md.erb
 
b/geode-docs/developing/partitioned_regions/configuring_bucket_for_pr.html.md.erb
index 7ee7133..ccb7e71 100644
--- 
a/geode-docs/developing/partitioned_regions/configuring_bucket_for_pr.html.md.erb
+++ 
b/geode-docs/developing/partitioned_regions/configuring_bucket_for_pr.html.md.erb
@@ -2,6 +2,23 @@
 title:  Configuring the Number of Buckets for a Partitioned Region
 ---
 
+
+
 Decide how many buckets to assign to your partitioned region and set the 
configuration accordingly.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/configuring_ha_for_pr.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/configuring_ha_for_pr.html.md.erb 
b/geode-docs/developing/partitioned_regions/configuring_ha_for_pr.html.md.erb
index a9a98fb..c084f4a 100644
--- 
a/geode-docs/developing/partitioned_regions/configuring_ha_for_pr.html.md.erb
+++ 
b/geode-docs/developing/partitioned_regions/configuring_ha_for_pr.html.md.erb
@@ -2,6 +2,23 @@
 title:  Configure High Availability for a Partitioned Region
 ---
 
+
+
 Configure in-memory high availability for your partitioned region. Set other 
high-availability options, like redundancy zones and redundancy recovery 
strategies.
 
 Here are the main steps for configuring high availability for a partitioned 
region. See later sections for details.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/custom_partitioning_and_data_colocation.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/custom_partitioning_and_data_colocation.html.md.erb
 
b/geode-docs/developing/partitioned_regions/custom_partitioning_and_data_colocation.html.md.erb
index 0cd5f63..3e4f185 100644
--- 
a/geode-docs/developing/partitioned_regions/custom_partitioning_and_data_colocation.html.md.erb
+++ 
b/geode-docs/developing/partitioned_regions/custom_partitioning_and_data_colocation.html.md.erb
@@ -2,6 +2,23 @@
 title:  Understanding Custom Partitioning and Data Colocation
 ---
 
+
+
 Custom partitioning and data colocation can be used separately or in 
conjunction with one another.
 
 ## Custom Partitioning

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/how_partitioning_works.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/how_partitioning_works.html.md.erb 
b/geode-docs/developing/partitioned_regions/how_partitioning_works.html.md.erb
index 68e8dd2..c846995 100644
--- 
a/geode-docs/developing/partitioned_regions/how_partitioning_works.html.md.erb
+++ 
b/geode-docs/developing/partitioned_regions/how_partitioning_works.html.md.erb
@@ -2,6 +2,23 @@
 title:  Understanding Partitioning
 ---
 
+
+
 To use partitioned regions, you should understand how they work and your 
options for managing them.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/partitioned_regions/how_pr_ha_works.html.md.erb
--
diff --git 
a/geode-docs/developing/partitioned_regions/how_pr_ha_works.html.md.erb 
b/geode-docs/developing/partitioned_regions/how_pr_ha_works.html.md.erb
index 5082cc4..ba83732 100644
--- a/geode-docs/developing/partitioned_regions/how_pr_ha_works.html.md.erb
+++ b/geode-docs/developing/partitioned_regions/how_pr_ha_works.html.md.erb
@@ -2,6 +2,23 @@
 title:  Understanding High Availability for Partitioned Regions
 ---
 
+
+
 With high availability, each member 

[36/50] [abbrv] incubator-geode git commit: GEODE-1952 Add geode-book dir to build docs

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e9b44af4/geode-book/master_middleman/source/subnavs/geode-subnav.erb
--
diff --git a/geode-book/master_middleman/source/subnavs/geode-subnav.erb 
b/geode-book/master_middleman/source/subnavs/geode-subnav.erb
new file mode 100644
index 000..12ff6b2
--- /dev/null
+++ b/geode-book/master_middleman/source/subnavs/geode-subnav.erb
@@ -0,0 +1,3082 @@
+
+
+Doc Index
+
+
+
+
+Apache Geode 1.0.0-incubating 
Documentation
+
+
+Getting 
Started with Apache Geode
+
+
+About Apache Geode
+
+
+Main Features of Apache 
Geode
+
+
+Prerequisites 
and Installation Instructions
+
+
+Host Machine 
Requirements
+
+
+How to 
Install
+
+
+Setting Up the CLASSPATH
+
+
+How to Uninstall
+
+
+
+
+Apache Geode in 15 
Minutes or Less
+
+
+
+
+Configuring 
and Running a Cluster
+
+
+Overview of the 
Cluster Configuration Service
+
+
+Tutorial—Creating
 and Using a Cluster Configuration
+
+
+Deploying
 Application JARs to Apache Geode Members
+
+
+Using Member 
Groups
+
+
+Exporting and 
Importing Cluster Configurations
+
+
+Cluster
 Configuration Files and Troubleshooting
+
+
+Loading 
Existing Configuration Files into Cluster Configuration
+
+
+Using gfsh to Manage a 
Remote Cluster Over HTTP or HTTPS
+
+
+Deploying 
Configuration Files without the Cluster Configuration Service
+
+
+Main Steps to 
Deploying Configuration Files
+
+
+Default File 
Specifications and Search Locations
+
+
+Changing the File 
Specifications
+
+
+Deploying 
Configuration Files in JAR Files
+
+
+
+
+Starting Up and 
Shutting Down Your System
+
+
+Running Geode Locator 
Processes
+
+
+Running Geode 
Server Processes
+
+
+Managing System 
Output Files
+
+
+Firewall 
Considerations
+
+
+Firewalls and 
Connections
+
+
+Firewalls and Ports
+
+
+
+
+
+
+Basic 
Configuration and Programming
+
+
+
+Distributed System and Cache Configuration
+
+
+Distributed
 System Members
+
+
+Setting
 Properties
+
+
+Options for 
Configuring the Cache and Data Regions
+
+
+
+Local and Remote 
Membership and Caching
+

[30/50] [abbrv] incubator-geode git commit: Add geode-book dir for docs build

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d9d8b59b/geode-book/master_middleman/source/subnavs/geode-subnav.erb
--
diff --git a/geode-book/master_middleman/source/subnavs/geode-subnav.erb 
b/geode-book/master_middleman/source/subnavs/geode-subnav.erb
new file mode 100644
index 000..230c6ca
--- /dev/null
+++ b/geode-book/master_middleman/source/subnavs/geode-subnav.erb
@@ -0,0 +1,3155 @@
+
+
+Doc Index
+
+
+
+
+Apache Geode 1.0.0-incubating 
Documentation
+
+
+Getting 
Started with Apache Geode
+
+
+About Apache Geode
+
+
+Main Features of Apache 
Geode
+
+
+Prerequisites 
and Installation Instructions
+
+
+Host Machine 
Requirements
+
+
+How to 
Install
+
+
+Setting Up the CLASSPATH
+
+
+How to Uninstall
+
+
+
+
+Apache Geode in 15 
Minutes or Less
+
+
+
+
+Configuring 
and Running a Cluster
+
+
+Overview of the 
Cluster Configuration Service
+
+
+Tutorial—Creating
 and Using a Cluster Configuration
+
+
+Deploying
 Application JARs to Apache Geode Members
+
+
+Using Member 
Groups
+
+
+Exporting and 
Importing Cluster Configurations
+
+
+Cluster
 Configuration Files and Troubleshooting
+
+
+Loading 
Existing Configuration Files into Cluster Configuration
+
+
+Using gfsh to Manage a 
Remote Cluster Over HTTP or HTTPS
+
+
+Deploying 
Configuration Files without the Cluster Configuration Service
+
+
+Main Steps to 
Deploying Configuration Files
+
+
+Default File 
Specifications and Search Locations
+
+
+Changing the File 
Specifications
+
+
+Deploying 
Configuration Files in JAR Files
+
+
+
+
+Starting Up and 
Shutting Down Your System
+
+
+Running Geode Locator 
Processes
+
+
+Running Geode 
Server Processes
+
+
+Managing System 
Output Files
+
+
+Firewall 
Considerations
+
+
+Firewalls and 
Connections
+
+
+Firewalls and Ports
+
+
+
+
+
+
+Basic 
Configuration and Programming
+
+
+
+Distributed System and Cache Configuration
+
+
+Distributed
 System Members
+
+
+Setting
 Properties
+
+
+Options for 
Configuring the Cache and Data Regions
+
+
+
+Local and Remote 
Membership and Caching
+

[06/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/delta-propagation/how-delta-propagation-works.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/delta-propagation/how-delta-propagation-works.html.md.erb
 
b/geode-docs/nativeclient/delta-propagation/how-delta-propagation-works.html.md.erb
deleted file mode 100644
index eac1907..000
--- 
a/geode-docs/nativeclient/delta-propagation/how-delta-propagation-works.html.md.erb
+++ /dev/null
@@ -1,19 +0,0 @@

-title:  How Delta Propagation Works

-
-Geode propagates object deltas using methods that you program on the client 
side. The methods are in the delta interface, which you implement in your 
cached objects’ classes.
-
-This figure shows delta propagation for a change to an entry with key, `k`, 
and value object, `v`.
-
-
-Figure: Delta Propagation
-
-
-
-1.  **get operation**. The `get` works as usual; the cache returns the full 
entry object from the local cache or, if it is unavailable there, from a server 
cache or from a loader.
-2.  **update methods**. You need to add code to the object’s update methods 
so that they save delta information for object updates, in addition to the work 
they were already doing.
-3.  **put operation**. The `put` works as usual in the local cache, using the 
full value, then calls `hasDelta` to check for deltas and `toDelta` to 
serialize the information.
-4.  **receipt of delta**. `fromDelta` extracts the delta information that was 
serialized by `toDelta` and applies it to the object in the local cache. The 
delta is applied directly to the existing value or to a clone, depending on how 
you configure it for the region.
-5.  **additional distributions**. As with full distributions, receiving 
members forward the delta according to their configurations and connections to 
other members. In the example, the server would forward the delta to its peers 
and its other clients as needed. Receiving members do not recreate the delta; 
`toDelta` is only called in the originating member.
-

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/delta-propagation/implementing-delta-propagation.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/delta-propagation/implementing-delta-propagation.html.md.erb
 
b/geode-docs/nativeclient/delta-propagation/implementing-delta-propagation.html.md.erb
deleted file mode 100644
index 6d1c3ee..000
--- 
a/geode-docs/nativeclient/delta-propagation/implementing-delta-propagation.html.md.erb
+++ /dev/null
@@ -1,41 +0,0 @@

-title:  Implementing Delta Propagation

-
-By default, delta propagation is enabled in your distributed system and is 
used for objects that implement the delta interface. You program the 
client-side methods to extract delta information for your entries and to apply 
received delta information.
-
-For more information, see [Delta Propagation 
API](delta-propagation-api.html#delta-propagation-api).
-
-**Prerequisites**
-
--   Study your object types and expected application behavior to determine 
which objects should use delta propagation. Delta propagation is not beneficial 
for all data and data modification scenarios. See [Exceptions and 
Limitations](performance.html#performance).
--   Decide whether to enable cloning. Cloning is disabled by default. See 
[cloning-enabled](delta-propagation-properties.html#delta-propagation-properties).
--   If you enable cloning, consider providing your own implementation, to 
optimize performance.
--   If you do not enable cloning, be sure to synchronize your delta code.
--   If you do not enable cloning, review all associated listener code for 
dependencies on the entry event old value. Without cloning, Geode modifies the 
entry in place and so loses its reference to the old value. For delta events, 
the `EntryEvent` methods to retrieve the old and new values both return the new 
value.
-
-**Procedure**
-
-For every class in which you want delta propagation, implement the delta 
interface and update your methods to support delta propagation. Exactly how you 
do this depends on your application and object needs, but these steps describe 
the basic approach.
-
-1.  Study the object contents to decide how to handle delta changes.
-
-Delta propagation has the same issues of distributed concurrency control 
as the distribution of full objects, but on a more detailed level. Some parts 
of your objects may be able to change independent of one another while others 
may always need to change together. Send deltas large enough to keep your data 
logically consistent. If, for example, field A and field B depend on each 
other, then your delta distributions should either update both fields or 
neither. As with regular updates, the fewer producers you have on a data 
region, the lower your likelihood of 

[39/50] [abbrv] incubator-geode git commit: GEODE-1952 Update docs README, config

2016-10-14 Thread upthewaterspout
GEODE-1952 Update docs README, config


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/36d1f39d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/36d1f39d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/36d1f39d

Branch: refs/heads/develop
Commit: 36d1f39d68a847dc574e267c51efa89f9c980bd6
Parents: 7592ba1
Author: Joey McAllister 
Authored: Tue Oct 11 15:54:54 2016 -0700
Committer: Joey McAllister 
Committed: Tue Oct 11 15:54:54 2016 -0700

--
 geode-book/config.yml |  9 ++---
 geode-docs/README.md  | 92 +-
 2 files changed, 44 insertions(+), 57 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/36d1f39d/geode-book/config.yml
--
diff --git a/geode-book/config.yml b/geode-book/config.yml
index 1a74e82..74003f0 100644
--- a/geode-book/config.yml
+++ b/geode-book/config.yml
@@ -1,6 +1,5 @@
 book_repo: apache/incubator-geode/geode-book
-
-public_host: http://geode.incubator.apache.org/docs/
+public_host: localhost
 
 sections:
 - repository:
@@ -11,13 +10,11 @@ sections:
 template_variables:
   support_url: http://geode.incubator.apache.org/community
   product_url: http://geode.incubator.apache.org/
-  book_title: Apache Geode (Incubating) Documentation (Develop)
-  cse_id: 012029519579280034868:3hzywhss5ik
+  book_title: Apache Geode (Incubating) Documentation
   support_link: http://geode.incubator.apache.org/community; 
target="_blank">Community
   support_call_to_action: http://geode.incubator.apache.org/community; target="_blank">Need 
Help?
   product_link: http://geode.incubator.apache.org/;>Back to Geode Page
-  ga_account_id: UA-39702075-1
   domain_name: apache.org
-  book_title_short: Geode Docs (Develop)
+  book_title_short: Geode Docs
 
 broken_link_exclusions: iefix|using_custom_classes|arrowhead|cppdocs|DotNetDocs

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/36d1f39d/geode-docs/README.md
--
diff --git a/geode-docs/README.md b/geode-docs/README.md
index a018ca1..bc70325 100644
--- a/geode-docs/README.md
+++ b/geode-docs/README.md
@@ -1,93 +1,83 @@
 # Project Geode End-User Documentation
 
-The latest check-ins to `project-geode/docs` are automatically built and 
published to .
+Apache Geode provides the full source for end-user documentation in markdown 
format. The latest check-ins to `incubator-geode/geode-docs` are regularly 
built and published to http://geode.incubator.apache.org/docs/. Users can build 
the markdown into an HTML user guide using 
[Bookbinder](https://github.com/pivotal-cf/bookbinder) and the instructions 
below.
 
-Project Geode provides the full source for end-user documentation in markdown 
format. The markdown can be built into HTML using 
[Bookbinder](https://github.com/pivotal-cf/bookbinder).
+Bookbinder is a gem that binds  a unified documentation web application from 
markdown, html, and/or DITA source material. The source material for bookbinder 
must be stored either in local directories or in GitHub repositories. 
Bookbinder runs [middleman](http://middlemanapp.com/) to produce a Rackup app 
that can be deployed locally or as a Web application.
 
-Bookbinder is a gem that binds together a unified documentation web 
application from markdown, html, and/or DITA source material. The source 
material for bookbinder must be stored either in local directories or in GitHub 
repositories. Bookbinder runs [middleman](http://middlemanapp.com/) to produce 
a Rackup app that can be deployed locally or as a Web application.
+This document contains instructions for building and viewing the Geode 
documentation locally, as well as for publishing it to the Geode website. It 
contains the sections:
 
-This document contains instructions for building the local Geode documentation 
and publishing it to Cloud Foundry or Pivotal Web Services. It contains the 
sections:
-
-- [Bookbinder Usage](#usage)
 - [Prerequisites](#prereq)
+- [Bookbinder Usage](#usage)
 - [Building the Documentation](#building)
 - [Publishing the Documentation](#publishing)
-- [Getting More Information](#moreinfo)
 
-[]()
+## Prerequisites
 
-## Bookbinder Usage
+Bookbinder requires Ruby version 2.0.0-p195 or higher.
 
-Bookbinder is meant to be used from within a project called a **book**. The 
book includes a configuration file that describes which documentation 
repositories to use as source materials. Bookbinder provides a set of scripts 
to aggregate those repositories and publish them to various locations.
+Follow the instructions below to install 

[24/50] [abbrv] incubator-geode git commit: GEODE-1570: upgrade spring libraries

2016-10-14 Thread upthewaterspout
GEODE-1570: upgrade spring libraries

* upgrade the spring libraries and related libraries
* upgrade version numbers in the NOTICE and LICENSE file
* some test refactor


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/82ae617c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/82ae617c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/82ae617c

Branch: refs/heads/develop
Commit: 82ae617c179ad27d661aba79e9b8a6b17413e75c
Parents: 17cc472
Author: Jinmei Liao 
Authored: Thu Sep 15 14:17:05 2016 -0700
Committer: Jinmei Liao 
Committed: Thu Oct 6 11:27:59 2016 -0700

--
 geode-assembly/src/main/dist/NOTICE |  10 +-
 .../internal/web/RestInterfaceJUnitTest.java|  42 +++--
 .../internal/web/RestSecurityDUnitTest.java | 173 +--
 .../src/test/resources/expected_jars.txt|   1 +
 geode-core/build.gradle |   3 +
 .../cli/shell/GfshInitFileJUnitTest.java|  18 +-
 .../security/AbstractSecureServerDUnitTest.java |   1 -
 .../security/GemFireAuthentication.java |   2 +-
 .../security/GemFireAuthenticationProvider.java |   1 -
 .../service/MemberGatewayHubService.java|  11 +-
 geode-pulse/src/main/webapp/Login.html  |   6 +-
 geode-pulse/src/main/webapp/META-INF/NOTICE |   6 +-
 .../webapp/WEB-INF/mvc-dispatcher-servlet.xml   |   8 +-
 .../src/main/webapp/WEB-INF/spring-security.xml |  17 +-
 .../geode/tools/pulse/tests/PulseAuthTest.java  |   2 +-
 .../tools/pulse/tests/PulseAutomatedTest.java   |   2 +-
 geode-web-api/build.gradle  |   1 +
 .../geode/rest/internal/web/util/JSONUtils.java | 105 ++-
 .../rest/internal/web/util/JsonWriter.java  |  16 +-
 geode-web-api/src/main/webapp/META-INF/NOTICE   |   6 +-
 .../src/main/webapp/WEB-INF/geode-servlet.xml   |  14 +-
 geode-web/src/main/webapp/META-INF/NOTICE   |   2 +-
 .../main/webapp/WEB-INF/geode-mgmt-servlet.xml  |   6 +-
 gradle/dependency-resolution.gradle |  19 --
 gradle/dependency-versions.properties   |  20 +--
 25 files changed, 162 insertions(+), 330 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/82ae617c/geode-assembly/src/main/dist/NOTICE
--
diff --git a/geode-assembly/src/main/dist/NOTICE 
b/geode-assembly/src/main/dist/NOTICE
index 1924007..412774d 100644
--- a/geode-assembly/src/main/dist/NOTICE
+++ b/geode-assembly/src/main/dist/NOTICE
@@ -26,7 +26,7 @@ Java ClassMate library was originally written by Tatu 
Saloranta (tatu.saloranta@
   
   * Brian Langel
 
-Jackson Core 2.2.0
+Jackson Core 2.8.2
 
   # Jackson JSON processor
 
@@ -242,7 +242,7 @@ Apache Lucene
   from and not be held liable to the user for any such damages as noted
   above as far as the program is concerned.
 
-Spring Framework 4.2.4.RELEASE
+Spring Framework 4.3.2.RELEASE
 Copyright (c) 2002-2015 Pivotal, Inc.
 
   This product is licensed to you under the Apache License, Version 2.0
@@ -254,7 +254,7 @@ Copyright (c) 2002-2015 Pivotal, Inc.
   these subcomponents is subject to the terms and conditions of the
   subcomponent's license, as noted in the license.txt file.
 
-Spring Hateoas 0.12
+Spring Hateoas 0.21.0
 Copyright (c) [2012-2014] Pivotal Software, Inc.
 
   This product is licensed to you under the Apache License, Version 2.0 (the 
"License").  
@@ -265,12 +265,12 @@ Copyright (c) [2012-2014] Pivotal Software, Inc.
   code for the these subcomponents is subject to the terms and
   conditions of the subcomponent's license, as noted in the LICENSE file.
 
-Spring LDAP Core 1.3.2
+Spring LDAP Core 2.1.0
 
This product includes software developed by the Spring LDAP
Project (http://www.springframework.org/ldap).
 
-Spring Shell 1.1.0
+Spring Shell 1.2.0
 
This product includes software developed by the Spring Framework
Project (http://www.springframework.org).

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/82ae617c/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestInterfaceJUnitTest.java
--
diff --git 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestInterfaceJUnitTest.java
 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestInterfaceJUnitTest.java
index 0d93518..4e3269e 100644
--- 
a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestInterfaceJUnitTest.java
+++ 
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/RestInterfaceJUnitTest.java
@@ -16,15 +16,41 @@
  */
 package org.apache.geode.rest.internal.web;
 
+import static 

[17/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/management/programming_example.html.md.erb
--
diff --git a/geode-docs/managing/management/programming_example.html.md.erb 
b/geode-docs/managing/management/programming_example.html.md.erb
index 45e4ac5..17cfcd4 100644
--- a/geode-docs/managing/management/programming_example.html.md.erb
+++ b/geode-docs/managing/management/programming_example.html.md.erb
@@ -2,6 +2,23 @@
 title:  Management and Monitoring Programming Examples
 ---
 
+
+
 One example demonstrates the use of an MBean server to manage and monitor a 
node in a distributed system, and the other example acts as the managed node.
 
 ## JMX Manager Node Example

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/monitor_tune/cache_consistency.html.md.erb
--
diff --git a/geode-docs/managing/monitor_tune/cache_consistency.html.md.erb 
b/geode-docs/managing/monitor_tune/cache_consistency.html.md.erb
index 09f868b..adc10c9 100644
--- a/geode-docs/managing/monitor_tune/cache_consistency.html.md.erb
+++ b/geode-docs/managing/monitor_tune/cache_consistency.html.md.erb
@@ -2,6 +2,23 @@
 title:  Maintaining Cache Consistency
 ---
 
+
+
 Maintaining data consistency between caches in a distributed Geode system is 
vital for ensuring its functional integrity and preventing data loss.
 
 ## General 
Guidelines

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/monitor_tune/chapter_overview.html.md.erb
--
diff --git a/geode-docs/managing/monitor_tune/chapter_overview.html.md.erb 
b/geode-docs/managing/monitor_tune/chapter_overview.html.md.erb
index da69f00..db09945 100644
--- a/geode-docs/managing/monitor_tune/chapter_overview.html.md.erb
+++ b/geode-docs/managing/monitor_tune/chapter_overview.html.md.erb
@@ -2,6 +2,23 @@
 title:  Performance Tuning and Configuration
 ---
 
+
+
 A collection of tools and controls allow you to monitor and adjust Apache 
Geode performance.
 
 -   **[Improving Geode Performance on 
vSphere](../../managing/monitor_tune/gemfire_performance_on_vsphere.html)**

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere.html.md.erb
--
diff --git 
a/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere.html.md.erb 
b/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere.html.md.erb
index 249a7dd..2be5502 100644
--- 
a/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere.html.md.erb
+++ 
b/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere.html.md.erb
@@ -2,6 +2,23 @@
 title:  Improving Geode Performance on vSphere
 ---
 
+
+
 This topic provides guidelines for tuning vSphere virtualized environments 
that host Apache Geode deployments.
 
 Without tuning, Geode can suffer a performance drop in virtual environments, 
including the VMware vSphere virtual platform.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere_guidelines.html.md.erb
--
diff --git 
a/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere_guidelines.html.md.erb
 
b/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere_guidelines.html.md.erb
index d8b7248..b5cb8a2 100644
--- 
a/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere_guidelines.html.md.erb
+++ 
b/geode-docs/managing/monitor_tune/gemfire_performance_on_vsphere_guidelines.html.md.erb
@@ -1,6 +1,23 @@
 ---
 title: Operating System Guidelines
 ---
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/monitor_tune/multicast_communication.html.md.erb
--
diff --git 
a/geode-docs/managing/monitor_tune/multicast_communication.html.md.erb 
b/geode-docs/managing/monitor_tune/multicast_communication.html.md.erb
index 3574cc7..ba823c6 100644
--- a/geode-docs/managing/monitor_tune/multicast_communication.html.md.erb
+++ b/geode-docs/managing/monitor_tune/multicast_communication.html.md.erb
@@ -2,6 +2,23 @@
 title:  Multicast Communication
 ---
 
+
+
 You can make configuration adjustments to improve the UDP multicast 
performance of peer-to-peer communication in your Geode system.
 
 Before you begin, you should understand Geode [Basic Configuration and 
Programming](../../basic_config/book_intro.html). See also the general 
communication tuning and UDP tuning covered in [Socket 
Communication](socket_communication.html) and [UDP 
Communication](udp_communication.html#udp_comm).


[04/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/introduction/developing-solaris.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/introduction/developing-solaris.html.md.erb 
b/geode-docs/nativeclient/introduction/developing-solaris.html.md.erb
deleted file mode 100644
index da707bc..000
--- a/geode-docs/nativeclient/introduction/developing-solaris.html.md.erb
+++ /dev/null
@@ -1,44 +0,0 @@

-title:  Developing C++ Programs on Solaris

-
-This section describes how to build and run a native client application on 
Solaris.
-
-## Step 1. Set Environment Variables
-
-**Note:** When compiling external projects or applications that are used or 
referenced by the native client, make sure that you compile them for the same 
target architecture as your native client installation. For example, if you 
installed the 32-bit (x86) version of the native client, compile your external 
projects for 32-bit (x86) architecture.
-
-Set the native client environment variables on each Solaris host. For each 
case, *productDir* is the path to the native client product directory.
-
-**For Bourne and Korn shells (sh, ksh, bash)**
-
-``` pre
-GFCPP=; export GFCPP
-PATH=$GFCPP/bin:$PATH;export PATH
-LD_LIBRARY_PATH=$GFCPP/lib:$LD_LIBRARY_PATH;export LD_LIBRARY_PATH
-```
-
-## Step 2. Compile C++ Clients and Dynamically Link to 
Them to Native Client Library
-
-Version 5.9 of the *SUNpro* compiler is supported on Solaris. The linker 
switches vary according to whether you are statically linking to the native 
client library.
-
-To build and link a C++ client on Solaris, the compilation command line must 
include the appropriate arguments from this table.
-
-
-
-| Argument 
  | Explanation|
-|||
-| `-D_REENTRANT`   
  | Required to compile Solaris programs in a thread-safe way. |
-| `-xarch=v8plus`  
  | Enables 32-bit compilation.|
-| `-xarch=v9`  
  | Enables 64-bit compilation.|
-| `-ldl`; `-lpthread`; `-lc`; `-lm`; `-lsocket`; `-lrt`; `-lnsl`; 
`-ldemangle`; `-lkstat`; `-lz` | Additional libraries.  
|
-| `-library=stlport4`  
  | Solaris library compilation.   |
-| `-I$ GFCPP /include` 
  | Specifies the GemFire include directory.   |
-
-
-
-## Step 3. Make Sure the Native Client Library Can Be 
Loaded
-
-When a C++ application is not statically linked to the native client library, 
the library must be dynamically loadable.
-
-To verify that the native client library is available for loading, make sure 
you have added the path *productDir*`/lib` to the *LD\_LIBRARY\_PATH* 
environment variable, where *productDir* is the path to the Geode product 
directory.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/introduction/developing-windows.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/introduction/developing-windows.html.md.erb 
b/geode-docs/nativeclient/introduction/developing-windows.html.md.erb
deleted file mode 100644
index 7ed37c0..000
--- a/geode-docs/nativeclient/introduction/developing-windows.html.md.erb
+++ /dev/null
@@ -1,56 +0,0 @@

-title:  Developing C++ Programs on Windows

-
-Geode uses the Visual Studio 2010 Service Pack 1 compiler for C++ programs on 
Windows, which invokes Microsoft® `cl.exe` from the command line at 
compile time.
-
-The Geode native client supports .NET 4.0 and Visual Studio 2010. For 
advantages and more information on the features of .NET 4.0 and Visual Studio 
2010 SP1, see 
[http://msdn.microsoft.com/en-us/library/dd831853(v=vs.100).aspx](http://msdn.microsoft.com/en-us/library/dd831853(v=vs.100).aspx)
 and 
[http://msdn.microsoft.com/en-us/library/vstudio/w0x726c2(v=vs.100).aspx](http://msdn.microsoft.com/en-us/library/vstudio/w0x726c2(v=vs.100).aspx).
-
-Visual Studio 2010 SP1 is the recommended compiler. If you are using any other 
compiler, contact technical support for assistance.
-
-**Note:** When compiling external projects or applications that are used or 
referenced by the native client, make sure that you compile them for the same 

[25/50] [abbrv] incubator-geode git commit: GEODE-1968 - set aside Hibernate Cache docs until feature is mainstreamed.

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/tools_modules/hibernate_cache/installing_gemfire_and_module.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/hibernate_cache/installing_gemfire_and_module.html.md.erb
 
b/geode-docs/tools_modules/hibernate_cache/installing_gemfire_and_module.html.md.erb
deleted file mode 100644
index a3bc6b9..000
--- 
a/geode-docs/tools_modules/hibernate_cache/installing_gemfire_and_module.html.md.erb
+++ /dev/null
@@ -1,28 +0,0 @@

-title:  Installing the Hibernate Cache Module

-
-
-
-The Hibernate module is included in the Apache Geode installation package.
-
-1.  If you have not done so, download and install 
[Hibernate](http://www.hibernate.org/). Apache Geode supports Hibernate 3.3 and 
later (up to version 3.6.10) for use with the Hibernate Cache module. Apache 
Geode does not currently support Hibernate 4.x for use with the Hibernate Cache 
module.
-2.  The Hibernate module is included in the Apache Geode installation package. 
You can find the module in the `/tools/Modules` directory, in a 
zip file that includes the version and the string `Hibernate`. `` 
is the location where you installed Geode.
-3.  Make sure that `/lib/geode-dependencies.jar` is part of the 
CLASSPATH when you run Hibernate. Alternatively, you can place the 
`geode-dependencies.jar` in a location that is accessible to your Hibernate 
application.
-
-

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/tools_modules/hibernate_cache/setting_up_the_module.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/hibernate_cache/setting_up_the_module.html.md.erb 
b/geode-docs/tools_modules/hibernate_cache/setting_up_the_module.html.md.erb
deleted file mode 100644
index 8d00c34..000
--- a/geode-docs/tools_modules/hibernate_cache/setting_up_the_module.html.md.erb
+++ /dev/null
@@ -1,110 +0,0 @@

-title:  Setting Up the Geode Hibernate Cache Module

-
-
-
-Edit the `hibernate.cfg.xml` file to use the Hibernate Cache module.
-
-1.  **Turn on L2 Cache**
-
-In the `hibernate.cfg.xml` file, turn on the L2 cache and identify the 
Geode locator(s):
-
-``` pre
-true
-host1[port1],host2[port2]
-```
-
-Change `host1` and `host2 ` to the hostnames (or IP addresses) for each of 
the locators; `port1` and `port2 `are the ports for each of 
the locators.
-
-2.  **Set Region Factory or Cache Provider**
-
-Associate the region factory class with GemFireRegionFactory:
-
-``` pre
-
-  org.apache.geode.modules.hibernate.GemFireRegionFactory
- 
-```
-
-3.  **Determine Cache Usage Mode**
-
-Determine the cache usage mode for the entities in each region. There are 
four types of usage modes:
-
-| Mode   | Description 

|
-
||-|
-| `read-only`| This mode is used when you do not plan on 
modifying the data already stored in your persistent storage.   
  |
-| `read-write`   | This mode is used when you plan to both read 
from and write to your data.
   |
-| `nonstrict-read-write` | This mode is a special read/write mode that has 
faster write performance; however, only use this mode if no more than one 
client will update content at a time. |
-| `transactional`| This mode allows for transaction-based data 
access. 
|
-
-4.  **Set Cache Usage Mode**
-
-The usage mode can either be set using the hibernate-mapping file or 
through Java annotations.
--   To set the mode with the hibernate-mapping file, refer to this example:
-
-``` pre
-
-
-  
-
-...
-  
-
- 
-```
-
-In this example, `PACKAGE` is the name of the entity package, 
`ENTITY_NAME` is the name of your entity, and `USAGE_MODE` is the chosen usage 
mode from the table given above. Refer to the [Hibernate 
documentation](http://hibernate.org/docs) for further information.
--   To set the mode using annotations, your class definition should look 
something like this example which specifies the `read-only` usage mode:
-
-``` pre
-import org.hibernate.annotations.Cache; 
-import 

[43/50] [abbrv] incubator-geode git commit: GEODE-1952: Change Project G to Apache G; other edits

2016-10-14 Thread upthewaterspout
GEODE-1952: Change Project G to Apache G; other edits


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/131e99ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/131e99ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/131e99ee

Branch: refs/heads/develop
Commit: 131e99eeb7e2971f0aa51ffdf23624138cca5652
Parents: d8afffb
Author: Joey McAllister 
Authored: Wed Oct 12 17:56:09 2016 -0700
Committer: Karen Miller 
Committed: Fri Oct 14 14:51:03 2016 -0700

--
 geode-docs/CONTRIBUTE.md | 48 +--
 geode-docs/README.md |  2 +-
 2 files changed, 11 insertions(+), 39 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/131e99ee/geode-docs/CONTRIBUTE.md
--
diff --git a/geode-docs/CONTRIBUTE.md b/geode-docs/CONTRIBUTE.md
index 7345cb3..979474e 100644
--- a/geode-docs/CONTRIBUTE.md
+++ b/geode-docs/CONTRIBUTE.md
@@ -1,54 +1,26 @@
-# Contributing to the Project Geode Documentation
+# Contributing to the Apache Geode Documentation
 
-Project Geode welcomes your contributions to the community's documentation 
efforts. You can participate by writing new content, reviewing and editing 
existing content, or fixing bugs. This document covers the following topics:
+Apache Geode welcomes your contributions to the community's documentation 
efforts. You can participate by writing new content, reviewing and editing 
existing content, or fixing bugs. This document covers the following topics:
 
-- [How to Contribute](#contribute)
-- [Document Source Files and Tools](#source_tools)
-- [Writing Guidelines](#guidelines)
+- [Working with Markdown Files](#working-with-markdown-files)
+- [Working with Images and Graphics](#working-with-images-and-graphics)
+- [Writing Guidelines](#writing-guidelines)
 
-[]()
-
-## How to Contribute
-
-We use the fork-and-pull collaboration method on GitHub:
-
-1. In your GitHub account, fork the `apache/incubator-geode` repository.
-2. Create a local clone of your fork.
-3. Make changes in the `geode-docs` directory and commit them in your fork.
-4. In the `apache/incubator-geode` repository, create a pull request.
-
-See [Using Pull 
Requests](https://help.github.com/articles/using-pull-requests/) on GitHub for 
more about the fork-and-pull collaboration method.
-
-[]()
-
-## Document Source Files and Tools
-
-Project Geode documentation source files are written in markdown. Image files 
include .gif and .png graphics and editable image files in the open-source SVG 
format.
-
-- [Working with Markdown Files](#markdown)
-- [Working with Images and Graphics](#images)
-
-[]()
-
-### Working with Markdown Files
+## Working with Markdown Files
 
 You can edit markdown files in any text editor. For more, read [Daring 
Fireball's Markdown Syntax 
page](https://daringfireball.net/projects/markdown/syntax).
 
-[]()
-
-### Working with Images and Graphics
+## Working with Images and Graphics
 
-Image files in .gif or .png format are in the `docs/images` directory in the 
Project Geode docs repo. Images in .svg format are in the `docs/images_svg` 
directory.
+Image files in .gif or .png format are in the `docs/images` directory in the 
Apache Geode docs repo. Images in .svg format are in the `docs/images_svg` 
directory.
 
-Most of the Project Geode image files have been converted to the open source 
SVG format. You can insert SVG images directly into an XML topic and modify 
images using a SVG editor.
+Most of the Apache Geode image files have been converted to the open source 
SVG format. You can insert SVG images directly into an XML topic and modify 
images using a SVG editor.
 
 The Wikipedia page [Comparison of Vector Graphics 
Editors](http://en.wikipedia.org/wiki/Comparison_of_vector_graphics_editors) 
provides a list and comparison of commercial and free vector graphics editors. 
Note, however, that not all of these programs support the SVG format.
 
-[]()
-
 ## Writing Guidelines
 
-The most important advice we can provide for working with the Project Geode 
docs is to spend some time becoming familiar with the existing source files and 
the structure of the project directory. In particular, note the following 
conventions and tips:
+The most important advice we can provide for working with the Apache Geode 
docs is to spend some time becoming familiar with the existing source files and 
the structure of the project directory. In particular, note the following 
conventions and tips:
 
 - Top-level subdirectories organize topics into "books": basic_config, 
configuring, developing, etc.
 


[12/50] [abbrv] incubator-geode git commit: GEODE-1952: Update geode-docs dir for docs donation

2016-10-14 Thread upthewaterspout
GEODE-1952: Update geode-docs dir for docs donation

- Alter the only 2 files that did not have a title component
at the top of the file. This facilitates easily adding the
Apache license to the files.


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

Branch: refs/heads/develop
Commit: e0f5203356991e15ab49abb193d25ed30030a572
Parents: 381d0fa
Author: Karen Miller 
Authored: Wed Oct 5 15:40:26 2016 -0700
Committer: Karen Miller 
Committed: Wed Oct 5 15:40:26 2016 -0700

--
 .../reference/topics/gfe_cache_xml.html.md.erb  |   3 +
 ...mory_requirements_for_cache_data.html.md.erb | 269 ++-
 ...requirements_guidelines_and_calc.html.md.erb | 269 ---
 3 files changed, 264 insertions(+), 277 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e0f52033/geode-docs/reference/topics/gfe_cache_xml.html.md.erb
--
diff --git a/geode-docs/reference/topics/gfe_cache_xml.html.md.erb 
b/geode-docs/reference/topics/gfe_cache_xml.html.md.erb
index fbe289d..03b0956 100644
--- a/geode-docs/reference/topics/gfe_cache_xml.html.md.erb
+++ b/geode-docs/reference/topics/gfe_cache_xml.html.md.erb
@@ -1,3 +1,6 @@
+---
+title: "cache Element Reference"
+---
 
 
 # cache Element Reference

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e0f52033/geode-docs/reference/topics/memory_requirements_for_cache_data.html.md.erb
--
diff --git 
a/geode-docs/reference/topics/memory_requirements_for_cache_data.html.md.erb 
b/geode-docs/reference/topics/memory_requirements_for_cache_data.html.md.erb
index 2de6d98..2111573 100644
--- a/geode-docs/reference/topics/memory_requirements_for_cache_data.html.md.erb
+++ b/geode-docs/reference/topics/memory_requirements_for_cache_data.html.md.erb
@@ -12,20 +12,273 @@ These requirements include estimates for the following 
resources:
 
 The information here is only a guideline, and assumes a basic understanding of 
Geode. While no two applications or use cases are exactly alike, the 
information here should be a solid starting point, based on real-world 
experience. Much like with physical database design, ultimately the right 
configuration and physical topology for deployment is based on the performance 
requirements, application data access characteristics, and resource constraints 
(i.e., memory, CPU, and network bandwidth) of the operating environment.
 
--   **[Core Guidelines for Geode Data Region 
Design](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_ipt_dqz_j4)**
 
--   **[Memory Usage 
Overview](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_ppn_pqz_j4)**
+
 
--   **[Calculating Application Object 
Overhead](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_kjx_brz_j4)**
+# Core Guidelines for Geode Data Region Design
 
--   **[Using Key Storage 
Optimization](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_exn_2tz_j4)**
+The following guidelines apply to region design:
 
--   **[Measuring Cache 
Overhead](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_ac4_mtz_j4)**
+-   For 32-bit JVMs: If you have a small data set ( 2GB) and a read-heavy 
requirement, you should be using replicated regions.
+-   For 64-bit JVMs: If you have a data set that is larger than 50-60% of the 
JVM heap space you can use replicated regions. For read heavy applications this 
can be a performance win. For write heavy applications you should use 
partitioned caches.
+-   If you have a large data set and you are concerned about scalability you 
should be using partitioned regions.
+-   If you have a large data set and can tolerate an on-disk subset of data, 
you should be using either replicated regions or partitioned regions with 
overflow to disk.
+-   If you have different data sets that meet the above conditions, then you 
might want to consider a hybrid solution mixing replicated and partition 
regions. Do not exceed 50 to 75% of the JVM heap size depending on how write 
intensive your application is.
 
--   **[Estimating Management and Monitoring 
Overhead](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_i1m_stz_j4)**
+## Memory Usage Overview
 
--   **[Determining Object Serialization 
Overhead](../../reference/topics/memory_requirements_guidelines_and_calc.html#topic_psn_5tz_j4)**
+The following guidelines should provide a rough estimate of the 

[08/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/connection-pools/configuring-pools-attributes-example.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/connection-pools/configuring-pools-attributes-example.html.md.erb
 
b/geode-docs/nativeclient/connection-pools/configuring-pools-attributes-example.html.md.erb
deleted file mode 100644
index 62e033b..000
--- 
a/geode-docs/nativeclient/connection-pools/configuring-pools-attributes-example.html.md.erb
+++ /dev/null
@@ -1,156 +0,0 @@

-title:  Pool Configuration Example and Settings

-
-Connection pools require standard client/server distributed system and cache 
configuration settings. You must also configure settings for the locator, 
server, and pool elements.
-
--   Locator. Host and port where a server locator is listening.
--   Server. Host and port where a server is listening.
--   Pool. Client/server connection pool.
-
-The example shows a declarative pool configuration. Following the example is a 
table that describes the attributes that can be configured.
-
-## Example—Declarative Pool Configuration
-
-This example shows a declarative pool configuration.
-
-**Note:**
-You create an instance of `PoolFactory` through `PoolManager`.
-
-``` pre
-
-   
-
-```
-
-## Pool Attributes
-
-
-
-
-
-
-
-
-
-Attribute Name
-Description
-Default
-
-
-
-
-free-connection-timeout
-Number of milliseconds (ms) that the client waits for a free connection 
if  max-connections limit is configured and all 
connections are in use.
-1 ms
-
-
-idle-timeout
-Number of milliseconds to wait for a connection to become idle for load 
balancing
-5000 ms
-
-
-load-conditioning-interval
-Interval in which the pool checks to see if a connection to a specific 
server should be moved to a different server to improve the load 
balance.
-30 ms (5 minutes)
-
-
-max-connections
-Maximum number of connections that the pool can create. If all 
connections are in use, an operation requiring a client-to server-connection is 
blocked until a connection is available or the  
free-connection-timeout is reached. If set to -1, there is no maximum. 
The setting must indicate a cap greater than  
min-connections.
-
-**Note:**
-If you use this setting to cap your pool connections, disable the pool 
attribute  pr-single-hop-enabled. Leaving single 
hop enabled can increase thrashing and lower performance.
-
--1
-
-
-min-connections
-Number of connections that must be created initially.
-5
-
-
-name
-Pool name.
-
-
-
-ping-interval
-Interval between pinging the server to show the client is alive, set in 
milliseconds. Pings are only sent when the ping-interval elapses between normal client messages. This must 
be set lower than the server’s maximum-time-between-pings.
-1 ms
-
-
-pr-single-hop-enabled
-Setting used for single-hop access to partitioned region data in the 
servers for some data operations. See PartitionResolver.
 See note in thread-local-connections 
below.
-True
-
-
-read-timeout
-Number of milliseconds to wait for a response from a server before the 
connection times out.
-1
-
-
-retry-attempts
-Number of times to retry an operation after a time-out or exception for 
high availability. If set to -1, the pool tries every available server once 
until it succeeds or has tried all servers.
--1
-
-
-server-group
-Server group from which to select connections. If not specified, the 
global group of all connected servers is used.
-empty
-
-
-socket-buffer-size
-Size of the socket buffer, in bytes, on each connection 
established.
-32768
-
-
-statistic-interval
-Default frequency, in milliseconds, with which the client statistics 
are sent to the server. A value of -1 indicates 
that the statistics are not sent to the server.
--1
-
-
-subscription-ack-interval
-Number of milliseconds to wait before sending an acknowledgment to the 
server about events received from the subscriptions.
-100
-
-
-subscription-enabled
-Whether to establish a server to client subscription.
-False
-
-
-subscription-message-tracking-timeout
-Number of milliseconds for which messages sent from a server to a 
client are tracked. The tracking is done to minimize duplicate events.
-9
-
-
-subscription-redundancy
-Redundancy for servers that contain subscriptions established by the 
client. A value of -1 causes all available 
servers in the specified group to be made redundant.
-0
-
-
-thread-local-connections
-Whether the connections must have affinity to the thread that last used 
them.
-
-**Note:**
-To set this to true, also set pr-single-hop-enabled to false. A true value in pr-single-hop-enabled automatically assigns a false value to thread-local-connections...
-
-False
-
-
-update-locator-list-interval
-An integer number of milliseconds defining the interval between locator 
list updates. If the value is less than or equal to 0, the update will be 
disabled.
-5000
-
-

[26/50] [abbrv] incubator-geode git commit: GEODE-1968 - set aside Hibernate Cache docs until feature is mainstreamed.

2016-10-14 Thread upthewaterspout
GEODE-1968 - set aside Hibernate Cache docs until feature is mainstreamed.


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

Branch: refs/heads/develop
Commit: fd8927cb1d74b46125589daf032d4eab43789d85
Parents: 6bea820
Author: Dave Barnes 
Authored: Thu Oct 6 13:08:23 2016 -0700
Committer: Dave Barnes 
Committed: Thu Oct 6 13:08:23 2016 -0700

--
 geode-docs/images/HibernateFlowchart.png| Bin 138228 -> 0 bytes
 geode-docs/images_svg/hibernate_cs.svg  |   3 -
 geode-docs/images_svg/hibernate_overview.svg|   3 -
 geode-docs/images_svg/hibernate_p2p.svg |   3 -
 geode-docs/tools_modules/book_intro.html.md.erb |   4 -
 .../hibernate_cache/advanced_config.html.md.erb |  51 --
 .../changing_gemfire_default_cfg.html.md.erb| 155 ---
 .../chapter_overview.html.md.erb|  54 ---
 .../chapter_overview_how_works.html.md.erb  |  25 ---
 .../hibernate_why_use_gemfire.html.md.erb   |  44 --
 .../installing_gemfire_and_module.html.md.erb   |  28 
 .../setting_up_the_module.html.md.erb   | 110 -
 ...sing_hibernate_with_http_session.html.md.erb |  39 -
 13 files changed, 519 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/images/HibernateFlowchart.png
--
diff --git a/geode-docs/images/HibernateFlowchart.png 
b/geode-docs/images/HibernateFlowchart.png
deleted file mode 100644
index 55c500c..000
Binary files a/geode-docs/images/HibernateFlowchart.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/images_svg/hibernate_cs.svg
--
diff --git a/geode-docs/images_svg/hibernate_cs.svg 
b/geode-docs/images_svg/hibernate_cs.svg
deleted file mode 100644
index ce9c3a8..000
--- a/geode-docs/images_svg/hibernate_cs.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
-http://www.w3.org/2000/svg; 
xmlns:xl="http://www.w3.org/1999/xlink; version="1.1" viewBox="59 233 493 205" 
width="493pt" height="205pt" 
xmlns:dc="http://purl.org/dc/elements/1.1/;> Produced by OmniGraffle 
6.0.5 2015-04-07 09:24ZcsLayer 
1Partitioned Session DataPartitioned Session DataPartitioned 
Session 
DataServerServerServerPartitioned DataHibernate 
SessionClientaccess to Hibernate entitiesconnection poolIf data not found in cache, Hibernate accesses database...RelationalDatabasePartitioned DataPartitioned Data

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/images_svg/hibernate_overview.svg
--
diff --git a/geode-docs/images_svg/hibernate_overview.svg 
b/geode-docs/images_svg/hibernate_overview.svg
deleted file mode 100644
index 0fd8669..000
--- a/geode-docs/images_svg/hibernate_overview.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
-http://www.w3.org/2000/svg; 
xmlns:xl="http://www.w3.org/1999/xlink; version="1.1" viewBox="146 287 389 228" 
width="389pt" height="19pc" 
xmlns:dc="http://purl.org/dc/elements/1.1/;> Produced by OmniGraffle 
6.0.5 2015-04-07 09:06ZoverviewLayer 1Cached DataCached DataMemberHibernate 
SessionMemberCached Dataaccess to Hibernate entitiesIf data not found in cache, Hibernate accesses 
database...RelationalDatabaseCached Data

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fd8927cb/geode-docs/images_svg/hibernate_p2p.svg
--
diff --git a/geode-docs/images_svg/hibernate_p2p.svg 
b/geode-docs/images_svg/hibernate_p2p.svg
deleted file mode 100644
index bc536dc..000
--- a/geode-docs/images_svg/hibernate_p2p.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
-http://www.w3.org/2000/svg; 
xmlns:xl="http://www.w3.org/1999/xlink; version="1.1" viewBox="59 269 499 228" 
width="499pt" height="19pc" 
xmlns:dc="http://purl.org/dc/elements/1.1/;> Produced by OmniGraffle 
6.0.5 2015-04-07 09:09Zp2pLayer 1stroke="#252525" stroke-linecap="round" stroke-linejoin="round" 
 >stroke-width=".7203"/>fill="black">fill="black" x="27.143066" y="10" textLength="81.713867">Hibernate 
 >SessionPeer CacheHibernate 
SessionPeer CacheHibernate SessionPeer CacheReplicated DataReplicated DataReplicated
  Dataaccess 
to Hibernate entitiesaccess to Hibernate entitiesaccess to Hibernate entitiesIf data 

[19/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/chapter_overview.html.md.erb
--
diff --git a/geode-docs/developing/querying_basics/chapter_overview.html.md.erb 
b/geode-docs/developing/querying_basics/chapter_overview.html.md.erb
index 27611d0..328cc46 100644
--- a/geode-docs/developing/querying_basics/chapter_overview.html.md.erb
+++ b/geode-docs/developing/querying_basics/chapter_overview.html.md.erb
@@ -2,6 +2,23 @@
 title:  Querying
 ---
 
+
+
 Geode provides a SQL-like querying language called OQL that allows you to 
access data stored in Geode regions.
 
 Since Geode regions are key-value stores where values can range from simple 
byte arrays to complex nested objects, Geode uses a query syntax based on OQL 
(Object Query Language) to query region data. OQL is very similar to SQL, but 
OQL allows you to query complex objects, object attributes, and methods.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/comments_in_query_strings.html.md.erb
--
diff --git 
a/geode-docs/developing/querying_basics/comments_in_query_strings.html.md.erb 
b/geode-docs/developing/querying_basics/comments_in_query_strings.html.md.erb
index 5125609..d55bb3f 100644
--- 
a/geode-docs/developing/querying_basics/comments_in_query_strings.html.md.erb
+++ 
b/geode-docs/developing/querying_basics/comments_in_query_strings.html.md.erb
@@ -2,6 +2,23 @@
 title:  Comments in Query Strings
 ---
 
+
+
 Comment lines being with `--` (double dash). Comment blocks begin with `/*` 
and end with `*/`. For example:
 
 ``` pre

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/monitor_queries_for_low_memory.html.md.erb
--
diff --git 
a/geode-docs/developing/querying_basics/monitor_queries_for_low_memory.html.md.erb
 
b/geode-docs/developing/querying_basics/monitor_queries_for_low_memory.html.md.erb
index 3064b70..6d065c0 100644
--- 
a/geode-docs/developing/querying_basics/monitor_queries_for_low_memory.html.md.erb
+++ 
b/geode-docs/developing/querying_basics/monitor_queries_for_low_memory.html.md.erb
@@ -2,6 +2,23 @@
 title: Monitoring Queries for Low Memory
 ---
 
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/oql_compared_to_sql.html.md.erb
--
diff --git 
a/geode-docs/developing/querying_basics/oql_compared_to_sql.html.md.erb 
b/geode-docs/developing/querying_basics/oql_compared_to_sql.html.md.erb
index df13209..8b4d7f9 100644
--- a/geode-docs/developing/querying_basics/oql_compared_to_sql.html.md.erb
+++ b/geode-docs/developing/querying_basics/oql_compared_to_sql.html.md.erb
@@ -2,6 +2,23 @@
 title:  Advantages of OQL
 ---
 
+
+
 The following list describes some of the advantages of using an OQL-based 
querying language:
 
 -   You can query on any arbitrary object

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/performance_considerations.html.md.erb
--
diff --git 
a/geode-docs/developing/querying_basics/performance_considerations.html.md.erb 
b/geode-docs/developing/querying_basics/performance_considerations.html.md.erb
index b37e529..4e19250 100644
--- 
a/geode-docs/developing/querying_basics/performance_considerations.html.md.erb
+++ 
b/geode-docs/developing/querying_basics/performance_considerations.html.md.erb
@@ -2,6 +2,23 @@
 title:  Performance Considerations
 ---
 
+
+
 This topic covers considerations for improving query performance.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/query_basics.html.md.erb
--
diff --git a/geode-docs/developing/querying_basics/query_basics.html.md.erb 
b/geode-docs/developing/querying_basics/query_basics.html.md.erb
index 89324f7..4121140 100644
--- a/geode-docs/developing/querying_basics/query_basics.html.md.erb
+++ b/geode-docs/developing/querying_basics/query_basics.html.md.erb
@@ -2,6 +2,23 @@
 title:  Basic Querying
 ---
 
+
+
 This section provides a high-level introduction to Geode querying such as 
building a query string and describes query language features.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/querying_basics/query_grammar_and_reserved_words.html.md.erb
--
diff --git 
a/geode-docs/developing/querying_basics/query_grammar_and_reserved_words.html.md.erb
 

[32/50] [abbrv] incubator-geode git commit: Revert "Add geode-book dir for docs build"

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1c98ba56/geode-book/pdf_header.html
--
diff --git a/geode-book/pdf_header.html b/geode-book/pdf_header.html
deleted file mode 100644
index 9983f0b..000
--- a/geode-book/pdf_header.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-  
-
-
-  
-

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1c98ba56/geode-book/redirects.rb
--
diff --git a/geode-book/redirects.rb b/geode-book/redirects.rb
deleted file mode 100644
index 3f223dc..000
--- a/geode-book/redirects.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-r301 %r{/releases/latest/javadoc/(.*)}, 
'http://geode.incubator.apache.org/releases/latest/javadoc/$1'
-r301 %r{/docs-gemfire/latest/cpp_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/cpp_api/$1'
-r301 %r{/docs-gemfire/latest/net_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/net_api/$1'
-rewrite '/', '/docs/about_geode.html'
-rewrite '/index.html', '/docs/about_geode.html'



[29/50] [abbrv] incubator-geode git commit: Add geode-book dir for docs build

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d9d8b59b/geode-book/pdf_header.html
--
diff --git a/geode-book/pdf_header.html b/geode-book/pdf_header.html
new file mode 100644
index 000..9983f0b
--- /dev/null
+++ b/geode-book/pdf_header.html
@@ -0,0 +1,7 @@
+
+
+  
+
+
+  
+

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d9d8b59b/geode-book/redirects.rb
--
diff --git a/geode-book/redirects.rb b/geode-book/redirects.rb
new file mode 100644
index 000..3f223dc
--- /dev/null
+++ b/geode-book/redirects.rb
@@ -0,0 +1,5 @@
+r301 %r{/releases/latest/javadoc/(.*)}, 
'http://geode.incubator.apache.org/releases/latest/javadoc/$1'
+r301 %r{/docs-gemfire/latest/cpp_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/cpp_api/$1'
+r301 %r{/docs-gemfire/latest/net_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/net_api/$1'
+rewrite '/', '/docs/about_geode.html'
+rewrite '/index.html', '/docs/about_geode.html'



[07/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/cpp-caching-api/pdx_auto_serialization.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/cpp-caching-api/pdx_auto_serialization.html.md.erb 
b/geode-docs/nativeclient/cpp-caching-api/pdx_auto_serialization.html.md.erb
deleted file mode 100644
index 0bdda28..000
--- a/geode-docs/nativeclient/cpp-caching-api/pdx_auto_serialization.html.md.erb
+++ /dev/null
@@ -1,355 +0,0 @@

-title: Using Automatic PDX Serialization

-
-You can allow your native client C++ applications to automatically PDX 
serialize and deserialize domain objects without having to add any extra code 
by using the `pdxautoserializer` command line tool provided with the native 
client.
-
-When using the native client C++ API, you can automatically serialize and 
deserialize domain objects without making any code changes to those objects or 
having to implement a `PdxSerializer` or `PdxSerializable` interface and their 
related `fromData` and `toData` methods. The Geode native client includes a 
command-line utility, `pdxautoserializer`, that allows you to generate C++ code 
that will serialize your domain objects in the PDX format for you.
-
-## How to Use Automatic PDX 
Serialization
-
-**Prerequisites:**
-
--   Understand generally how to configure the Geode cache.
-
--   Understand how PDX serialization works and how to configure your 
application to use PdxSerializer.
-
-The procedure below uses the following sample class:
-
-``` pre
-class PortfolioPdx 
-{
-  private:
-int32_t id;
-char* pkid;
-PositionPdxPtr position1;
-PositionPdxPtr position2;
-CacheableHashMapPtr positions;
-char** names;
-int8_t* newVal;
-CacheableDatePtr creationDate;
-int8_t* arrayNull;
-int8_t* arrayZeroSize;
-  public:
-// CTOR
-// DTORS
-// Other Methods declarations
-```
-
-For each domain class you provide, all fields are considered for serialization 
except those defined as static or transient and those you explicitly exclude 
using macros.
-
-1.  Inherit your class from `gemfire::PdxSerializable`.
-
-``` pre
-class PortfolioPdx : public PdxSerializable
-```
-
-2.  Add the following method declarations in the public part of the class.
-
-``` pre
-const char* getClassName() const;
-virtual void toData(gemfire::PdxWriterPtr pw);
-virtual void fromData(gemfire::PdxReaderPtr pr);
-static PdxSerializable* createDeserializable();
-```
-
-3.  In your pre-build environment (for example in your **makefiles**), call 
`pdxautoserializer` as follows:
-
-``` pre
-/bin/pdxautoserializer.exe --outDir= 
/PortfolioPdx.hpp
-```
-
-4.  Include the generated file in your project and compile.
-
-The following is an example of a generated file:
-
-``` pre
-#include "PortfolioPdx.hpp"
-#include 
-#include 
-#include 
-namespace testobject
-{
-  void PortfolioPdx::toData(gemfire::PdxWriterPtr var)
-  {
-gemfire::PdxAutoSerializable::writePdxObject(var, "id", id);
-gemfire::PdxAutoSerializable::writePdxObject(var, "pkid", pkid);
-gemfire::PdxAutoSerializable::writePdxObject(var, "position1", position1);
-gemfire::PdxAutoSerializable::writePdxObject(var, "position2", position2);
-gemfire::PdxAutoSerializable::writePdxObject(var, "positions", positions);
-gemfire::PdxAutoSerializable::writePdxObject(var, "status", status);
-gemfire::PdxAutoSerializable::writePdxObject(var, "creationDate", 
creationDate);
-  }
-
-  void PortfolioPdx::fromData(PdxReaderPtr var)
-  {
-gemfire::PdxAutoSerializable::readPdxObject(var, "id", id);
-gemfire::PdxAutoSerializable::readPdxObject(var, "pkid", pkid);
-gemfire::PdxAutoSerializable::readPdxObject(var, "position1", position1);
-gemfire::PdxAutoSerializable::readPdxObject(var, "position2", position2);
-gemfire::PdxAutoSerializable::readPdxObject(var, "positions", positions);
-gemfire::PdxAutoSerializable::readPdxObject(var, "status", status);
-gemfire::PdxAutoSerializable::readPdxObject(var, "creationDate", 
creationDate);
-  }
-  
-  const char* PortfolioPdx::getClassName()  const
-  {
- return "PortfolioPdx";
-  }
-}
-```
-
-## Handling Arrays
-
-1.  Define the following macro in your header file:
-
-``` pre
-#define GFARRAYSIZE(x)
-```
-
-2.  Assuming that the following is the class member of type array:
-
-``` pre
-int8_t* newVal;
-```
-
-Then define a new variable which sets the length of the array:
-
-``` pre
-int32_t newValSize;
-```
-
-3.  Tag the new variable with the `GFARRAYSIZE` macro as follows:
-
-``` pre
-GFARRAYSIZE(newVal) int32_t newValSize;
-```
-
-## Using a Single Variable as Length for Multiple Arrays
-
-You can use the GFARRAYSIZES to have single length for multiple arrays.
-
-Define the GFARRAYSIZES macro as follows:
-
-``` pre
-#define 

[03/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/programming-examples/serialization-java.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/programming-examples/serialization-java.html.md.erb 
b/geode-docs/nativeclient/programming-examples/serialization-java.html.md.erb
deleted file mode 100644
index ac11128..000
--- 
a/geode-docs/nativeclient/programming-examples/serialization-java.html.md.erb
+++ /dev/null
@@ -1,210 +0,0 @@

-title:  Java Serialization Example

-
-## Implementing an Embedded Object (Java)
-
-``` pre
-public class User implements DataSerializable
-{
-private String name;
-private int userId;
-private ExampleObject eo;
-static {
-Instantiator.register(
-   new Instantiator(User.class, (byte)45)
-   {
-public DataSerializable newInstance() {
-return new User();
-}
-} );
-}
-/**
- * Creates an "empty" User whose contents are filled in by
- * invoking its toData() method
- */
-
-private User() {
-this.name = "";
-this.userId = 0;
-this.eo = new ExampleObject(0);
-}
-
-public User(String name, int userId) {
-this.name = name;
-this.userId = userId;
-this.eo = new ExampleObject(userId);
-}
-
-public void setEO(ExampleObject eo) {
-this.eo = eo;
-}
-
-public ExampleObject getEO() {
-return eo;
-}
-
-public void toData(DataOutput out) throws IOException {
-out.writeUTF(this.name);
-out.writeInt(this.userId);
-eo.toData(out);
-}
-
-public void fromData(DataInput in) throws IOException,
- ClassNotFoundException {
-this.name = in.readUTF();
-this.userId = in.readInt();
-this.eo.fromData(in);
-}
-
-public int getUserId() {
-return userId;
-}
-
-public String getName() {
-return name;
-}
-
-public boolean equals(User o) {
-if (!this.name.equals(o.name)) return false;
-if (this.userId != o.userId) return false;
-if (!this.eo.equals(o.eo)) return false;
-return true;
-}
-}
-```
-
-## Implementing Complex Data Types (Java)
-
-``` pre
-public class ExampleObject implements DataSerializable {
-private double double_field;
-private long long_field;
-private float float_field;
-private int int_field;
-private short short_field;
-private java.lang.String string_field;
-private Vector string_vector;
-static {
-Instantiator.register(new Instantiator(ExampleObject.class, (byte) 46) 
{
-public DataSerializable newInstance() {
-return new ExampleObject();
-}
-});
-}
-public ExampleObject( ) {
-this.double_field = 0.0D;
-this.long_field = 0L;
-this.float_field = 0.0F;
-this.int_field = 0;
-this.short_field = 0;
-this.string_field = null;
-this.string_vector = null;
-}
-public ExampleObject(int id) {
-this.int_field = id;
-this.string_field = String.valueOf(id);
-this.short_field = Short.parseShort(string_field);
-this.double_field = Double.parseDouble(string_field);
-this.float_field = Float.parseFloat(string_field);
-this.long_field = Long.parseLong(string_field);
-this.string_vector = new Vector();
-for (int i=0; i<3; i++) {
-this.string_vector.addElement(string_field);
-}
-}
-public ExampleObject(String id_str) {
-this.int_field = Integer.parseInt(id_str);
-this.string_field = id_str;
-this.short_field = Short.parseShort(string_field);
-this.double_field = Double.parseDouble(string_field);
-this.float_field = Float.parseFloat(string_field);
-this.long_field = Long.parseLong(string_field);
-this.string_vector = new Vector();
-for (int i=0; i<3; i++) {
-this.string_vector.addElement(string_field);
-}
-}
-public double getDouble_field( ) {
-return this.double_field;
-}
-public void setDouble_field( double double_field ) {
-this.double_field = double_field;
-}
-public long getLong_field( ) {
-return this.long_field;
-}
-public void setLong_field( long long_field ) {
-this.long_field = long_field;
-}
-public float getFloat_field( ) {
-return this.float_field;
-}
-public void setFloat_field( float float_field ) {
-this.float_field = float_field;
-}
-public int getInt_field( ) {
-return this.int_field;
-}
-public void setInt_field( int int_field ) {
-   

[21/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/distributed_regions/chapter_overview.html.md.erb
--
diff --git 
a/geode-docs/developing/distributed_regions/chapter_overview.html.md.erb 
b/geode-docs/developing/distributed_regions/chapter_overview.html.md.erb
index ce33ee2..d24de37 100644
--- a/geode-docs/developing/distributed_regions/chapter_overview.html.md.erb
+++ b/geode-docs/developing/distributed_regions/chapter_overview.html.md.erb
@@ -2,6 +2,23 @@
 title:  Distributed and Replicated Regions
 ---
 
+
+
 In addition to basic region management, distributed and replicated regions 
include options for things like push and pull distribution models, global 
locking, and region entry versions to ensure consistency across Geode members.
 
 -   **[How Distribution 
Works](../../developing/distributed_regions/how_distribution_works.html)**

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/distributed_regions/choosing_level_of_dist.html.md.erb
--
diff --git 
a/geode-docs/developing/distributed_regions/choosing_level_of_dist.html.md.erb 
b/geode-docs/developing/distributed_regions/choosing_level_of_dist.html.md.erb
index f48aaeb..3d48ab4 100644
--- 
a/geode-docs/developing/distributed_regions/choosing_level_of_dist.html.md.erb
+++ 
b/geode-docs/developing/distributed_regions/choosing_level_of_dist.html.md.erb
@@ -2,6 +2,23 @@
 title:  Options for Region Distribution
 ---
 
+
+
 You can use distribution with and without acknowledgment, or global locking 
for your region distribution. Regions that are configured for distribution with 
acknowledgment can also be configured to resolve concurrent updates 
consistently across all Geode members that host the region.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/distributed_regions/how_distribution_works.html.md.erb
--
diff --git 
a/geode-docs/developing/distributed_regions/how_distribution_works.html.md.erb 
b/geode-docs/developing/distributed_regions/how_distribution_works.html.md.erb
index bbc7522..857a194 100644
--- 
a/geode-docs/developing/distributed_regions/how_distribution_works.html.md.erb
+++ 
b/geode-docs/developing/distributed_regions/how_distribution_works.html.md.erb
@@ -2,6 +2,23 @@
 title:  How Distribution Works
 ---
 
+
+
 To use distributed and replicated regions, you should understand how they work 
and your options for managing them.
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/distributed_regions/how_region_versioning_works.html.md.erb
--
diff --git 
a/geode-docs/developing/distributed_regions/how_region_versioning_works.html.md.erb
 
b/geode-docs/developing/distributed_regions/how_region_versioning_works.html.md.erb
index 7e4c551..c8b98f7 100644
--- 
a/geode-docs/developing/distributed_regions/how_region_versioning_works.html.md.erb
+++ 
b/geode-docs/developing/distributed_regions/how_region_versioning_works.html.md.erb
@@ -2,6 +2,23 @@
 title: Consistency Checking by Region Type
 ---
 
+
+
 
 
 Geode performs different consistency checks depending on the type of region 
you have configured.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/developing/distributed_regions/how_region_versioning_works_wan.html.md.erb
--
diff --git 
a/geode-docs/developing/distributed_regions/how_region_versioning_works_wan.html.md.erb
 
b/geode-docs/developing/distributed_regions/how_region_versioning_works_wan.html.md.erb
index 0ce2f04..275d496 100644
--- 
a/geode-docs/developing/distributed_regions/how_region_versioning_works_wan.html.md.erb
+++ 
b/geode-docs/developing/distributed_regions/how_region_versioning_works_wan.html.md.erb
@@ -2,6 +2,23 @@
 title:  How Consistency Is Achieved in WAN Deployments
 ---
 
+
+
 When two or more Geode systems are configured to distribute events over a WAN, 
each system performs local consistency checking before it distributes an event 
to a configured gateway sender. Discarded events are not distributed across the 
WAN.
 
 Regions can also be configured to distribute updates to other Geode clusters 
over a WAN. With a distributed WAN configuration, multiple gateway senders 
asynchronously queue and send region updates to another Geode cluster. It is 
possible for multiple sites to send updates to the same region entry at the 
same time. It is also possible that, due to a slow WAN connection, a cluster 
might receive region updates after a considerable delay, and after it has 
applied more recent updates to a region. To ensure that WAN-replicated regions 
eventually reach a 

[02/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/remote-querying/96-progexamples/3-query-code-examples-structset.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/remote-querying/96-progexamples/3-query-code-examples-structset.html.md.erb
 
b/geode-docs/nativeclient/remote-querying/96-progexamples/3-query-code-examples-structset.html.md.erb
deleted file mode 100644
index d4c2ba3..000
--- 
a/geode-docs/nativeclient/remote-querying/96-progexamples/3-query-code-examples-structset.html.md.erb
+++ /dev/null
@@ -1,192 +0,0 @@

-title:  Query Code Samples Returning StructSet

-
-These examples return a `StructSet` for built-in and user-defined data types, 
`Struct` objects, and collections.
-
-## Query Returning a StructSet for a Built-In Data Type
-
-``` pre
-QueryServicePtr qrySvcPtr = cachePtr->getQueryService("examplePool");
-const char * querystring =
-   "SELECT DISTINCT ID, pkid, status, getType FROM /portfolios";
-QueryPtr query = qrySvcPtr->newQuery(querystring);
-//specify 10 seconds for the query timeout period
-SelectResultsPtr results = query->execute(10);
-if (results == NULLPTR)
-{
-   printf( "\nNo results returned from the server");
-}
-//obtaining a handle to resultset
-StructSetPtr ss(dynamic_cast (results.ptr()));
-if (ss == NULLPTR)
-{
-   printf ("\nStructSet is not obtained \n");
-   return;
-}
-//iterating through the resultset using indexes.
-for ( int32_t row=0; row < ss->size(); row++)
-{
-   Struct * siptr = (Struct*) dynamic_cast ( ((*ss)[row]).ptr() );
-   if (siptr == NULL)
-   {
-  printf("\nstruct is empty \n");
-  continue;
- 
-}
-//iterate through fields now
-for( int32_t field=0; field < siptr->length(); field++)
-{
-   SerializablePtr fieldptr((*siptr)[field]);
-   if(fieldptr == NULLPTR )
-   {
-  printf("\nnull data received\n");
-   }
-   CacheableStringPtr
-  str(dynamic_cast(fieldptr.ptr()));
-   if (str == NULLPTR)
-   {
-  printf("\n field is of some other type \n");
-   }
-   else
-   {
-  printf("\n Data for %s is %s ", siptr->getFieldName(field), 
str->asChar() );
-   }
-} //end of columns
- } // end of rows
-```
-
-## Returning Struct Objects
-
-``` pre
-QueryServicePtr qrySvcPtr = cachePtr->getQueryService("examplePool");
-const char * querystring =
-   "SELECT DISTINCT derivedProjAttrbts, key: p.key FROM "
-   "/Portfolios.entries p, (SELECT DISTINCT x.ID, myPos.secId FROM "
-   "/Portfolios x, x.positions.values AS myPos) derivedProjAttrbts WHERE "
-   "p.value.ID = derivedProjAttrbts.ID AND derivedProjAttrbts.secId = 'IBM'";
-QueryPtr query = qrySvcPtr->newQuery(querystring);
-//specify 10 seconds for the query timeout period
-SelectResultsPtr results = query->execute(10);
-if (results == NULLPTR)
-{
-   printf( "\nNo results returned from the server");
-}
-//obtaining a handle to resultset
-StructSetPtr ss(dynamic_cast (results.ptr()));
-if (ss == NULLPTR)
-{
-   printf ("\nStructSet is not obtained \n");
-   return;
-}
-//iterating through the resultset using indexes.
-for (int32_t row=0; row < ss->size(); row++)
-{
-   Struct * siptr = (Struct*) dynamic_cast ( ((*ss)[row]).ptr() );
-   if (siptr == NULL) { printf("\nstruct is empty \n"); }
-   //iterate through fields now
-   for (int32_t field=0; field < siptr->length(); field++) {
-   SerializablePtr fieldptr((*siptr)[field]);
-   if (fieldptr == NULLPTR )
-   {
-  printf("\nnull data received\n");
-   }
-   CacheableStringPtr
-  str(dynamic_cast(fieldptr.ptr()));
-   if (str != NULLPTR) {
-  printf("\n Data for %s is %s ", siptr->getFieldName(field),
-  str->asChar() );
-   }
-   else
-   {
-  StructPtr simpl(dynamic_cast (fieldptr.ptr()));
-  if (simpl == NULLPTR)
-  {
-  printf("\n field is of some other type \n"); continue;
-  }
-  printf( "\n struct received %s \n", siptr->getFieldName(field) );
-  for (int32_t inner_field=0; inner_field < simpl->length(); 
inner_field++)
-  {
-  SerializablePtr innerfieldptr((*simpl)[inner_field]);
-  if (innerfieldptr == NULLPTR)
-  {
-  printf("\nfield of struct is NULL\n");
-  }
-  CacheableStringPtr str(dynamic_cast
- (innerfieldptr.ptr()));
-  if (str != NULLPTR)
-  {
-  printf("\n Data for %s is %s ",
-  simpl->getFieldName(inner_field),str->asChar() );
-  }
-  else
-  {
-  printf("\n some other object type inside struct\n");
-  }
-   }
-}
-} //end of columns
- 

[15/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/get_region_key_data.html.md.erb
--
diff --git a/geode-docs/rest_apps/get_region_key_data.html.md.erb 
b/geode-docs/rest_apps/get_region_key_data.html.md.erb
index f2df62d..8549ee0 100644
--- a/geode-docs/rest_apps/get_region_key_data.html.md.erb
+++ b/geode-docs/rest_apps/get_region_key_data.html.md.erb
@@ -2,6 +2,23 @@
 title:  GET /gemfire-api/v1/{region}/{key}
 ---
 
+
+
 Read data for a specific key in the region.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/get_region_keys.html.md.erb
--
diff --git a/geode-docs/rest_apps/get_region_keys.html.md.erb 
b/geode-docs/rest_apps/get_region_keys.html.md.erb
index 9089121..fa7bbd0 100644
--- a/geode-docs/rest_apps/get_region_keys.html.md.erb
+++ b/geode-docs/rest_apps/get_region_keys.html.md.erb
@@ -2,6 +2,23 @@
 title:  GET /gemfire-api/v1/{region}/keys
 ---
 
+
+
 List all keys for the specified region.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/get_regions.html.md.erb
--
diff --git a/geode-docs/rest_apps/get_regions.html.md.erb 
b/geode-docs/rest_apps/get_regions.html.md.erb
index 6633100..b8e6add 100644
--- a/geode-docs/rest_apps/get_regions.html.md.erb
+++ b/geode-docs/rest_apps/get_regions.html.md.erb
@@ -2,6 +2,23 @@
 title:  GET /gemfire-api/v1
 ---
 
+
+
 List all available resources (regions) in the Geode cluster.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/get_servers.html.md.erb
--
diff --git a/geode-docs/rest_apps/get_servers.html.md.erb 
b/geode-docs/rest_apps/get_servers.html.md.erb
index ea4a512..1ac585f 100644
--- a/geode-docs/rest_apps/get_servers.html.md.erb
+++ b/geode-docs/rest_apps/get_servers.html.md.erb
@@ -2,6 +2,23 @@
 title:  GET /gemfire-api/v1/servers
 ---
 
+
+
 Mechanism to obtain a list of all members in the distributed system that are 
running the REST API service.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/head_region_size.html.md.erb
--
diff --git a/geode-docs/rest_apps/head_region_size.html.md.erb 
b/geode-docs/rest_apps/head_region_size.html.md.erb
index 37dc8b0..3a83bb6 100644
--- a/geode-docs/rest_apps/head_region_size.html.md.erb
+++ b/geode-docs/rest_apps/head_region_size.html.md.erb
@@ -2,6 +2,23 @@
 title:  HEAD /gemfire-api/v1/{region}
 ---
 
+
+
 An HTTP HEAD request that returns region's size (number of entries) within the 
HEADERS, which is a response without the content-body. Region size is specified 
in the pre-defined header named "Resource-Count".
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/ping_service.html.md.erb
--
diff --git a/geode-docs/rest_apps/ping_service.html.md.erb 
b/geode-docs/rest_apps/ping_service.html.md.erb
index 2467b26..d6339e3 100644
--- a/geode-docs/rest_apps/ping_service.html.md.erb
+++ b/geode-docs/rest_apps/ping_service.html.md.erb
@@ -2,6 +2,23 @@
 title:  \[HEAD | GET\] /gemfire-api/v1/ping
 ---
 
+
+
 Mechanism to check for REST API server and service availability.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/post_create_query.html.md.erb
--
diff --git a/geode-docs/rest_apps/post_create_query.html.md.erb 
b/geode-docs/rest_apps/post_create_query.html.md.erb
index 9e4743d..9062948 100644
--- a/geode-docs/rest_apps/post_create_query.html.md.erb
+++ b/geode-docs/rest_apps/post_create_query.html.md.erb
@@ -2,6 +2,23 @@
 title:  POST /gemfire-api/v1/queries?id=queryId=OQL-statement
 ---
 
+
+
 Create (prepare) the specified parameterized query and assign the 
corresponding ID for lookup.
 
 ## Resource URL

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/rest_apps/post_execute_functions.html.md.erb
--
diff --git a/geode-docs/rest_apps/post_execute_functions.html.md.erb 
b/geode-docs/rest_apps/post_execute_functions.html.md.erb
index ee7064c..32d8cd7 100644
--- a/geode-docs/rest_apps/post_execute_functions.html.md.erb
+++ b/geode-docs/rest_apps/post_execute_functions.html.md.erb
@@ -2,6 +2,23 @@
 title:  POST /gemfire-api/v1/functions/{functionId}
 ---
 
+
+
 Execute Geode function on entire cluster or on a specified region, members and 
member 

[16/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/implementing_security.html.md.erb
--
diff --git a/geode-docs/managing/security/implementing_security.html.md.erb 
b/geode-docs/managing/security/implementing_security.html.md.erb
index a38dd03..c0afc5c 100644
--- a/geode-docs/managing/security/implementing_security.html.md.erb
+++ b/geode-docs/managing/security/implementing_security.html.md.erb
@@ -2,6 +2,23 @@
 title:  Security Implementation Introduction and Overview
 ---
 
+
+
 ## Security Features
 
 Encryption, SSL secure communication, authentication, and authorization 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/implementing_ssl.html.md.erb
--
diff --git a/geode-docs/managing/security/implementing_ssl.html.md.erb 
b/geode-docs/managing/security/implementing_ssl.html.md.erb
index 73bbf49..c19b6d9 100644
--- a/geode-docs/managing/security/implementing_ssl.html.md.erb
+++ b/geode-docs/managing/security/implementing_ssl.html.md.erb
@@ -2,6 +2,23 @@
 title:  Configuring SSL
 ---
 
+
+
 You can configure SSL for authentication between members and to protect your 
data during
 distribution. You can use SSL alone or in conjunction with the other Geode 
security options.
 Geode SSL connections use the Java Secure Sockets Extension (JSSE) package.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/post_processing.html.md.erb
--
diff --git a/geode-docs/managing/security/post_processing.html.md.erb 
b/geode-docs/managing/security/post_processing.html.md.erb
index 2a6dc50..f0ce32e 100644
--- a/geode-docs/managing/security/post_processing.html.md.erb
+++ b/geode-docs/managing/security/post_processing.html.md.erb
@@ -2,6 +2,23 @@
 title:  Post Processing of Region Data
 ---
 
+
+
 The  `PostProcessor` interface allows the definition of a callback
 that is invoked after any and all client and `gfsh` operations that get data,
 but before the data is returned.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/properties_file.html.md.erb
--
diff --git a/geode-docs/managing/security/properties_file.html.md.erb 
b/geode-docs/managing/security/properties_file.html.md.erb
index d4758c1..e9ba1d6 100644
--- a/geode-docs/managing/security/properties_file.html.md.erb
+++ b/geode-docs/managing/security/properties_file.html.md.erb
@@ -1,6 +1,23 @@
 ---
 title: Where to Place Security Configuration Settings 
 ---
+
+
 
 
 Any security-related (properties that begin with `security-*`) configuration 
properties that are normally configured in `gemfire.properties` can be moved to 
a separate `gfsecurity.properties` file. Placing these configuration settings 
in a separate file allows you to restrict access to security configuration 
data. This way, you can still allow read or write access for your 
`gemfire.properties` file.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/security-audit.html.md.erb
--
diff --git a/geode-docs/managing/security/security-audit.html.md.erb 
b/geode-docs/managing/security/security-audit.html.md.erb
index f35a29a..0a6c410 100644
--- a/geode-docs/managing/security/security-audit.html.md.erb
+++ b/geode-docs/managing/security/security-audit.html.md.erb
@@ -1,6 +1,23 @@
 ---
 title: External Interfaces, Ports, and Services
 ---
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/security_audit_overview.html.md.erb
--
diff --git a/geode-docs/managing/security/security_audit_overview.html.md.erb 
b/geode-docs/managing/security/security_audit_overview.html.md.erb
index 307dc2c..7f1c374 100644
--- a/geode-docs/managing/security/security_audit_overview.html.md.erb
+++ b/geode-docs/managing/security/security_audit_overview.html.md.erb
@@ -1,6 +1,23 @@
 ---
 title: Security Detail Considerations
 ---
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/managing/security/security_intro.html.md.erb
--
diff --git a/geode-docs/managing/security/security_intro.html.md.erb 
b/geode-docs/managing/security/security_intro.html.md.erb
index 1ebf105..7b70a7f 100644
--- a/geode-docs/managing/security/security_intro.html.md.erb
+++ b/geode-docs/managing/security/security_intro.html.md.erb
@@ -2,6 +2,23 @@
 title:  Security Features
 ---
 
+
+
 Encryption, SSL secure communication, authentication, and authorization 
 

[38/50] [abbrv] incubator-geode git commit: GEODE-1952 Remove old redirects

2016-10-14 Thread upthewaterspout
GEODE-1952 Remove old redirects


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7592ba10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7592ba10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7592ba10

Branch: refs/heads/develop
Commit: 7592ba1027e51ae84dcfbed297534522557fbbec
Parents: e9b44af
Author: Joey McAllister 
Authored: Tue Oct 11 14:38:11 2016 -0700
Committer: Joey McAllister 
Committed: Tue Oct 11 14:38:11 2016 -0700

--
 geode-book/redirects.rb | 2 --
 1 file changed, 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7592ba10/geode-book/redirects.rb
--
diff --git a/geode-book/redirects.rb b/geode-book/redirects.rb
index 3f223dc..d71841a 100644
--- a/geode-book/redirects.rb
+++ b/geode-book/redirects.rb
@@ -1,5 +1,3 @@
 r301 %r{/releases/latest/javadoc/(.*)}, 
'http://geode.incubator.apache.org/releases/latest/javadoc/$1'
-r301 %r{/docs-gemfire/latest/cpp_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/cpp_api/$1'
-r301 %r{/docs-gemfire/latest/net_api/(.*)}, 
'http://data-docs-samples.cfapps.io/docs-gemfire/latest/net_api/$1'
 rewrite '/', '/docs/about_geode.html'
 rewrite '/index.html', '/docs/about_geode.html'



[14/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/load-balance.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/gfsh/command-pages/load-balance.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/load-balance.html.md.erb
index c79dd3e..c27c0d7 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/load-balance.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/load-balance.html.md.erb
@@ -2,6 +2,23 @@
 title:  load-balance gateway-sender
 ---
 
+
+
 Causes the specified gateway sender to close its current connections and 
reconnect to remote gateway receivers in a more balanced fashion.
 
 Use this command to load balance connections between gateway senders to 
receivers. For example, when you add a new gateway receiver node at a remote 
site, execute this command so that the new gateway receiver can pick up 
connections from the specified gateway sender. Invoking this command 
redistributes a sender's connections more evenly among all the gateway 
receivers.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/locate.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/locate.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/locate.html.md.erb
index e6988cb..1dc6628 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/locate.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/locate.html.md.erb
@@ -2,6 +2,23 @@
 title:  locate entry
 ---
 
+
+
 Locate a region entry on a member.
 
 ## locate entry

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/netstat.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/netstat.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/netstat.html.md.erb
index 3ac0a5d..00446c1 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/netstat.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/netstat.html.md.erb
@@ -2,6 +2,23 @@
 title:  netstat
 ---
 
+
+
 Report network information and statistics via the "netstat" operating system 
command.
 
 Report important network usage information/statistics for the given member.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/pause.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/pause.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/pause.html.md.erb
index 1ea2ab2..86a1d8c 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/pause.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/pause.html.md.erb
@@ -2,6 +2,23 @@
 title:  pause gateway-sender
 ---
 
+
+
 Pause a gateway sender.
 
 Pause the gateway sender on a member or members. See [Pausing Gateway 
Senders](../../../topologies_and_comm/topology_concepts/multisite_overview.html#topic_9AA37B43642D4DE19072CA3367C849BA__section_hdt_2js_bq)
 for details on pausing gateway senders.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/pdx.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/pdx.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/pdx.html.md.erb
index bb57d13..4a3e85e 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/pdx.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/pdx.html.md.erb
@@ -2,6 +2,23 @@
 title:  pdx rename
 ---
 
+
+
 Renames PDX types in an offline disk store.
 
 Any PDX types that are renamed will be listed in the output. If no renames are 
done or the disk-store is online, then this command will fail.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/put.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/put.html.md.erb 
b/geode-docs/tools_modules/gfsh/command-pages/put.html.md.erb
index 38a5e6a..e5ab1e6 100644
--- a/geode-docs/tools_modules/gfsh/command-pages/put.html.md.erb
+++ b/geode-docs/tools_modules/gfsh/command-pages/put.html.md.erb
@@ -2,6 +2,23 @@
 title:  put
 ---
 
+
+
 Add or update a region entry.
 
 Add or update an entry in a region.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/gfsh/command-pages/query.html.md.erb
--
diff --git a/geode-docs/tools_modules/gfsh/command-pages/query.html.md.erb 

[13/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/http_session_mgmt/tomcat_setting_up_the_module.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/http_session_mgmt/tomcat_setting_up_the_module.html.md.erb
 
b/geode-docs/tools_modules/http_session_mgmt/tomcat_setting_up_the_module.html.md.erb
index a94609e..a472ab3 100644
--- 
a/geode-docs/tools_modules/http_session_mgmt/tomcat_setting_up_the_module.html.md.erb
+++ 
b/geode-docs/tools_modules/http_session_mgmt/tomcat_setting_up_the_module.html.md.erb
@@ -2,6 +2,23 @@
 title:  Setting Up the HTTP Module for Tomcat
 ---
 
+
+
 To use the Geode HTTP module with Tomcat application servers, you will need to 
modify Tomcat's `server.xml` and `context.xml` files.
 
 Configuration is slightly different depending on the topology you are setting 
up. Refer to [Common Topologies for HTTP Session 
Management](common_gemfire_topologies.html#common_gemfire_topologies) for more 
information.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/http_session_mgmt/weblogic_changing_gf_default_cfg.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_changing_gf_default_cfg.html.md.erb
 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_changing_gf_default_cfg.html.md.erb
index d86dca6..50e41be 100644
--- 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_changing_gf_default_cfg.html.md.erb
+++ 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_changing_gf_default_cfg.html.md.erb
@@ -2,6 +2,23 @@
 title:  Changing the Default Geode Configuration in the AppServers Module
 ---
 
+
+
 By default, the AppServers module will run Geode automatically with 
preconfigured settings. You can change these Geode settings.
 
 Here are the default settings:

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/http_session_mgmt/weblogic_common_configuration_changes.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_common_configuration_changes.html.md.erb
 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_common_configuration_changes.html.md.erb
index 693fc8e..7669fdd 100644
--- 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_common_configuration_changes.html.md.erb
+++ 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_common_configuration_changes.html.md.erb
@@ -2,6 +2,23 @@
 title:  Common Geode Configuration Changes for AppServers
 ---
 
+
+
 ## Overriding Region Attributes
 
 When using the HTTP Session Management Module, you cannot override region 
attributes directly on the cache server. You must place all region attribute 
definitions in the region attributes template that you customize within the 
application server. For example, to specify a different name for the region's 
disk store, you could add the new disk-store-name specification to the region 
attributes template and then reference the template on the cache server.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/http_session_mgmt/weblogic_setting_up_the_module.html.md.erb
--
diff --git 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_setting_up_the_module.html.md.erb
 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_setting_up_the_module.html.md.erb
index 935853f..e0eb267 100644
--- 
a/geode-docs/tools_modules/http_session_mgmt/weblogic_setting_up_the_module.html.md.erb
+++ 
b/geode-docs/tools_modules/http_session_mgmt/weblogic_setting_up_the_module.html.md.erb
@@ -2,6 +2,23 @@
 title:  Setting Up the HTTP Module for AppServers
 ---
 
+
+
 To use the module, you need to modify your application's `web.xml` files. 
Configuration is slightly different depending on the topology you are setting 
up.
 
 Refer to [Common Topologies for HTTP Session 
Management](common_gemfire_topologies.html#common_gemfire_topologies) for more 
information. Modifying the war file can be done manually or with the 
`modify_war` script. To see the command line options for the `modify_war` 
script, invoke:

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6bea8204/geode-docs/tools_modules/pulse/chapter_overview.html.md.erb
--
diff --git a/geode-docs/tools_modules/pulse/chapter_overview.html.md.erb 
b/geode-docs/tools_modules/pulse/chapter_overview.html.md.erb
index 553fa55..19de8f1 100644
--- a/geode-docs/tools_modules/pulse/chapter_overview.html.md.erb
+++ b/geode-docs/tools_modules/pulse/chapter_overview.html.md.erb
@@ -2,6 +2,23 @@
 title:  Geode Pulse
 ---
 
+
+
 Geode Pulse is a Web Application that provides a graphical dashboard 

[11/50] [abbrv] incubator-geode git commit: GEODE-420: fix Pulse test when not using any SSLConfig

2016-10-14 Thread upthewaterspout
GEODE-420: fix Pulse test when not using any SSLConfig

(cherry picked from commit e04519d)


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/17cc4724
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/17cc4724
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/17cc4724

Branch: refs/heads/develop
Commit: 17cc4724b5e53d6660dcffc17f63a267078cdc63
Parents: 864fc08
Author: Jinmei Liao 
Authored: Mon Oct 3 10:51:05 2016 -0700
Committer: Jinmei Liao 
Committed: Wed Oct 5 12:19:24 2016 -0700

--
 .../java/org/apache/geode/management/internal/JettyHelper.java  | 4 +---
 .../apache/geode/tools/pulse/testbed/driver/PulseUITest.java| 5 ++---
 .../org/apache/geode/tools/pulse/tests/PulseAbstractTest.java   | 5 ++---
 3 files changed, 5 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/17cc4724/geode-core/src/main/java/org/apache/geode/management/internal/JettyHelper.java
--
diff --git 
a/geode-core/src/main/java/org/apache/geode/management/internal/JettyHelper.java
 
b/geode-core/src/main/java/org/apache/geode/management/internal/JettyHelper.java
index 089dbac..f1906b1 100644
--- 
a/geode-core/src/main/java/org/apache/geode/management/internal/JettyHelper.java
+++ 
b/geode-core/src/main/java/org/apache/geode/management/internal/JettyHelper.java
@@ -36,8 +36,6 @@ import org.apache.geode.GemFireConfigException;
 import org.apache.geode.internal.admin.SSLConfig;
 import org.apache.geode.internal.lang.StringUtils;
 import org.apache.geode.internal.logging.LogService;
-import org.apache.geode.internal.net.SSLConfigurationFactory;
-import org.apache.geode.internal.security.SecurableCommunicationChannel;
 
 /**
  * @since GemFire 8.1
@@ -197,7 +195,7 @@ public class JettyHelper {
 if (args.length > 1) {
   System.out.printf("Temporary Directory @ ($1%s)%n", USER_DIR);
 
-  final Server jetty = JettyHelper.initJetty(null, 8090, 
SSLConfigurationFactory.getSSLConfigForComponent(SecurableCommunicationChannel.WEB));
+  final Server jetty = JettyHelper.initJetty(null, 8090, new SSLConfig());
 
   for (int index = 0; index < args.length; index += 2) {
 final String webAppContext = args[index];

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/17cc4724/geode-pulse/src/test/java/org/apache/geode/tools/pulse/testbed/driver/PulseUITest.java
--
diff --git 
a/geode-pulse/src/test/java/org/apache/geode/tools/pulse/testbed/driver/PulseUITest.java
 
b/geode-pulse/src/test/java/org/apache/geode/tools/pulse/testbed/driver/PulseUITest.java
index a2365a2..a4062e5 100644
--- 
a/geode-pulse/src/test/java/org/apache/geode/tools/pulse/testbed/driver/PulseUITest.java
+++ 
b/geode-pulse/src/test/java/org/apache/geode/tools/pulse/testbed/driver/PulseUITest.java
@@ -35,8 +35,7 @@ import org.openqa.selenium.firefox.FirefoxDriver;
 import org.openqa.selenium.support.ui.ExpectedCondition;
 import org.openqa.selenium.support.ui.WebDriverWait;
 
-import org.apache.geode.internal.net.SSLConfigurationFactory;
-import org.apache.geode.internal.security.SecurableCommunicationChannel;
+import org.apache.geode.internal.admin.SSLConfig;
 import org.apache.geode.management.internal.JettyHelper;
 import org.apache.geode.test.junit.categories.UITest;
 import org.apache.geode.tools.pulse.testbed.GemFireDistributedSystem.Locator;
@@ -72,7 +71,7 @@ public class PulseUITest {
 path = getPulseWarPath();
 //System.setProperty("pulse.propMockDataUpdaterClass", 
"org.apache.geode.tools.pulse.testbed.PropMockDataUpdater");
 
-jetty = JettyHelper.initJetty(host, port, 
SSLConfigurationFactory.getSSLConfigForComponent(SecurableCommunicationChannel.WEB));
+jetty = JettyHelper.initJetty(host, port, new SSLConfig());
 JettyHelper.addWebApplication(jetty, context, getPulseWarPath());
 jetty.start();
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/17cc4724/geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
--
diff --git 
a/geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
 
b/geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
index 5024250..ff70b35 100644
--- 
a/geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
+++ 
b/geode-pulse/src/test/java/org/apache/geode/tools/pulse/tests/PulseAbstractTest.java
@@ -44,8 +44,7 @@ import org.openqa.selenium.support.ui.ExpectedCondition;
 import org.openqa.selenium.support.ui.ExpectedConditions;
 

[01/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
Repository: incubator-geode
Updated Branches:
  refs/heads/develop de6215978 -> 1fb0d0a9d


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/sqlite-persistence/windows_install.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/sqlite-persistence/windows_install.html.md.erb 
b/geode-docs/nativeclient/sqlite-persistence/windows_install.html.md.erb
deleted file mode 100644
index d753366..000
--- a/geode-docs/nativeclient/sqlite-persistence/windows_install.html.md.erb
+++ /dev/null
@@ -1,37 +0,0 @@

-title:  Windows Installation

-
-This topic describes how to install the SQLite Persistence Manager on Windows 
for use with the Geode native client.
-
-The Geode Native Client has been tested with SQLite v3.7.14.1.
-
-The productDir directory refers to the native client 
product directory path.
-
-The following libraries are required. The productDir/bin 
directory containing these libraries must be present in the Windows `PATH` 
environment variable, and that directory is added to `PATH` during the Geode 
product installation.
-
--   The `sqliteimpl.dll` and `GemStone.GemFire.Plugins.SQLite.dll` files are 
provided in productDir/bin.
--   For .NET C\# native client application development, you need to obtain the 
`System.Data.SQLite.dll` SQLite library, as described below. The library can be 
copied to productDir/bin.
--   For C++ native client application development, you need the `SqLite3.dll` 
SQLite Library. You create this library and make it available in the runtime 
linking path, or copied to productDir/bin, as described 
below.
-
-## Downloading Pre-built System.Data.SQLite.dll Binaries
-
-If you are writing native client applications using the .NET caching API, 
obtain the SQLite library (version 3.12.2 or later) for Windows as follows:
-
-1.  Access the System.Data.SQLite Download Page at the following URL: 
[http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki](http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki).
-2.  Download the appropriate setup file for your .NET Framework installation 
and hardware architecture.
--   For 64-bit Windows, under **Precompiled Binaries for 64-bit Windows 
(.NET Framework 4.5.1)** download 
`sqlite-netFx451-binary-bundle-x64-2013-1.0.101.0.zip`.
-
-3.  Execute the setup .exe file, and follow the prompts in the installation 
wizard. Accept all default installation options.
-4.  Copy the `C:\Program 
Files\System.Data.SQLite\2010\bin\System.Data.SQLite.dll` file to your Geode 
Native Client distribution at `productDir\bin`.
-
-## Downloading, Building, and Installing the Library
-
-If you are writing native client applications using the C++ caching API, you 
need to build the SQLite solution for your Windows platform architecture.
-
-1.  Download the source code `sqlite-autoconf-NNN.tar.gz` file (where 
*NNN* corresponds to the version) for SQLite version 3.12.2 or later from 
[http://www.sqlite.org/download.html](http://www.sqlite.org/download.html).
-2.  Extract the source code from the .tar.gz file. You may need to use CygWin 
or a Windows-compatible tar extraction tool.
-3.  Using Visual Studio, build the version-specific SqLite solution either as 
a release or debug build:
--   If you are using 64-bit Windows, use the x64 configuration.
-
-4.  From the built files, copy the `SqLite3.dll` file to your Geode Native 
Client distribution at productDir/bin.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/system-statistics/cache_performance_statistics.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/system-statistics/cache_performance_statistics.html.md.erb
 
b/geode-docs/nativeclient/system-statistics/cache_performance_statistics.html.md.erb
deleted file mode 100644
index 0edcb18..000
--- 
a/geode-docs/nativeclient/system-statistics/cache_performance_statistics.html.md.erb
+++ /dev/null
@@ -1,30 +0,0 @@

-title:  Cache Performance Statistics

-
-Use cache performance statistics to determine the type and number of cache 
operations being performed and how much time they consume.
-
-These statistics are available if the member creates a cache.
-
-|  |   
   |
-|--|--|
-| `creates`| Total number of cache creates.
   |
-| `puts`   | Total number of cache puts.   
   |
-| `gets`   | Total number of cache gets. 

[10/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
GEODE-1952: removed native client docs, set aside until native client code is 
merged in (see GEODE-1964)


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/381d0faa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/381d0faa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/381d0faa

Branch: refs/heads/develop
Commit: 381d0faaedeba3c8079a03a4da971615d9762da5
Parents: ccc2fbd
Author: Dave Barnes 
Authored: Tue Oct 4 17:15:37 2016 -0700
Committer: Dave Barnes 
Committed: Tue Oct 4 17:15:37 2016 -0700

--
 .../about_native_client_users_guide.html.md.erb |  83 -
 .../cache-init-file/cache-dtd.html.md.erb   | 267 --
 .../chapter-overview.html.md.erb|  21 --
 .../example-cache-file.html.md.erb  |  48 ---
 .../cache-init-file/file-basics.html.md.erb |  18 -
 .../client-cache/accessing-entries.html.md.erb  |  38 --
 .../adding-entries-to-cache.html.md.erb |  32 --
 .../application-plugins.html.md.erb | 262 --
 .../client-cache/cache-management.html.md.erb   |  29 --
 .../client-cache/cache-ownership.html.md.erb|  11 -
 .../client-cache/caches.html.md.erb |  27 --
 .../client-cache/caching-apis.html.md.erb   |  28 --
 .../client-cache/caching-enabled.html.md.erb|  27 --
 .../client-cache/chapter-overview.html.md.erb   |  37 --
 .../client-to-server-connection.html.md.erb |  39 --
 .../client-cache/closing-cache.html.md.erb  |  11 -
 .../concurrency-checks-enabled.html.md.erb  |  18 -
 .../client-cache/concurrency-level.html.md.erb  |  18 -
 .../consistency_checking_in_regions.html.md.erb |  19 -
 .../controlling-cache-size.html.md.erb  |  20 --
 .../create-access-cache.html.md.erb |  53 ---
 .../declarative-region-creation.html.md.erb |  38 --
 .../client-cache/disk-policy.html.md.erb|  34 --
 .../client-cache/entries.html.md.erb|  20 --
 .../expiration-attributes.html.md.erb   |  65 
 .../getting-the-region-size.html.md.erb |  11 -
 .../client-cache/initial-capacity.html.md.erb   |  15 -
 .../invalidating-cached-entries.html.md.erb |  16 -
 .../invalidating-region.html.md.erb |  25 --
 .../client-cache/load-factor.html.md.erb|  15 -
 .../client-cache/lru-entries-limit.html.md.erb  |  31 --
 .../managing-lifetime-cached-object.html.md.erb |  48 ---
 .../notification-for-operations.html.md.erb |  16 -
 .../overview-client-cache.html.md.erb   |  24 --
 .../persistence-manager.html.md.erb | 224 
 .../programmatic-region-creation.html.md.erb|  24 --
 .../client-cache/region-access.html.md.erb  |  21 --
 .../region-attributes-desc.html.md.erb  |  39 --
 .../client-cache/region-attributes.html.md.erb  |  35 --
 .../client-cache/region-shortcuts.html.md.erb   |  63 
 .../client-cache/regions.html.md.erb|  32 --
 ...registering-interest-for-entries.html.md.erb |  93 -
 .../requirements-for-distrib.html.md.erb|  11 -
 .../specify-region-attributes.html.md.erb   |   9 -
 .../client-cache/troubleshooting.html.md.erb|  41 ---
 .../client-cache/updating-entries.html.md.erb   |  16 -
 .../using-serverkeys-to-retrieve.html.md.erb|  32 --
 .../using-thread-safety.html.md.erb |  13 -
 .../common/images/10-Continuous_Querying-1.gif  | Bin 7411 -> 0 bytes
 .../common/images/10-Continuous_Querying-3.gif  | Bin 8611 -> 0 bytes
 .../common/images/6-DotNet_API-1.gif| Bin 4218 -> 0 bytes
 .../common/images/7-Preserving_Data-2.gif   | Bin 13146 -> 0 bytes
 .../common/images/client-cache-data-flow.gif| Bin 4422 -> 0 bytes
 .../common/images/client-cache-plugins-run.gif  | Bin 4340 -> 0 bytes
 .../common/images/client-server-arch.gif| Bin 7198 -> 0 bytes
 .../common/images/data-dep-func-from-client.gif | Bin 10336 -> 0 bytes
 .../common/images/data-dep-func-with-filter.gif | Bin 11062 -> 0 bytes
 .../images/data-indep-func-from-client.gif  | Bin 8105 -> 0 bytes
 .../delta-propagation-in-client-server.gif  | Bin 7115 -> 0 bytes
 .../common/images/delta-propagation.gif | Bin 8817 -> 0 bytes
 .../common/images/ha-data-dep-func.gif  | Bin 14684 -> 0 bytes
 .../common/images/native-client-overview.gif| Bin 6421 -> 0 bytes
 .../images/security-client-connections.gif  | Bin 8300 -> 0 bytes
 .../common/images/xact-run-from-client.gif  | Bin 9928 -> 0 bytes
 .../about-connection-pools.html.md.erb  |  20 --
 .../about-server-locators.html.md.erb   |  17 -
 .../client-load-balancing.html.md.erb   |  21 --
 ...iguring-pools-attributes-example.html.md.erb | 156 
 .../configuring-pools.html.md.erb   |  25 --
 

[28/50] [abbrv] incubator-geode git commit: GEODE-1972: Move Geode Hibernate module to a feature branch

2016-10-14 Thread upthewaterspout
GEODE-1972: Move Geode Hibernate module to a feature branch


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/38aa36f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/38aa36f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/38aa36f4

Branch: refs/heads/develop
Commit: 38aa36f4eb4df61333e17dab4abf9952baf2000b
Parents: 82ae617
Author: Jason Huynh 
Authored: Mon Oct 10 10:37:34 2016 -0700
Committer: Jason Huynh 
Committed: Mon Oct 10 10:37:34 2016 -0700

--
 extensions/geode-modules-assembly/build.gradle  |  12 +-
 extensions/geode-modules-hibernate/build.gradle |  42 --
 .../geode/modules/hibernate/EnumType.java   |  57 ---
 .../geode/modules/hibernate/GemFireCache.java   | 238 ---
 .../modules/hibernate/GemFireCacheListener.java |  54 ---
 .../modules/hibernate/GemFireCacheProvider.java | 200 -
 .../hibernate/GemFireQueryCacheFactory.java |  39 --
 .../modules/hibernate/GemFireRegionFactory.java | 221 --
 .../modules/hibernate/internal/Access.java  | 257 
 .../ClientServerRegionFactoryDelegate.java  | 201 -
 .../hibernate/internal/CollectionAccess.java| 224 --
 .../hibernate/internal/EntityRegionWriter.java  |  87 
 .../hibernate/internal/EntityVersion.java   |  27 --
 .../hibernate/internal/EntityVersionImpl.java   |  50 ---
 .../hibernate/internal/EntityWrapper.java   |  89 
 .../hibernate/internal/GemFireBaseRegion.java   | 166 
 .../internal/GemFireCollectionRegion.java   |  59 ---
 .../hibernate/internal/GemFireEntityRegion.java | 187 -
 .../internal/GemFireQueryResultsRegion.java | 113 -
 .../modules/hibernate/internal/KeyWrapper.java  |  92 
 .../internal/NonStrictReadWriteAccess.java  |  83 
 .../hibernate/internal/ReadOnlyAccess.java  |  55 ---
 .../hibernate/internal/ReadWriteAccess.java |  36 --
 .../internal/RegionFactoryDelegate.java | 146 ---
 .../hibernate/internal/TransactionalAccess.java |  25 --
 .../java/org/apache/geode/modules/Event.java|  67 ---
 .../geode/modules/HibernateJUnitTest.java   | 416 ---
 .../java/org/apache/geode/modules/Owner.java| 185 -
 .../java/org/apache/geode/modules/Person.java   |  72 
 .../org/apache/geode/modules/SecondVMTest.java  |  95 -
 .../src/test/resources/log4j.properties |  16 -
 .../org/apache/geode/modules/Event.hbm.xml  |  32 --
 .../org/apache/geode/modules/Person.hbm.xml |  36 --
 gradle/sonar.gradle |   6 -
 settings.gradle |   1 -
 35 files changed, 1 insertion(+), 3685 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/38aa36f4/extensions/geode-modules-assembly/build.gradle
--
diff --git a/extensions/geode-modules-assembly/build.gradle 
b/extensions/geode-modules-assembly/build.gradle
index f037aad..5604e12 100644
--- a/extensions/geode-modules-assembly/build.gradle
+++ b/extensions/geode-modules-assembly/build.gradle
@@ -154,15 +154,6 @@ task distTomcat(type: Zip, dependsOn: 
':extensions/geode-modules:assemble') {
   }
 }
 
-task distHibernate(type: Zip, dependsOn: 
':extensions/geode-modules-hibernate:assemble') {
-  archiveName = "Apache_Geode_Modules-${version}-Hibernate.zip"
-
-  into('lib') {
-from getJarArtifact(':extensions/geode-modules')
-from getJarArtifact(':extensions/geode-modules-hibernate')
-  }
-}
-
 task distAppServer(type: Zip, dependsOn: 
':extensions/geode-modules-session:assemble') {
   archiveName = "Apache_Geode_Modules-${version}-AppServer.zip"
 
@@ -204,11 +195,10 @@ task distTcServer30(type: Zip, dependsOn: 
[':extensions/geode-modules:assemble',
 dependencies {
   moduleDistOutputs distTcServer.outputs.files
   moduleDistOutputs distTcServer30.outputs.files
-  moduleDistOutputs distHibernate.outputs.files
   moduleDistOutputs distAppServer.outputs.files
   moduleDistOutputs distTomcat.outputs.files
 }
 
-task dist(type: Task, dependsOn: ['distTcServer', 'distTcServer30', 
'distTomcat', 'distHibernate', 'distAppServer'])
+task dist(type: Task, dependsOn: ['distTcServer', 'distTcServer30', 
'distTomcat', 'distAppServer'])
 
 build.dependsOn dist

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/38aa36f4/extensions/geode-modules-hibernate/build.gradle
--
diff --git a/extensions/geode-modules-hibernate/build.gradle 
b/extensions/geode-modules-hibernate/build.gradle
deleted file mode 100644
index 5169b04..000
--- a/extensions/geode-modules-hibernate/build.gradle
+++ /dev/null
@@ 

[23/50] [abbrv] incubator-geode git commit: GEODE-1952: Add Apache license to all geode-docs erb files

2016-10-14 Thread upthewaterspout
GEODE-1952: Add Apache license to all geode-docs erb files


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6bea8204
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6bea8204
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6bea8204

Branch: refs/heads/develop
Commit: 6bea8204c24c0f0b6424e97f491d787e016ab8fc
Parents: e0f5203
Author: Karen Miller 
Authored: Wed Oct 5 15:49:58 2016 -0700
Committer: Karen Miller 
Committed: Wed Oct 5 15:49:58 2016 -0700

--
 geode-docs/about_geode.html.md.erb | 17 +
 geode-docs/basic_config/book_intro.html.md.erb | 17 +
 .../config_concepts/chapter_overview.html.md.erb   | 17 +
 ...ributed_system_member_configuration.html.md.erb | 17 +
 .../config_concepts/local_vs_remote.html.md.erb| 17 +
 .../chapter_overview.html.md.erb   | 17 +
 .../managing_data_entries.html.md.erb  | 17 +
 .../using_custom_classes.html.md.erb   | 17 +
 .../data_regions/chapter_overview.html.md.erb  | 17 +
 .../create_a_region_with_API.html.md.erb   | 17 +
 .../create_a_region_with_cacheXML.html.md.erb  | 17 +
 .../create_a_region_with_gfsh.html.md.erb  | 17 +
 .../creating_custom_attributes.html.md.erb | 17 +
 .../data_regions/managing_data_regions.html.md.erb | 17 +
 .../managing_region_attributes.html.md.erb | 17 +
 .../new_region_existing_data.html.md.erb   | 17 +
 .../data_regions/region_naming.html.md.erb | 17 +
 .../data_regions/region_shortcuts.html.md.erb  | 17 +
 .../store_retrieve_region_shortcuts.html.md.erb| 17 +
 .../setting_distributed_properties.html.md.erb | 17 +
 .../the_cache/chapter_overview.html.md.erb | 17 +
 .../the_cache/intro_cache_management.html.md.erb   | 17 +
 .../the_cache/managing_a_client_cache.html.md.erb  | 17 +
 .../managing_a_multiuser_cache.html.md.erb | 17 +
 .../managing_a_peer_server_cache.html.md.erb   | 17 +
 .../the_cache/managing_a_secure_cache.html.md.erb  | 17 +
 .../setting_cache_initializer.html.md.erb  | 17 +
 .../the_cache/setting_cache_properties.html.md.erb | 17 +
 .../configuring/chapter_overview.html.md.erb   | 17 +
 .../deploying_application_jars.html.md.erb | 17 +
 .../cluster_config/export-import.html.md.erb   | 17 +
 .../gfsh_config_troubleshooting.html.md.erb| 17 +
 .../gfsh_load_from_shared_dir.html.md.erb  | 17 +
 .../cluster_config/gfsh_persist.html.md.erb| 17 +
 .../cluster_config/gfsh_remote.html.md.erb | 17 +
 .../persisting_configurations.html.md.erb  | 17 +
 .../cluster_config/using_member_groups.html.md.erb | 17 +
 .../running/change_file_spec.html.md.erb   | 17 +
 .../running/default_file_specs.html.md.erb | 17 +
 .../running/deploy_config_files_intro.html.md.erb  | 17 +
 .../running/deploying_config_files.html.md.erb | 17 +
 .../running/deploying_config_jar_files.html.md.erb | 17 +
 .../running/firewall_ports_config.html.md.erb  | 17 +
 .../running/firewalls_connections.html.md.erb  | 17 +
 .../running/firewalls_multisite.html.md.erb| 17 +
 .../running/firewalls_ports.html.md.erb| 17 +
 .../running/managing_output_files.html.md.erb  | 17 +
 .../running/running_the_cacheserver.html.md.erb| 17 +
 .../running/running_the_locator.html.md.erb| 17 +
 .../running/starting_up_shutting_down.html.md.erb  | 17 +
 geode-docs/developing/book_intro.html.md.erb   | 17 +
 .../chapter_overview.html.md.erb   | 17 +
 .../continuous_querying_whats_next.html.md.erb | 17 +
 .../how_continuous_querying_works.html.md.erb  | 17 +
 .../implementing_continuous_querying.html.md.erb   | 17 +
 .../PDX_Serialization_Features.html.md.erb | 17 +
 .../auto_serialization.html.md.erb | 17 +
 

[09/50] [abbrv] incubator-geode git commit: GEODE-1952: removed native client docs, set aside until native client code is merged in (see GEODE-1964)

2016-10-14 Thread upthewaterspout
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/client-cache/disk-policy.html.md.erb
--
diff --git a/geode-docs/nativeclient/client-cache/disk-policy.html.md.erb 
b/geode-docs/nativeclient/client-cache/disk-policy.html.md.erb
deleted file mode 100644
index d862004..000
--- a/geode-docs/nativeclient/client-cache/disk-policy.html.md.erb
+++ /dev/null
@@ -1,34 +0,0 @@

-title:  DiskPolicy

-
-
-If the `lru-entries-limit` attribute is greater than zero, the optional 
`disk-policy` attribute determines how over-limit LRU entries are handled. LRU 
entries over the limit are either destroyed by default (`disk-policy` is none ) 
or written to disk (`overflows`).
-
-**Note:**
-If `LruEntriesLimit` is `0`, or `CachingEnabled` is `false`, do not set the 
`disk-policy` attribute. An `IllegalStateException` is thrown if the attribute 
is set.
-
-This declaration causes LRU to overflow to disk:
-
-``` pre
-
-  
-
-```
-
-Overflow requires a persistence manager for cache-to-disk and disk-to-cache 
operations. See 
[PersistenceManager](persistence-manager.html#persistence-manager).
-
-## Overflowing Data to Disk
-
-Region data can be stored to disk using the overflow process to satisfy region 
capacity restrictions without completely destroying the local cache data. The 
storage mechanism uses disk files to hold region entry data. When an entry is 
overflowed, its value is written to disk but its key and entry object remain in 
the cache. This also uses the region attribute 
[DiskPolicy](disk-policy.html#disk-policy).
-
-Overflow allows you to keep the region within a user-specified size in memory 
by relegating the values of least recently used (LRU) entries to disk. Overflow 
essentially uses disk as a swap space for entry values. When the region size 
reaches the specified threshold, entry values are moved from memory to disk, as 
shown in the following figure. If an entry is requested whose value is only on 
disk, the value is copied back into memory, possibly causing the value of a 
different LRU entry to be overflowed to disk.
-
-
-
-Figure: Data Flow Between Overflow Region 
and Disk Files
-
-
-
-In this figure the value of the LRU entry X has been moved to disk to recover 
space in memory. The key for the entry remains in memory. From the distributed 
system perspective, the value on disk is as much a part of the region as the 
data in memory. A `get` performed on region B looks first in memory and then on 
disk as part of the local cache search.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/client-cache/entries.html.md.erb
--
diff --git a/geode-docs/nativeclient/client-cache/entries.html.md.erb 
b/geode-docs/nativeclient/client-cache/entries.html.md.erb
deleted file mode 100644
index b5799f5..000
--- a/geode-docs/nativeclient/client-cache/entries.html.md.erb
+++ /dev/null
@@ -1,20 +0,0 @@

-title:  Region Entries

-
-Region entries hold cached application data. Entries are automatically managed 
according to region attribute settings.
-
-You can create, update, invalidate, and destroy entries through explicit API 
calls or through operations distributed from other caches.
-
-When the number of entries is very large, a partitioned region can provide the 
required data management capacity if the total size of the data is greater than 
the heap in any single JVM.
-
-When an entry is created, a new object is instantiated in the region 
containing:
-
--   The entry key.
--   The entry value. This is the application data object. The entry value may 
be set to `NULL`, which is the equivalent of an invalid value.
-
-Entry operations invoke callbacks to user-defined application plug-ins. In 
this chapter, the calls that may affect the entry operation itself (by 
providing a value or aborting the operation, for example) are highlighted, but 
all possible interactions are not listed. For details, see [Application 
Plug-Ins](application-plugins.html#application-plugins).
-
-`DateTime` objects must be stored in the cache in UTC, so that times 
correspond between client and server. If you use a date with a different time 
zone, convert it when storing into and retrieving from the cache.
-
-

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/381d0faa/geode-docs/nativeclient/client-cache/expiration-attributes.html.md.erb
--
diff --git 
a/geode-docs/nativeclient/client-cache/expiration-attributes.html.md.erb 
b/geode-docs/nativeclient/client-cache/expiration-attributes.html.md.erb
deleted file mode 100644
index d154d62..000
--- a/geode-docs/nativeclient/client-cache/expiration-attributes.html.md.erb
+++ /dev/null
@@ -1,65 +0,0 @@

-title:  Specifying Expiration Attributes

-
-
-Expiration 

  1   2   3   4   5   6   7   8   9   10   >