org.rhq.enterprise.server.cloud
Interface AffinityGroupManagerLocal
- All Known Implementing Classes:
- AffinityGroupManagerBean
public interface AffinityGroupManagerLocal
- Author:
- Joseph Marques
|
Method Summary |
void |
addAgentsToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] agentIds)
|
void |
addServersToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] serverIds)
|
int |
create(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
|
int |
delete(org.rhq.core.domain.auth.Subject subject,
Integer[] affinityGroupIds)
|
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)
|
getById
org.rhq.core.domain.cloud.AffinityGroup getById(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId)
create
int create(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
throws AffinityGroupException
- Throws:
AffinityGroupException
delete
int delete(org.rhq.core.domain.auth.Subject subject,
Integer[] affinityGroupIds)
update
org.rhq.core.domain.cloud.AffinityGroup update(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.AffinityGroup affinityGroup)
throws AffinityGroupException
- Throws:
AffinityGroupException
addAgentsToGroup
void addAgentsToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] agentIds)
removeAgentsFromGroup
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. Otherwise, unnecessary partition events can be generated.
- Parameters:
subject - agentIds -
addServersToGroup
void addServersToGroup(org.rhq.core.domain.auth.Subject subject,
int affinityGroupId,
Integer[] serverIds)
removeServersFromGroup
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. Otherwise, unnecessary partition events can be generated.
- Parameters:
subject - agentIds -
getAffinityGroupCount
int getAffinityGroupCount()
getServerMembers
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)
getServerNonMembers
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)
getAgentMembers
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)
getAgentNonMembers
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)
getComposites
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)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.