org.rhq.core.domain.resource.group.composite
Class AutoGroupComposite

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

public class AutoGroupComposite
extends Object
implements Serializable

Maps a set of child resources or child subcategories as their summary information (counts and availability). Used for child summaries views.

See Also:
Serialized Form

Constructor Summary
AutoGroupComposite(AutoGroupComposite other)
           
AutoGroupComposite(Double availability, Resource parentResource, ResourceSubCategory subcategory, long memberCount)
           
AutoGroupComposite(Double availability, Resource parentResource, ResourceType resourceType, long memberCount)
           
AutoGroupComposite(Double availability, Resource parentResource, ResourceType resourceType, long memberCount, boolean isDuplicateResourceTypeName)
           
 
Method Summary
 Double getAvailability()
           
 int getDepth()
           
 long getMemberCount()
           
 String getName()
           
 Resource getParentResource()
           
 List<Resource> getResources()
           
 ResourceType getResourceType()
           
 ResourceSubCategory getSubcategory()
           
 int increaseDepth(int increment)
           
 boolean isMainResource()
           
 void setDepth(int depth)
           
 void setMainResource(boolean mainResource)
           
 void setParentResource(Resource parentResource)
           
 void setResources(List<Resource> resources)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoGroupComposite

public AutoGroupComposite(AutoGroupComposite other)

AutoGroupComposite

public AutoGroupComposite(Double availability,
                          Resource parentResource,
                          ResourceType resourceType,
                          long memberCount)

AutoGroupComposite

public AutoGroupComposite(Double availability,
                          Resource parentResource,
                          ResourceType resourceType,
                          long memberCount,
                          boolean isDuplicateResourceTypeName)

AutoGroupComposite

public AutoGroupComposite(Double availability,
                          Resource parentResource,
                          ResourceSubCategory subcategory,
                          long memberCount)
Method Detail

getAvailability

public Double getAvailability()

getResourceType

public ResourceType getResourceType()

getMemberCount

public long getMemberCount()

setResources

public void setResources(List<Resource> resources)

getSubcategory

public ResourceSubCategory getSubcategory()

getParentResource

public Resource getParentResource()

setParentResource

public void setParentResource(Resource parentResource)

getResources

public List<Resource> getResources()

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

increaseDepth

public int increaseDepth(int increment)

isMainResource

public boolean isMainResource()

setMainResource

public void setMainResource(boolean mainResource)

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object


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