From a188a79cf91d0c999941a84ddea23869055eac20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Wed, 29 Jul 2015 11:27:10 +0200 Subject: [PATCH] FIX typos and better naming --- .../computation/monitoring/CEQueueStatus.java | 22 +++++++++---------- .../monitoring/ComputeEngineQueueMonitor.java | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java b/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java index 0e8b77705fe..8b33c803234 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java @@ -49,7 +49,7 @@ public interface CEQueueStatus { long initPendingCount(long initialPendingCount); /** - * Count of batch report waiting for processing since startup, including reports received before instance startup. + * Count of batch reports waiting for processing since startup, including reports received before instance startup. */ long getPendingCount(); @@ -57,7 +57,7 @@ public interface CEQueueStatus { * Adds 1 to the count of batch reports under processing and removes 1 from the count of batch reports waiting for * processing. * - * @return the new count of batch report under processing + * @return the new count of batch reports under processing * * @see #getInProgressCount() * @see #getPendingCount() @@ -65,15 +65,15 @@ public interface CEQueueStatus { long addInProgress(); /** - * Count of batch report under processing. + * Count of batch reports under processing. */ long getInProgressCount(); /** - * Adds 1 to the count of batch report which processing ended with an error and removes 1 from the count of batch - * report under processing. + * Adds 1 to the count of batch reports which processing ended with an error and removes 1 from the count of batch + * reports under processing. * - * @return the new count of batch report which processing ended with an error + * @return the new count of batch reports which processing ended with an error * * @see #getErrorCount() * @see #getInProgressCount() @@ -81,15 +81,15 @@ public interface CEQueueStatus { long addError(); /** - * Count of batch report which processing ended with an error since instance startup. + * Count of batch reports which processing ended with an error since instance startup. */ long getErrorCount(); /** - * Adds 1 to the count of batch report which processing ended successfully and removes 1 from the count of batch - * report under processing. + * Adds 1 to the count of batch reports which processing ended successfully and removes 1 from the count of batch + * reports under processing. * - * @return the new count of batch report which processing ended successfully + * @return the new count of batch reports which processing ended successfully * * @see #getSuccessCount() * @see #getInProgressCount() @@ -97,7 +97,7 @@ public interface CEQueueStatus { long addSuccess(); /** - * Count of batch report which processing ended successfully since instance startup. + * Count of batch reports which processing ended successfully since instance startup. */ long getSuccessCount(); } diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/ComputeEngineQueueMonitor.java b/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/ComputeEngineQueueMonitor.java index c8c38d205d0..cd13416b93b 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/ComputeEngineQueueMonitor.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/ComputeEngineQueueMonitor.java @@ -37,8 +37,8 @@ public class ComputeEngineQueueMonitor extends BaseMonitorMBean implements Compu @Override public LinkedHashMap attributes() { LinkedHashMap attributes = new LinkedHashMap<>(); - attributes.put("Received reports", getReceivedCount()); - attributes.put("Pending reports", getPendingCount()); + attributes.put("Received", getReceivedCount()); + attributes.put("Pending", getPendingCount()); attributes.put("In progress", getInProgressCount()); attributes.put("Successfully processed", getSuccessCount()); attributes.put("Processed with error", getErrorCount()); -- 2.39.5