org.rhq.core.domain.resource.composite
Class ProblemResourceComposite

java.lang.Object
  extended by org.rhq.core.domain.resource.composite.ProblemResourceComposite
All Implemented Interfaces:
Serializable

public class ProblemResourceComposite
extends Object
implements Serializable

Information on a resource that is considered having a "problem" - it is either down, has one or more alerts, or a combination of those two conditions.

See Also:
Serialized Form

Constructor Summary
ProblemResourceComposite(int resourceId, int resourceTypeId, String resourceName, String ancestry, long numAlerts, AvailabilityType availabilityType)
           
 
Method Summary
 String getAncestry()
           
 AvailabilityType getAvailabilityType()
          Indicates if the resource is down.
 long getNumAlerts()
           
 int getResourceId()
           
 String getResourceName()
           
 int getResourceTypeId()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProblemResourceComposite

public ProblemResourceComposite(int resourceId,
                                int resourceTypeId,
                                String resourceName,
                                String ancestry,
                                long numAlerts,
                                AvailabilityType availabilityType)
Method Detail

getResourceId

public int getResourceId()

getResourceTypeId

public int getResourceTypeId()

getResourceName

public String getResourceName()

getAncestry

public String getAncestry()

getNumAlerts

public long getNumAlerts()

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.