org.rhq.enterprise.server.resource.cluster
Interface ClusterManagerRemote

All Known Subinterfaces:
ClusterManagerLocal
All Known Implementing Classes:
ClusterManagerBean

public interface ClusterManagerRemote

Author:
Greg Hinkle

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.
 

Method Detail

createAutoClusterBackingGroup

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.

Parameters:
clusterKey -
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.
Throws:
IllegalArgumentException - if a backing group exists for this clusterKey

getAutoClusterBackingGroup

@Nullable
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. Resource membership will represent the resources last set for the group and may not reflect current membership. See #getAutoClusterResources(String)

Parameters:
clusterKey -
Returns:
The backing group, or null if the key does not have a backing group.

getAutoClusterResources

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. 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).


getClusterTree

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. These are summary nodes and do not contain the actual resources in the group.

Parameters:
subject -
groupId -
Returns:


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