modules/helpers/pluginAnnotations/src/main/java/org/rhq/helpers/pluginAnnotations/agent/Units.java | 12 ++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
New commits: commit df8669222aa3146b71b3252166af6bdd387806cd Author: Heiko W. Rupp hwr@redhat.com Date: Mon Jul 22 10:38:44 2013 +0200
Add more units.
diff --git a/modules/helpers/pluginAnnotations/src/main/java/org/rhq/helpers/pluginAnnotations/agent/Units.java b/modules/helpers/pluginAnnotations/src/main/java/org/rhq/helpers/pluginAnnotations/agent/Units.java index 0ae4011..150b9e0 100644 --- a/modules/helpers/pluginAnnotations/src/main/java/org/rhq/helpers/pluginAnnotations/agent/Units.java +++ b/modules/helpers/pluginAnnotations/src/main/java/org/rhq/helpers/pluginAnnotations/agent/Units.java @@ -1,6 +1,6 @@ /* * JBoss, Home of Professional Open Source. - * Copyright 2009, Red Hat, Inc. and/or its affiliates, and + * Copyright 2009-2013, Red Hat, Inc. and/or its affiliates, and * individual contributors as indicated by the @author tags. See the * copyright.txt file in the distribution for a full listing of * individual contributors. @@ -26,10 +26,18 @@ package org.rhq.helpers.pluginAnnotations.agent; * Metric Units. * * @author Galder ZamarreƱo + * @author Heiko W. Rupp + * See also org.rhq.core.domain.measurement.MeasurementUnits * @since 4.0 */ +@SuppressWarnings("unused") public enum Units { - NONE, MILLISECONDS, SECONDS, PERCENTAGE; + NONE, PERCENTAGE, + BYTES, KILOBYTES, MEGABYTES, GIGABYTES, TERABYTES, PETABYTES, + BITS, KILOBITS, MEGABITS, GIGABITS, TERABITS, PETABITS, + EPOCH_MILLISECONDS, EPOCH_SECONDS, + JIFFYS, NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS, + CELSIUS, KELVIN, FAHRENHEIT;
@Override public String toString() {