geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [31/61] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates.
Date Mon, 07 Nov 2016 19:51:38 GMT
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.
  *
  * <P>
  *
- * A <code>StatisticsFactory</code> can create a {@link
- * StatisticDescriptor statistic} of three numeric types:
- * <code>int</code>, <code>long</code>, and <code>double</code>.
 A
- * statistic (<code>StatisticDescriptor</code>) can either be a
- * <I>gauge</I> meaning that its value can increase and decrease or a
- * <I>counter</I> 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 <code>StatisticsFactory</code> can create a {@link StatisticDescriptor statistic}
of three
+ * numeric types: <code>int</code>, <code>long</code>, and <code>double</code>.
A statistic
+ * (<code>StatisticDescriptor</code>) can either be a <I>gauge</I>
meaning that its value can
+ * increase and decrease or a <I>counter</I> 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).
+ * 
+ * <P>
+ * 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:
  * 
- * <P>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:
  * <pre>
     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");
  * </pre>
+ * 
  * Later on the stat ids can be used to increment the stats:
+ * 
  * <pre>
-    this.samplerStats.incInt(this.sampleCountId, 1);
-    this.samplerStats.incLong(this.sampleTimeId, nanosSpentWorking / 1000000);
+ * this.samplerStats.incInt(this.sampleCountId, 1);
+ * this.samplerStats.incLong(this.sampleTimeId, nanosSpentWorking / 1000000);
  * </pre>
- * <P>The following is an example of how to create the same type using XML.
- * The XML data:
+ * <P>
+ * The following is an example of how to create the same type using XML. The XML data:
+ * 
  * <pre>
     &lt;?xml version="1.0" encoding="UTF-8"?&gt;
     &lt;!DOCTYPE statistics PUBLIC
@@ -88,13 +85,16 @@ package org.apache.geode;
       &lt;/type&gt;
     &lt;/statistics&gt;
  * </pre>
+ * 
  * The code to create the type:
+ * 
  * <pre>
       StatisticsFactory f = ...;
       Reader r = new InputStreamReader("fileContainingXmlData"));
       StatisticsType type = f.createTypesFromXml(r)[0];
  * </pre>
  * <P>
+ * 
  * @see <A href="package-summary.html#statistics">Package introduction</A>
  *
  *
@@ -102,50 +102,63 @@ package org.apache.geode;
  */
 public interface StatisticsFactory extends StatisticsTypeFactory {
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type} with default ids.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type} with
+   * default ids.
    * <p>
    * The created instance may not be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createStatistics(StatisticsType type);
+
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type}, <code>textId</code>, and with a default numeric id.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type},
+   * <code>textId</code>, and with a default numeric id.
    * <p>
    * The created instance may not be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createStatistics(StatisticsType type, String textId);
+
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type}, <code>textId</code>, and <code>numericId</code>.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type},
+   * <code>textId</code>, and <code>numericId</code>.
    * <p>
    * The created instance may not be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createStatistics(StatisticsType type, String textId, long numericId);
 
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type} with default ids.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type} with
+   * default ids.
    * <p>
    * The created instance will be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createAtomicStatistics(StatisticsType type);
+
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type}, <code>textId</code>, and with a default numeric id.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type},
+   * <code>textId</code>, and with a default numeric id.
    * <p>
    * The created instance will be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createAtomicStatistics(StatisticsType type, String textId);
+
   /**
-   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type}, <code>textId</code>, and <code>numericId</code>.
+   * Creates and returns a {@link Statistics} instance of the given {@link StatisticsType
type},
+   * <code>textId</code>, and <code>numericId</code>.
    * <p>
    * The created instance will be {@link Statistics#isAtomic atomic}.
    */
   public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId);
+
   /**
    * Returns an array of all the existing statistics of the given type.
    */
   public Statistics[] findStatisticsByType(StatisticsType type);
+
   /**
    * Returns an array of all the existing statistics with the given textId.
    */
   public Statistics[] findStatisticsByTextId(String textId);
+
   /**
    * Returns an array of all the existing statistics with the given numericId.
    */

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/StatisticsType.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/StatisticsType.java b/geode-core/src/main/java/org/apache/geode/StatisticsType.java
index c799cb5..fab47bf 100644
--- a/geode-core/src/main/java/org/apache/geode/StatisticsType.java
+++ b/geode-core/src/main/java/org/apache/geode/StatisticsType.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;
 
-//import org.apache.geode.internal.Assert;
-//import java.io.*;
-//import java.util.*;
+// import org.apache.geode.internal.Assert;
+// import java.io.*;
+// import java.util.*;
 
 /**
- * Used to describe a logical collection of statistics. These descriptions
- * are used to create an instance of {@link Statistics}.
+ * Used to describe a logical collection of statistics. These descriptions are used to create
an
+ * instance of {@link Statistics}.
  *
  * <P>
- * To get an instance of this interface use an instance of
- * {@link StatisticsFactory}.
+ * To get an instance of this interface use an instance of {@link StatisticsFactory}.
  *
  *
  * @since GemFire 3.0
@@ -44,27 +41,23 @@ public interface StatisticsType {
   public String getDescription();
 
   /**
-   * Returns descriptions of the statistics that this statistics type
-   * gathers together
+   * Returns descriptions of the statistics that this statistics type gathers together
    */
   public StatisticDescriptor[] getStatistics();
 
   /**
-   * Returns the id of the statistic with the given name in this
-   * statistics instance.
+   * Returns the id of the statistic with the given name in this statistics instance.
    *
-   * @throws IllegalArgumentException
-   *         No statistic named <code>name</code> exists in this
-   *         statistics instance.
+   * @throws IllegalArgumentException No statistic named <code>name</code> exists
in this statistics
+   *         instance.
    */
   public int nameToId(String name);
+
   /**
-   * Returns the descriptor of the statistic with the given name in this
-   * statistics instance.
+   * Returns the descriptor of the statistic with the given name in this statistics instance.
    *
-   * @throws IllegalArgumentException
-   *         No statistic named <code>name</code> exists in this
-   *         statistics instance.
+   * @throws IllegalArgumentException No statistic named <code>name</code> exists
in this statistics
+   *         instance.
    */
   public StatisticDescriptor nameToDescriptor(String name);
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/StatisticsTypeFactory.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/StatisticsTypeFactory.java b/geode-core/src/main/java/org/apache/geode/StatisticsTypeFactory.java
index e35725c..d37e2c2 100644
--- a/geode-core/src/main/java/org/apache/geode/StatisticsTypeFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/StatisticsTypeFactory.java
@@ -1,45 +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;
 
-//import org.apache.geode.distributed.DistributedSystem;
+// 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 StatisticDescriptor} and {@link StatisticsType}.
- * Every {@link StatisticsFactory} is also a type factory.
+ * Instances of this interface provide methods that create instances of {@link StatisticDescriptor}
+ * and {@link StatisticsType}. Every {@link StatisticsFactory} is also a type factory.
  *
  * <P>
  *
- * A <code>StatisticsTypeFactory</code> can create a {@link
- * StatisticDescriptor statistic} of three numeric types:
- * <code>int</code>, <code>long</code>, and <code>double</code>.
 A
- * statistic (<code>StatisticDescriptor</code>) can either be a
- * <I>gauge</I> meaning that its value can increase and decrease or a
- * <I>counter</I> 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 <code>StatisticsTypeFactory</code> can create a {@link StatisticDescriptor
statistic} of three
+ * numeric types: <code>int</code>, <code>long</code>, and <code>double</code>.
A statistic
+ * (<code>StatisticDescriptor</code>) can either be a <I>gauge</I>
meaning that its value can
+ * increase and decrease or a <I>counter</I> 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).
+ * 
+ * <P>
+ * The following code is an example of how to create a type using XML. In this example the
type has
+ * two stats whose values always increase:
  * 
- * <P>The following code is an example of how to create a type using XML.
- * In this example the type has two stats whose values always increase:
  * <pre>
     StatisticsTypeFactory f = ...;
     StatisticsType t = f.createType(
@@ -55,8 +51,9 @@ import java.io.Reader;
         }
     );
  * </pre>
- * <P>The following is an example of how to create the same type using XML.
- * The XML data:
+ * <P>
+ * The following is an example of how to create the same type using XML. The XML data:
+ * 
  * <pre>
     &lt;?xml version="1.0" encoding="UTF-8"?&gt;
     &lt;!DOCTYPE statistics PUBLIC
@@ -76,13 +73,16 @@ import java.io.Reader;
       &lt;/type&gt;
     &lt;/statistics&gt;
  * </pre>
+ * 
  * The code to create the type:
+ * 
  * <pre>
       StatisticsTypeFactory f = ...;
       Reader r = new InputStreamReader("fileContainingXmlData"));
       StatisticsType type = f.createTypesFromXml(r)[0];
  * </pre>
  * <P>
+ * 
  * @see <A href="package-summary.html#statistics">Package introduction</A>
  *
  *
@@ -91,106 +91,121 @@ import java.io.Reader;
 public interface StatisticsTypeFactory {
 
   /**
-   * Creates and returns an int counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with larger values indicating better performance.
+   * Creates and returns an int counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>units</code>,
and with larger values
+   * indicating better performance.
    */
-  public StatisticDescriptor createIntCounter(String name, String description,
-                                              String units);
+  public StatisticDescriptor createIntCounter(String name, String description, String units);
+
   /**
-   * Creates and returns a long counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with larger values indicating better performance.
+   * Creates and returns a long counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>units</code>,
and with larger values
+   * indicating better performance.
    */
-  public StatisticDescriptor createLongCounter(String name, String description,
-                                               String units);
+  public StatisticDescriptor createLongCounter(String name, String description, String units);
+
   /**
-   * Creates and returns a double counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with larger values indicating better performance.
+   * Creates and returns a double counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>units</code>,
and with larger values
+   * indicating better performance.
    */
-  public StatisticDescriptor createDoubleCounter(String name, String description,
-                                               String units);
+  public StatisticDescriptor createDoubleCounter(String name, String description, String
units);
+
   /**
-   * Creates and returns an int gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with smaller values indicating better performance.
+   * Creates and returns an int gauge {@link StatisticDescriptor} with the given <code>name</code>,
+   * <code>description</code>, <code>units</code>, and with smaller
values indicating better
+   * performance.
    */
-  public StatisticDescriptor createIntGauge(String name, String description,
-                                              String units);
+  public StatisticDescriptor createIntGauge(String name, String description, String units);
+
   /**
-   * Creates and returns a long gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with smaller values indicating better performance.
+   * Creates and returns a long gauge {@link StatisticDescriptor} with the given <code>name</code>,
+   * <code>description</code>, <code>units</code>, and with smaller
values indicating better
+   * performance.
    */
-  public StatisticDescriptor createLongGauge(String name, String description,
-                                               String units);
+  public StatisticDescriptor createLongGauge(String name, String description, String units);
+
   /**
-   * Creates and returns a double gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>units</code>,
-   * and with smaller values indicating better performance.
+   * Creates and returns a double gauge {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>units</code>,
and with smaller values
+   * indicating better performance.
    */
-  public StatisticDescriptor createDoubleGauge(String name, String description,
-                                               String units);
+  public StatisticDescriptor createDoubleGauge(String name, String description, String units);
 
   /**
-   * Creates and returns an int counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns an int counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>largerBetter</code>,
and <code>units</code>.
    */
-  public StatisticDescriptor createIntCounter(String name, String description,
-                                              String units, boolean largerBetter);
+  public StatisticDescriptor createIntCounter(String name, String description, String units,
+      boolean largerBetter);
+
   /**
-   * Creates and returns a long counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns a long counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>largerBetter</code>,
and <code>units</code>.
    */
-  public StatisticDescriptor createLongCounter(String name, String description,
-                                               String units, boolean largerBetter);
+  public StatisticDescriptor createLongCounter(String name, String description, String units,
+      boolean largerBetter);
+
   /**
-   * Creates and returns a double counter {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns a double counter {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>largerBetter</code>,
and <code>units</code>.
    */
-  public StatisticDescriptor createDoubleCounter(String name, String description,
-                                               String units, boolean largerBetter);
+  public StatisticDescriptor createDoubleCounter(String name, String description, String
units,
+      boolean largerBetter);
+
   /**
-   * Creates and returns an int gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns an int gauge {@link StatisticDescriptor} with the given <code>name</code>,
+   * <code>description</code>, <code>largerBetter</code>, and <code>units</code>.
    */
-  public StatisticDescriptor createIntGauge(String name, String description,
-                                              String units, boolean largerBetter);
+  public StatisticDescriptor createIntGauge(String name, String description, String units,
+      boolean largerBetter);
+
   /**
-   * Creates and returns a long gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns a long gauge {@link StatisticDescriptor} with the given <code>name</code>,
+   * <code>description</code>, <code>largerBetter</code>, and <code>units</code>.
    */
-  public StatisticDescriptor createLongGauge(String name, String description,
-                                               String units, boolean largerBetter);
+  public StatisticDescriptor createLongGauge(String name, String description, String units,
+      boolean largerBetter);
+
   /**
-   * Creates and returns a double gauge {@link StatisticDescriptor} with the given <code>name</code>,
<code>description</code>, <code>largerBetter</code>, and <code>units</code>.
+   * Creates and returns a double gauge {@link StatisticDescriptor} with the given
+   * <code>name</code>, <code>description</code>, <code>largerBetter</code>,
and <code>units</code>.
    */
-  public StatisticDescriptor createDoubleGauge(String name, String description,
-                                               String units, boolean largerBetter);
+  public StatisticDescriptor createDoubleGauge(String name, String description, String units,
+      boolean largerBetter);
 
 
   /**
    * The maximum number of descriptors a single statistics type can have.
-   * <P> Current value is: <code>254</code>
+   * <P>
+   * Current value is: <code>254</code>
    */
-  public final int MAX_DESCRIPTORS_PER_TYPE = StatArchiveFormat.ILLEGAL_STAT_OFFSET-1;
+  public final int MAX_DESCRIPTORS_PER_TYPE = StatArchiveFormat.ILLEGAL_STAT_OFFSET - 1;
 
   /**
-   * Creates or finds and returns a {@link StatisticsType} with the given <code>name</code>,
<code>description</code>, and {@link StatisticDescriptor statistic descriptions}.
-   * @throws IllegalArgumentException if a type with the given <code>name</code>
already exists and it differs from the given parameters.
+   * Creates or finds and returns a {@link StatisticsType} with the given <code>name</code>,
+   * <code>description</code>, and {@link StatisticDescriptor statistic descriptions}.
+   * 
+   * @throws IllegalArgumentException if a type with the given <code>name</code>
already exists and
+   *         it differs from the given parameters.
    */
-  public StatisticsType createType(String name, String description,
-                                   StatisticDescriptor[] stats);
+  public StatisticsType createType(String name, String description, StatisticDescriptor[]
stats);
+
   /**
-   * Finds and returns an already created {@link StatisticsType} with the given <code>name</code>.
Returns <code>null</code> if the type does not exist.
+   * Finds and returns an already created {@link StatisticsType} with the given <code>name</code>.
+   * Returns <code>null</code> if the type does not exist.
    */
   public StatisticsType findType(String name);
 
   /**
-   * Creates one or more {@link StatisticsType} from the contents of the
-   * given <code>reader</code>. The created types can be found by calling
-   * {@link #findType}.
+   * Creates one or more {@link StatisticsType} from the contents of the given <code>reader</code>.
+   * The created types can be found by calling {@link #findType}.
    *
-   * @param reader
-   *        The source of the XML data which must comply with the
+   * @param reader The source of the XML data which must comply with the
    *        <code>statisticsType.dtd</code>.
    *
-   * @throws IllegalArgumentException if a type defined in the reader
-   *  already exists
-   * @throws IOException
-   *         Something went wrong while reading from
-   *         <code>reader</code> 
-   */
-  public StatisticsType[] createTypesFromXml(Reader reader)
-    throws IOException;
+   * @throws IllegalArgumentException if a type defined in the reader already exists
+   * @throws IOException Something went wrong while reading from <code>reader</code>
+   */
+  public StatisticsType[] createTypesFromXml(Reader reader) throws IOException;
 }

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/SystemConnectException.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/SystemConnectException.java b/geode-core/src/main/java/org/apache/geode/SystemConnectException.java
index ed41798..1c98aba 100644
--- a/geode-core/src/main/java/org/apache/geode/SystemConnectException.java
+++ b/geode-core/src/main/java/org/apache/geode/SystemConnectException.java
@@ -1,33 +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;
 
 /**
- * An <code>SystemConnectException</code> is thrown when a
- * GemFire application tries to connect to an
- * existing distributed system and is unable to contact all members of
- * the distributed system to announce its presence.  This is usually due
- * to resource depletion problems (low memory or too few file descriptors)
- * in other processes.
+ * An <code>SystemConnectException</code> is thrown when a GemFire application
tries to connect to
+ * an existing distributed system and is unable to contact all members of the distributed
system to
+ * announce its presence. This is usually due to resource depletion problems (low memory
or too few
+ * file descriptors) in other processes.
  */
 public class SystemConnectException extends GemFireException {
-private static final long serialVersionUID = -7378174428634468238L;
+  private static final long serialVersionUID = -7378174428634468238L;
 
-  //////////////////////  Constructors  //////////////////////
+  ////////////////////// Constructors //////////////////////
 
   /**
    * Creates a new <code>SystemConnectException</code>.
@@ -35,7 +31,7 @@ private static final long serialVersionUID = -7378174428634468238L;
   public SystemConnectException(String message) {
     super(message);
   }
-  
+
   public SystemConnectException(String message, Throwable cause) {
     super(message, cause);
   }


Mime
View raw message