org.rhq.enterprise.server.cloud
Interface CloudManagerLocal

All Known Implementing Classes:
CloudManagerBean

public interface CloudManagerLocal

Author:
Joseph Marques

Method Summary
 void deleteServer(Integer serverId)
           
 void deleteServers(Integer[] serverIds)
           
 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(int agentId, org.rhq.core.domain.util.PageControl pc)
           
 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)
           
 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)
           
 void updateServerMode(Integer[] serverIds, org.rhq.core.domain.cloud.Server.OperationMode mode)
           
 

Method Detail

deleteServers

void deleteServers(Integer[] serverIds)
                   throws CloudManagerException
Throws:
CloudManagerException

deleteServer

void deleteServer(Integer serverId)
                  throws CloudManagerException
Throws:
CloudManagerException

getAgentsByServerName

List<org.rhq.core.domain.resource.Agent> getAgentsByServerName(String serverName)

getServerById

org.rhq.core.domain.cloud.Server getServerById(int serverId)

getServerByName

org.rhq.core.domain.cloud.Server getServerByName(String serverName)

getAllCloudServers

List<org.rhq.core.domain.cloud.Server> getAllCloudServers()
Return every server registered in the database considered part of the active cloud. This will exclude, for example, servers in INSTALLED mode or any other mode that should not be included when performing cloud operations such as partitioning.

Returns:
All servers available to the cloud.

getAllServers

List<org.rhq.core.domain.cloud.Server> getAllServers()
Return every server registered in the database.

Returns:
All servers, regardless of operation mode.

getServerComposites

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)

getServerCount

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. The returned count will include those servers that are down or in maintenance mode, in addition to those servers that are currently running in a normal state.

Returns:
count of servers in the cloud

getNormalServerCount

int getNormalServerCount()
Returns the number of servers that are part of the "server cloud" that are currently running in "normal" mode. This excludes all other servers such as those servers that have been installed but not associated with the cloud, servers that are down or in maintenance mode.

Returns:
count of servers in the cloud that are in a normal running state

updateServerMode

void updateServerMode(Integer[] serverIds,
                      org.rhq.core.domain.cloud.Server.OperationMode mode)

updateServer

org.rhq.core.domain.cloud.Server updateServer(org.rhq.core.domain.auth.Subject subject,
                                              org.rhq.core.domain.cloud.Server server)

getFailoverListDetailsByAgentId

org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.FailoverListDetails> getFailoverListDetailsByAgentId(int agentId,
                                                                                                                 org.rhq.core.domain.util.PageControl pc)

markStaleServersDown

void markStaleServersDown(org.rhq.core.domain.auth.Subject subject)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.