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

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

public class ClusterFlyweight
extends Object
implements Serializable

This is a cluster node in a group tree. A cluster node represents an aggregation of one or more individual resources that are identical, where "identical" means the same resource type and resource key (see ClusterKeyFlyweight. The number of individual resources that make up this cluster node is the member count. The total size of the cluster (that is, the maximum number of members that can be expected) is getClusterSize().

See Also:
Serialized Form

Constructor Summary
ClusterFlyweight()
           
ClusterFlyweight(ClusterKeyFlyweight clusterKey)
           
ClusterFlyweight(int groupId)
           
 
Method Summary
 void addResource(String s)
           
 boolean equals(Object obj)
           
 List<ClusterFlyweight> getChildren()
           
 ClusterKeyFlyweight getClusterKey()
           
 int getClusterSize()
           
 int getGroupId()
           
 int getMembers()
           
 String getName()
           
 int hashCode()
           
 void incrementMembers()
           
 void setChildren(List<ClusterFlyweight> clusterKeyFlyweights)
           
 void setClusterSize(int size)
           
 void setMembers(int members)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterFlyweight

public ClusterFlyweight()

ClusterFlyweight

public ClusterFlyweight(int groupId)

ClusterFlyweight

public ClusterFlyweight(ClusterKeyFlyweight clusterKey)
Method Detail

getGroupId

public int getGroupId()

getClusterKey

public ClusterKeyFlyweight getClusterKey()

getName

public String getName()

addResource

public void addResource(String s)

getMembers

public int getMembers()

setMembers

public void setMembers(int members)

incrementMembers

public void incrementMembers()

getClusterSize

public int getClusterSize()

setClusterSize

public void setClusterSize(int size)

getChildren

public List<ClusterFlyweight> getChildren()

setChildren

public void setChildren(List<ClusterFlyweight> clusterKeyFlyweights)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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