|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.install.remote.RemoteInstallManagerBean
public class RemoteInstallManagerBean
Installs, starts and stops remote agents via SSH.
| Constructor Summary | |
|---|---|
RemoteInstallManagerBean()
|
|
| Method Summary | |
|---|---|
boolean |
agentInstallCheck(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Checks to see if an agent is installed in the given directory. |
String |
agentStatus(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Determines the running status of the agent located in the given installation directory. |
String |
findAgentInstallPath(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
Given a root parent path to check, this will scan all subdirectories (recursively) to try to find where the agent is installed (if it is installed at all). |
org.rhq.core.domain.install.remote.AgentInstallInfo |
installAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
Installs the agent update binary distribution file to the given parent directory. |
String[] |
remotePathDiscover(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
Returns the given parent directory's child files/directories. |
String |
startAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Starts the agent located in the given installation directory. |
String |
stopAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Stops the agent located in the given installation directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteInstallManagerBean()
| Method Detail |
|---|
public boolean agentInstallCheck(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
RemoteInstallManagerRemote
agentInstallCheck in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - the directory to check
public org.rhq.core.domain.install.remote.AgentInstallInfo installAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
RemoteInstallManagerRemote
installAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsparentPath - where the agent install directory will be
public String startAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
RemoteInstallManagerRemote
startAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installed
public String stopAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
RemoteInstallManagerRemote
stopAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installed
public String agentStatus(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
RemoteInstallManagerRemote
agentStatus in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installed
public String findAgentInstallPath(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
RemoteInstallManagerRemotenull is returned if it does not look like the agent is installed anywhere
under the given parent path (or in any of the common locations, if parent path is null).
findAgentInstallPath in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsparentPath - the parent directory whose children files/directories are scanned
public String[] remotePathDiscover(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String parentPath)
RemoteInstallManagerRemote
remotePathDiscover in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsparentPath - the parent directory whose children files/directories are returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||