Skip to content

Commit 14db2d3

Browse files
CLOUDSTACK-9106 - Makes Enum name compliant with Java code conventions.
1 parent 5973f4e commit 14db2d3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

server/src/com/cloud/server/StatsCollector.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@
125125
@Component
126126
public class StatsCollector extends ManagerBase implements ComponentMethodInterceptable {
127127

128-
public static enum externalStatsProtocol {
128+
public static enum ExternalStatsProtocol {
129129
NONE("none"), GRAPHITE("graphite");
130130
String _type;
131131

132-
externalStatsProtocol(String type) {
132+
ExternalStatsProtocol(String type) {
133133
_type = type;
134134
}
135135

@@ -218,7 +218,7 @@ public String toString() {
218218
String externalStatsHost = null;
219219
int externalStatsPort = -1;
220220
boolean externalStatsEnabled = false;
221-
externalStatsProtocol externalStatsType = externalStatsProtocol.NONE;
221+
ExternalStatsProtocol externalStatsType = ExternalStatsProtocol.NONE;
222222

223223
private ScheduledExecutorService _diskStatsUpdateExecutor;
224224
private int _usageAggregationRange = 1440;
@@ -266,7 +266,7 @@ private void init(Map<String, String> configs) {
266266
String scheme = uri.getScheme();
267267

268268
try {
269-
externalStatsType = externalStatsProtocol.valueOf(scheme.toUpperCase());
269+
externalStatsType = ExternalStatsProtocol.valueOf(scheme.toUpperCase());
270270
} catch (IllegalArgumentException e) {
271271
s_logger.info(scheme + " is not a valid protocol for external statistics. No statistics will be send.");
272272
}
@@ -492,7 +492,7 @@ protected void runInContext() {
492492
* Currently only Graphite is supported
493493
*/
494494
if (!metrics.isEmpty()) {
495-
if (externalStatsType != null && externalStatsType == externalStatsProtocol.GRAPHITE) {
495+
if (externalStatsType != null && externalStatsType == ExternalStatsProtocol.GRAPHITE) {
496496

497497
if (externalStatsPort == -1) {
498498
externalStatsPort = 2003;

0 commit comments

Comments
 (0)