Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA8AE200BBB for ; Thu, 27 Oct 2016 00:48:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E930B160B04; Wed, 26 Oct 2016 22:48:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 93D36160AEE for ; Thu, 27 Oct 2016 00:48:42 +0200 (CEST) Received: (qmail 51388 invoked by uid 500); 26 Oct 2016 22:48:41 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 51379 invoked by uid 99); 26 Oct 2016 22:48:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 22:48:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5C47FC1846 for ; Wed, 26 Oct 2016 22:48:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7GdGEFhq8k25 for ; Wed, 26 Oct 2016 22:48:37 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id E71115FC75 for ; Wed, 26 Oct 2016 22:48:29 +0000 (UTC) Received: (qmail 50522 invoked by uid 99); 26 Oct 2016 22:48:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 22:48:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 205A8E00DB; Wed, 26 Oct 2016 22:48:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: klund@apache.org To: commits@geode.incubator.apache.org Date: Wed, 26 Oct 2016 22:48:51 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [25/93] [partial] incubator-geode git commit: Added Spotless plugin to enforce formatting standards. Added Google Java Style guide formatter templates, removed existing formatter templates. archived-at: Wed, 26 Oct 2016 22:48:44 -0000 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 +++ b/geode-core/src/main/java/org/apache/geode/admin/UnmodifiableConfigurationException.java @@ -1,88 +1,81 @@ /* - * 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; /** - * An UnmodifiableConfigurationException is thrown when an attempt - * is made to modify the value of an unmodifiable - * {@link ConfigurationParameter}. + * An UnmodifiableConfigurationException is thrown when an attempt is made to modify + * the value of an unmodifiable {@link ConfigurationParameter}. * - * @since GemFire 3.5 + * @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 class UnmodifiableConfigurationException extends AdminException { -private static final long serialVersionUID = -7653547392992060646L; + private static final long serialVersionUID = -7653547392992060646L; /** - * Constructs a new exception with null as its detail message. - * The cause is not initialized, and may subsequently be initialized by a - * call to {@link Throwable#initCause}. + * Constructs a new exception with null as its detail message. The cause is not + * initialized, and may subsequently be initialized by a call to {@link Throwable#initCause}. */ public UnmodifiableConfigurationException() { super(); } /** - * Constructs a new exception with the specified detail message. The - * cause is not initialized, and may subsequently be initialized by - * a call to {@link Throwable#initCause}. + * Constructs a new exception with the specified detail message. The cause is not initialized, and + * may subsequently be initialized by a call to {@link Throwable#initCause}. * - * @param message the detail message. The detail message is saved for - * later retrieval by the {@link #getMessage()} method. + * @param message the detail message. The detail message is saved for later retrieval by the + * {@link #getMessage()} method. */ public UnmodifiableConfigurationException(String message) { super(message); } /** - * Constructs a new exception with the specified detail message and - * cause.

Note that the detail message associated with - * cause is not automatically incorporated in - * this exception's detail message. + * Constructs a new exception with the specified detail message and cause. + *

+ * Note that the detail message associated with cause is not automatically + * incorporated in this exception's detail message. * - * @param message the detail message (which is saved for later retrieval - * by the {@link #getMessage()} method). - * @param cause the cause (which is saved for later retrieval by the - * {@link #getCause()} method). (A null value is - * permitted, and indicates that the cause is nonexistent or - * unknown.) + * @param message the detail message (which is saved for later retrieval by the + * {@link #getMessage()} method). + * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). + * (A null value is permitted, and indicates that the cause is nonexistent or + * unknown.) */ public UnmodifiableConfigurationException(String message, Throwable cause) { super(message, cause); } /** - * Constructs a new exception with the specified cause and a detail - * message of (cause==null ? null : cause.toString()) (which - * typically contains the class and detail message of cause). - * This constructor is useful for exceptions that are little more than - * wrappers for other throwables (for example, {@link - * java.security.PrivilegedActionException}). + * Constructs a new exception with the specified cause and a detail message of + * (cause==null ? null : cause.toString()) (which typically contains the class and detail + * message of cause). This constructor is useful for exceptions that are little more than + * wrappers for other throwables (for example, {@link java.security.PrivilegedActionException}). * - * @param cause the cause (which is saved for later retrieval by the - * {@link #getCause()} method). (A null value is - * permitted, and indicates that the cause is nonexistent or - * unknown.) + * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). + * (A null value is permitted, and indicates that the cause is nonexistent or + * unknown.) */ public UnmodifiableConfigurationException(Throwable cause) { super(cause); } - + } http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/geode-core/src/main/java/org/apache/geode/admin/internal/AbstractHealthEvaluator.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/org/apache/geode/admin/internal/AbstractHealthEvaluator.java b/geode-core/src/main/java/org/apache/geode/admin/internal/AbstractHealthEvaluator.java index 1a98c99..57b42a8 100644 --- a/geode-core/src/main/java/org/apache/geode/admin/internal/AbstractHealthEvaluator.java +++ b/geode-core/src/main/java/org/apache/geode/admin/internal/AbstractHealthEvaluator.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; @@ -28,57 +26,49 @@ import org.apache.geode.internal.logging.LogService; import org.apache.geode.internal.logging.log4j.LocalizedMessage; /** - * The abstract superclass of all GemFire health evaluators. - * Basically, this class specifies what the health evaluators need and - * what they should do. + * The abstract superclass of all GemFire health evaluators. Basically, this class specifies what + * the health evaluators need and what they should do. * *

* - * Note that evaluators never reside in the administration VM, they - * only in member VMs. They are not Serializable and - * aren't meant to be. + * Note that evaluators never reside in the administration VM, they only in member VMs. They are not + * Serializable and aren't meant to be. * * * @since GemFire 3.5 - * */ -public abstract class AbstractHealthEvaluator { + */ +public abstract class AbstractHealthEvaluator { private static final Logger logger = LogService.getLogger(); - - /** The number of times this evaluator has been evaluated. Certain - * checks are not made the first time an evaluation occurs. */ + + /** + * The number of times this evaluator has been evaluated. Certain checks are not made the first + * time an evaluation occurs. + */ private int numEvaluations; - ////////////////////// Constructors ////////////////////// + ////////////////////// Constructors ////////////////////// /** * Creates a new AbstractHealthEvaluator with the given - * GemFireHealthConfig and - * DistributionManager. + * GemFireHealthConfig and DistributionManager. * - * Originally, this method took an - * InternalDistributedSystem, but we found there were - * race conditions during initialization. Namely, that a - * DistributionMessage can be processed before the - * InternalDistributedSystem's - * DistributionManager is set. + * Originally, this method took an InternalDistributedSystem, but we found there were + * race conditions during initialization. Namely, that a DistributionMessage can be + * processed before the InternalDistributedSystem's DistributionManager + * is set. */ - protected AbstractHealthEvaluator(GemFireHealthConfig config, - DM dm) - { + protected AbstractHealthEvaluator(GemFireHealthConfig config, DM dm) { this.numEvaluations = 0; } - ///////////////////// Instance Methods ///////////////////// + ///////////////////// Instance Methods ///////////////////// /** - * Evaluates the health of a component of a GemFire distributed - * system. + * Evaluates the health of a component of a GemFire distributed system. * - * @param status - * A list of {@link AbstractHealthEvaluator.HealthStatus - * HealthStatus} objects that is populated when ill health is - * detected. + * @param status A list of {@link AbstractHealthEvaluator.HealthStatus HealthStatus} objects that + * is populated when ill health is detected. */ public final void evaluate(List status) { this.numEvaluations++; @@ -86,8 +76,7 @@ public abstract class AbstractHealthEvaluator { } /** - * Checks the health of a component of a GemFire distributed - * system. + * Checks the health of a component of a GemFire distributed system. * * @see #evaluate */ @@ -101,28 +90,28 @@ public abstract class AbstractHealthEvaluator { } /** - * A factory method that creates a {@link - * AbstractHealthEvaluator.HealthStatus HealthStats} with + * A factory method that creates a {@link AbstractHealthEvaluator.HealthStatus HealthStats} with * {@linkplain GemFireHealth#OKAY_HEALTH okay} status. */ protected HealthStatus okayHealth(String diagnosis) { - logger.info(LocalizedMessage.create(LocalizedStrings.AbstractHealthEvaluator_OKAY_HEALTH__0, diagnosis)); + logger.info(LocalizedMessage.create(LocalizedStrings.AbstractHealthEvaluator_OKAY_HEALTH__0, + diagnosis)); return new HealthStatus(GemFireHealth.OKAY_HEALTH, diagnosis); } /** - * A factory method that creates a {@link - * AbstractHealthEvaluator.HealthStatus HealthStats} with + * A factory method that creates a {@link AbstractHealthEvaluator.HealthStatus HealthStats} with * {@linkplain GemFireHealth#POOR_HEALTH poor} status. */ protected HealthStatus poorHealth(String diagnosis) { - logger.info(LocalizedMessage.create(LocalizedStrings.AbstractHealthEvaluator_POOR_HEALTH__0, diagnosis)); + logger.info(LocalizedMessage.create(LocalizedStrings.AbstractHealthEvaluator_POOR_HEALTH__0, + diagnosis)); return new HealthStatus(GemFireHealth.POOR_HEALTH, diagnosis); } /** - * Returns a String describing the component whose - * health is evaluated by this evaluator. + * Returns a String describing the component whose health is evaluated by this + * evaluator. */ protected abstract String getDescription(); @@ -131,35 +120,33 @@ public abstract class AbstractHealthEvaluator { */ abstract void close(); - /////////////////////// Inner Classes ////////////////////// + /////////////////////// Inner Classes ////////////////////// /** * Represents the health of a GemFire component. */ - public class HealthStatus { + public class HealthStatus { /** The health of a GemFire component */ private GemFireHealth.Health healthCode; /** The diagnosis of the illness */ private String diagnosis; - ////////////////////// Constructors ////////////////////// + ////////////////////// Constructors ////////////////////// /** - * Creates a new HealthStatus with the give - * health code and dianosis message. + * Creates a new HealthStatus with the give health code and + * dianosis message. * * @see GemFireHealth#OKAY_HEALTH * @see GemFireHealth#POOR_HEALTH */ HealthStatus(GemFireHealth.Health healthCode, String diagnosis) { this.healthCode = healthCode; - this.diagnosis = - "[" + AbstractHealthEvaluator.this.getDescription() + "] " + - diagnosis; + this.diagnosis = "[" + AbstractHealthEvaluator.this.getDescription() + "] " + diagnosis; } - ///////////////////// Instance Methods ///////////////////// + ///////////////////// Instance Methods ///////////////////// /** * Returns the health code @@ -172,8 +159,7 @@ public abstract class AbstractHealthEvaluator { } /** - * Returns the diagnosis prepended with a description of the - * component that is ill. + * Returns the diagnosis prepended with a description of the component that is ill. */ public String getDiagnosis() { return this.diagnosis;