org.rhq.enterprise.server.resource.cluster
Class ClusterManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.resource.cluster.ClusterManagerBean
All Implemented Interfaces:
ClusterManagerLocal, ClusterManagerRemote

public class ClusterManagerBean
extends Object
implements ClusterManagerLocal, ClusterManagerRemote

Author:
jay shaughnessy

Constructor Summary
ClusterManagerBean()
           
 
Method Summary
 org.rhq.core.domain.resource.group.ResourceGroup createAutoClusterBackingGroup(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.group.ClusterKey clusterKey, boolean addResources)
          Given a cluster key create a backing group.
 org.rhq.core.domain.resource.group.ResourceGroup getAutoClusterBackingGroup(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.group.ClusterKey clusterKey)
          Return the backing group for the supplied cluster key.
 List<org.rhq.core.domain.resource.Resource> getAutoClusterResources(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.group.ClusterKey clusterKey)
          Given a cluster key get the auto cluster resource membership.
 org.rhq.core.domain.resource.group.composite.ClusterFlyweight getClusterTree(org.rhq.core.domain.auth.Subject subject, int groupId)
          Load a fully populated tree view of the "cluster nodes" for a cluster group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterManagerBean

public ClusterManagerBean()
Method Detail

createAutoClusterBackingGroup

public org.rhq.core.domain.resource.group.ResourceGroup createAutoClusterBackingGroup(org.rhq.core.domain.auth.Subject subject,
                                                                                      org.rhq.core.domain.resource.group.ClusterKey clusterKey,
                                                                                      boolean addResources)
Description copied from interface: ClusterManagerRemote
Given a cluster key create a backing group.

Specified by:
createAutoClusterBackingGroup in interface ClusterManagerRemote
addResources - If true, the new group will be assigned the current resources defined by the clusterKey. Otherwise no resources will be assigned to the new group.

getAutoClusterBackingGroup

public org.rhq.core.domain.resource.group.ResourceGroup getAutoClusterBackingGroup(org.rhq.core.domain.auth.Subject subject,
                                                                                   org.rhq.core.domain.resource.group.ClusterKey clusterKey)
Description copied from interface: ClusterManagerRemote
Return the backing group for the supplied cluster key. Resource membership will represent the resources last set for the group and may not reflect current membership. See #getAutoClusterResources(String)

Specified by:
getAutoClusterBackingGroup in interface ClusterManagerRemote
Returns:
The backing group, or null if the key does not have a backing group.

getAutoClusterResources

public List<org.rhq.core.domain.resource.Resource> getAutoClusterResources(org.rhq.core.domain.auth.Subject subject,
                                                                           org.rhq.core.domain.resource.group.ClusterKey clusterKey)
Description copied from interface: ClusterManagerRemote
Given a cluster key get the auto cluster resource membership. The membership is always determined at call time, regardless of whether a backing group exists. To get the backing group, if it exists, for a cluster key then call #getAutoClusterBackingGroup(String).

Specified by:
getAutoClusterResources in interface ClusterManagerRemote

getClusterTree

public org.rhq.core.domain.resource.group.composite.ClusterFlyweight getClusterTree(org.rhq.core.domain.auth.Subject subject,
                                                                                    int groupId)
Description copied from interface: ClusterManagerRemote
Load a fully populated tree view of the "cluster nodes" for a cluster group. These are summary nodes and do not contain the actual resources in the group.

Specified by:
getClusterTree in interface ClusterManagerRemote
Returns:


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