public class TopologyManagerBean extends Object implements TopologyManagerLocal
| Constructor and Description |
|---|
TopologyManagerBean() |
| 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()
Return every server registered in the database.
|
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) |
org.rhq.core.domain.cloud.Server |
getServerByName(String serverName) |
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.
|
public List<org.rhq.core.domain.resource.Agent> getAgentsByServerName(String serverName)
getAgentsByServerName in interface TopologyManagerLocalpublic org.rhq.core.domain.cloud.Server getServerById(int serverId)
getServerById in interface TopologyManagerLocalpublic org.rhq.core.domain.cloud.Server getServerByName(String serverName)
getServerByName in interface TopologyManagerLocalpublic List<org.rhq.core.domain.cloud.Server> getAllCloudServers()
TopologyManagerLocalgetAllCloudServers in interface TopologyManagerLocalpublic List<org.rhq.core.domain.cloud.Server> getAllServers()
TopologyManagerLocalgetAllServers in interface TopologyManagerLocalpublic 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)
TopologyManagerLocalgetServerComposites in interface TopologyManagerLocalsubject - the callerServerWithAgentCountCompositepublic int getServerCount()
TopologyManagerLocalgetServerCount in interface TopologyManagerLocalpublic int getNormalServerCount()
TopologyManagerLocalgetNormalServerCount in interface TopologyManagerLocalpublic void deleteServers(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds)
throws TopologyManagerException
deleteServers in interface TopologyManagerLocalTopologyManagerExceptionpublic void deleteServer(org.rhq.core.domain.auth.Subject subject,
Integer serverId)
throws TopologyManagerException
deleteServer in interface TopologyManagerLocalTopologyManagerExceptionpublic void updateServerMode(org.rhq.core.domain.auth.Subject subject,
Integer[] serverIds,
org.rhq.core.domain.cloud.Server.OperationMode mode)
TopologyManagerLocalupdateServerMode in interface TopologyManagerLocalsubject - the callermode - desired server operation modepublic org.rhq.core.domain.cloud.Server updateServer(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.Server server)
TopologyManagerLocalupdateServer in interface TopologyManagerLocalsubject - the caller.public 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)
TopologyManagerLocalgetFailoverListDetailsByAgentId in interface TopologyManagerLocalpublic void markStaleServersDown(org.rhq.core.domain.auth.Subject subject)
markStaleServersDown in interface TopologyManagerLocalpublic 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)
TopologyManagerLocalfindServersByCriteria in interface TopologyManagerLocalsubject - callercriteria - the criteriaCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.