public interface TopologyManagerLocal
| Modifier and Type | Method and Description |
|---|---|
void |
deleteServer(org.rhq.core.domain.auth.Subject subject,
Integer serverId) |
void |
deleteServers(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> |
findServersByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ServerCriteria criteria)
Fetches the server based on provided criteria.
|
List<org.rhq.core.domain.resource.Agent> |
getAgentsByServerName(String serverName) |
List<org.rhq.core.domain.cloud.Server> |
getAllCloudServers()
Return every server registered in the database considered part of the active cloud.
|
List<org.rhq.core.domain.cloud.Server> |
getAllServers()
Deprecated.
Use the
findServersByCriteria() instead. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.FailoverListDetails> |
getFailoverListDetailsByAgentId(org.rhq.core.domain.auth.Subject subject,
int agentId,
org.rhq.core.domain.util.PageControl pc)
the subject needs to have MANAGE_SETTINGS permissions.
|
int |
getNormalServerCount()
Returns the number of servers that are part of the "server cloud" that are currently
running in "normal" mode.
|
org.rhq.core.domain.cloud.Server |
getServerById(int serverId)
Deprecated.
Use the
findServersByCriteria() instead. |
org.rhq.core.domain.cloud.Server |
getServerByName(String serverName)
Deprecated.
Use the
findServersByCriteria() instead. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.composite.ServerWithAgentCountComposite> |
getServerComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
Returns all servers with the agent counts
the subject needs to have MANAGE_INVENTORY and MANAGE_SETTINGS permissions.
|
int |
getServerCount()
Returns the number of servers that are part of the "server cloud", which excludes
servers that have been installed but not associated with the cloud.
|
void |
markStaleServersDown(org.rhq.core.domain.auth.Subject subject) |
org.rhq.core.domain.cloud.Server |
updateServer(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.Server server)
Updates the server.
|
void |
updateServerMode(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds,
org.rhq.core.domain.cloud.Server.OperationMode mode)
Updates the server operation mode for multiple servers.
|
void deleteServers(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds)
throws TopologyManagerException
TopologyManagerExceptionvoid deleteServer(org.rhq.core.domain.auth.Subject subject,
Integer serverId)
throws TopologyManagerException
TopologyManagerExceptionList<org.rhq.core.domain.resource.Agent> getAgentsByServerName(String serverName)
org.rhq.core.domain.cloud.Server getServerById(int serverId)
findServersByCriteria() instead.serverId - org.rhq.core.domain.cloud.Server getServerByName(String serverName)
findServersByCriteria() instead.serverName - List<org.rhq.core.domain.cloud.Server> getAllCloudServers()
List<org.rhq.core.domain.cloud.Server> getAllServers()
findServersByCriteria() instead.org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.composite.ServerWithAgentCountComposite> getServerComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
subject - the callerpc - ServerWithAgentCountCompositeint getServerCount()
int getNormalServerCount()
void updateServerMode(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds,
org.rhq.core.domain.cloud.Server.OperationMode mode)
subject - the callerserverIds - mode - desired server operation modeorg.rhq.core.domain.cloud.Server updateServer(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.Server server)
subject - the caller.server - org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.FailoverListDetails> getFailoverListDetailsByAgentId(org.rhq.core.domain.auth.Subject subject,
int agentId,
org.rhq.core.domain.util.PageControl pc)
subject - agentId - pc - void markStaleServersDown(org.rhq.core.domain.auth.Subject subject)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.Server> findServersByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ServerCriteria criteria)
subject - callercriteria - the criteriaCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.