public class AffinityGroupManagerBean extends Object implements AffinityGroupManagerLocal
AffinityGroups| Constructor and Description |
|---|
AffinityGroupManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentsToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] agentIds)
Adds agents to the affinity group.
|
void |
addServersToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] serverIds)
Adds servers to the affinity group.
|
int |
create(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
Creates a new affinity group.
|
int |
delete(org.rhq.core.domain.auth.Subject subject,
Integer[] affinityGroupIds)
Deletes the affinity groups.
|
int |
getAffinityGroupCount() |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Agent> |
getAgentMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Agent> |
getAgentNonMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl) |
org.rhq.core.domain.cloud.AffinityGroup |
getById(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.composite.AffinityGroupCountComposite> |
getComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pageControl) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> |
getServerMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> |
getServerNonMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl) |
void |
removeAgentsFromGroup(org.rhq.core.domain.auth.Subject subject,
Integer[] agentIds)
This should only be called if the agent is currently assigned to an affinity group and that group
is being removed, setting the agent to no affinity.
|
void |
removeServersFromGroup(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds)
This should only be called if the server is currently assigned to an affinity group and that group
is being removed, setting the server to no affinity.
|
org.rhq.core.domain.cloud.AffinityGroup |
update(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
Updates the affinity group.
|
public org.rhq.core.domain.cloud.AffinityGroup getById(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId)
getById in interface AffinityGroupManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Agent> getAgentMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl)
getAgentMembers in interface AffinityGroupManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Agent> getAgentNonMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl)
getAgentNonMembers in interface AffinityGroupManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> getServerMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl)
getServerMembers in interface AffinityGroupManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> getServerNonMembers(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
org.rhq.core.domain.util.PageControl pageControl)
getServerNonMembers in interface AffinityGroupManagerLocalpublic org.rhq.core.domain.cloud.AffinityGroup update(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
throws AffinityGroupException
AffinityGroupManagerLocalupdate in interface AffinityGroupManagerLocalsubject - the Subject instanceaffinityGroup - @see AffinityGroupAffinityGroupExceptionpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.composite.AffinityGroupCountComposite> getComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pageControl)
getComposites in interface AffinityGroupManagerLocalpublic int getAffinityGroupCount()
getAffinityGroupCount in interface AffinityGroupManagerLocalpublic int create(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
throws AffinityGroupException
AffinityGroupManagerLocalcreate in interface AffinityGroupManagerLocalsubject - the Subject instanceaffinityGroup - @see AffinityGroupAffinityGroupExceptionpublic int delete(org.rhq.core.domain.auth.Subject subject,
Integer[] affinityGroupIds)
AffinityGroupManagerLocaldelete in interface AffinityGroupManagerLocalsubject - the Subject instancepublic void addAgentsToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] agentIds)
AffinityGroupManagerLocaladdAgentsToGroup in interface AffinityGroupManagerLocalsubject - the Subject instancepublic void removeAgentsFromGroup(org.rhq.core.domain.auth.Subject subject,
Integer[] agentIds)
AffinityGroupManagerLocalremoveAgentsFromGroup in interface AffinityGroupManagerLocalsubject - the Subject instancepublic void addServersToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] serverIds)
AffinityGroupManagerLocaladdServersToGroup in interface AffinityGroupManagerLocalsubject - the Subject instancepublic void removeServersFromGroup(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds)
AffinityGroupManagerLocalremoveServersFromGroup in interface AffinityGroupManagerLocalsubject - the Subject instanceCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.