aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-07-29 11:27:10 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-08-03 10:19:40 +0200
commita188a79cf91d0c999941a84ddea23869055eac20 (patch)
tree9bb68eeba119508acf12d21046b2262dc3327be2 /server
parentc48df2071b574960266e483f7359ed1e2434130b (diff)
downloadsonarqube-a188a79cf91d0c999941a84ddea23869055eac20.tar.gz
sonarqube-a188a79cf91d0c999941a84ddea23869055eac20.zip
FIX typos and better naming
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java22
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/ComputeEngineQueueMonitor.java4
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<String, Object> attributes() {
LinkedHashMap<String, Object> 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());