org.apache.commons.monitoring
Class Role
java.lang.Object
org.apache.commons.monitoring.Role
- All Implemented Interfaces:
- Comparable<Role>
public class Role
- extends Object
- implements Comparable<Role>
As a monitored resource may have multipe Metrics, each one has a dedicated 'role' that
defines the type of data or the monitored aspect it handles.
- Author:
- Nicolas De Loof
WEB
public static final Role WEB
JSP
public static final Role JSP
JDBC
public static final Role JDBC
PERFORMANCES
public static final Role PERFORMANCES
FAILURES
public static final Role FAILURES
Role
public Role(String name,
Unit unit)
getName
public String getName()
- Returns:
- the role
getUnit
public Unit getUnit()
- Returns:
- the unit
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
compareTo
public int compareTo(Role o)
-
- Specified by:
compareTo
in interface Comparable<Role>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.