|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.cloud.CloudManagerBean
public class CloudManagerBean
This class manages and reports information about the RHQ Server Cloud as a whole. It does not discern which server is which, and can be called from any server in the cloud and will operate identically the same results.
| Constructor Summary | |
|---|---|
CloudManagerBean()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloudManagerBean()
| Method Detail |
|---|
public List<org.rhq.core.domain.resource.Agent> getAgentsByServerName(String serverName)
getAgentsByServerName in interface CloudManagerLocalpublic org.rhq.core.domain.cloud.Server getServerById(int serverId)
getServerById in interface CloudManagerLocalpublic org.rhq.core.domain.cloud.Server getServerByName(String serverName)
getServerByName in interface CloudManagerLocalpublic List<org.rhq.core.domain.cloud.Server> getAllCloudServers()
CloudManagerLocal
getAllCloudServers in interface CloudManagerLocalpublic List<org.rhq.core.domain.cloud.Server> getAllServers()
CloudManagerLocal
getAllServers in interface CloudManagerLocal
public 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)
getServerComposites in interface CloudManagerLocalpublic int getServerCount()
CloudManagerLocal
getServerCount in interface CloudManagerLocalpublic int getNormalServerCount()
CloudManagerLocal
getNormalServerCount in interface CloudManagerLocal
public void deleteServers(Integer[] serverIds)
throws CloudManagerException
deleteServers in interface CloudManagerLocalCloudManagerException
public void deleteServer(Integer serverId)
throws CloudManagerException
deleteServer in interface CloudManagerLocalCloudManagerException
public void updateServerMode(Integer[] serverIds,
org.rhq.core.domain.cloud.Server.OperationMode mode)
updateServerMode in interface CloudManagerLocal
public org.rhq.core.domain.cloud.Server updateServer(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.Server server)
updateServer in interface CloudManagerLocal
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.FailoverListDetails> getFailoverListDetailsByAgentId(int agentId,
org.rhq.core.domain.util.PageControl pc)
getFailoverListDetailsByAgentId in interface CloudManagerLocalpublic void markStaleServersDown(org.rhq.core.domain.auth.Subject subject)
markStaleServersDown in interface CloudManagerLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||