org.apache.commons.monitoring
Class Role

java.lang.Object
  extended by 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

Field Summary
static Role FAILURES
           
static Role JDBC
           
static Role JSP
           
static Role PERFORMANCES
           
static Role WEB
           
 
Constructor Summary
Role(String name, Unit unit)
           
 
Method Summary
 int compareTo(Role o)
          
 boolean equals(Object o)
           
 String getName()
           
 Unit getUnit()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Role

public Role(String name,
            Unit unit)
Method Detail

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.