org.rhq.core.domain.resource.composite
Class ProblemResourceComposite
java.lang.Object
org.rhq.core.domain.resource.composite.ProblemResourceComposite
public class ProblemResourceComposite
- extends Object
Information on a resource that is considered having a "problem" - it is either down
,
has one or more alerts, has one or more out-of-bound measurements or a combination of those three conditions.
ProblemResourceComposite
public ProblemResourceComposite(int resourceId,
String resourceName,
AvailabilityType availabilityType,
long numAlerts,
long numOutOfBounds)
getResourceId
public int getResourceId()
getResourceName
public String getResourceName()
getAvailabilityType
public AvailabilityType getAvailabilityType()
- Indicates if the resource is down. If this returns
null
, the resource may be up or unknown. In any
case, a null
means the resource is not known to be down.
- Returns:
- up or down status of the resource
getNumAlerts
public long getNumAlerts()
getNumOutOfBounds
public long getNumOutOfBounds()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.