org.rhq.enterprise.server.cloud
Interface AffinityGroupManagerLocal
- All Known Implementing Classes:
- AffinityGroupManagerBean
public interface AffinityGroupManagerLocal
- Author:
- Joseph Marques
|
Method Summary |
void |
addAgentsToGroup(Subject subject,
int affinityGroupId,
java.lang.Integer[] agentIds)
|
void |
addServersToGroup(Subject subject,
int affinityGroupId,
java.lang.Integer[] serverIds)
|
int |
create(Subject subject,
AffinityGroup affinityGroup)
|
int |
delete(Subject subject,
java.lang.Integer[] affinityGroupIds)
|
int |
getAffinityGroupCount()
|
PageList<Agent> |
getAgentMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
|
PageList<Agent> |
getAgentNonMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
|
AffinityGroup |
getById(Subject subject,
int affinityGroupId)
|
PageList<AffinityGroupCountComposite> |
getComposites(Subject subject,
PageControl pageControl)
|
PageList<Server> |
getServerMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
|
PageList<Server> |
getServerNonMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
|
void |
removeAgentsFromGroup(Subject subject,
java.lang.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(Subject subject,
java.lang.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. |
AffinityGroup |
update(Subject subject,
AffinityGroup affinityGroup)
|
getById
AffinityGroup getById(Subject subject,
int affinityGroupId)
create
int create(Subject subject,
AffinityGroup affinityGroup)
throws AffinityGroupException
- Throws:
AffinityGroupException
delete
int delete(Subject subject,
java.lang.Integer[] affinityGroupIds)
update
AffinityGroup update(Subject subject,
AffinityGroup affinityGroup)
throws AffinityGroupException
- Throws:
AffinityGroupException
addAgentsToGroup
void addAgentsToGroup(Subject subject,
int affinityGroupId,
java.lang.Integer[] agentIds)
removeAgentsFromGroup
void removeAgentsFromGroup(Subject subject,
java.lang.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(Subject subject,
int affinityGroupId,
java.lang.Integer[] serverIds)
removeServersFromGroup
void removeServersFromGroup(Subject subject,
java.lang.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
PageList<Server> getServerMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
getServerNonMembers
PageList<Server> getServerNonMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
getAgentMembers
PageList<Agent> getAgentMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
getAgentNonMembers
PageList<Agent> getAgentNonMembers(Subject subject,
int affinityGroupId,
PageControl pageControl)
getComposites
PageList<AffinityGroupCountComposite> getComposites(Subject subject,
PageControl pageControl)
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.