org.rhq.core.domain.resource.group.composite
Class ClusterFlyweight
java.lang.Object
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
ClusterFlyweight
public ClusterFlyweight()
ClusterFlyweight
public ClusterFlyweight(int groupId)
ClusterFlyweight
public ClusterFlyweight(ClusterKeyFlyweight clusterKey)
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.