public class RemoteInstallManagerBean extends Object implements RemoteInstallManagerLocal, RemoteInstallManagerRemote
| Constructor and Description |
|---|
RemoteInstallManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
checkSSHConnection(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo)
Performs a fast connection check.
|
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,
org.rhq.core.domain.install.remote.CustomAgentInstallData customData)
Installs the agent update binary distribution file to the given parent
directory.
|
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) |
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.
|
String |
uninstallAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Uninstalls the actual distribution files of an installed agent.
|
public void checkSSHConnection(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo)
throws org.rhq.core.domain.install.remote.SSHSecurityException
RemoteInstallManagerRemotecheckSSHConnection in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsorg.rhq.core.domain.install.remote.SSHSecurityException - if the connection failed to be made due to things like the remote host is unknown.public boolean agentInstallCheck(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
RemoteInstallManagerRemoteagentInstallCheck in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - the directory to checkpublic 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)
installAgent in interface RemoteInstallManagerRemotepublic org.rhq.core.domain.install.remote.AgentInstallInfo installAgent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo,
org.rhq.core.domain.install.remote.CustomAgentInstallData customData)
RemoteInstallManagerRemoteinstallAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialscustomData - contains custom install details such as where the agent install directory will bepublic String uninstallAgent(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
RemoteInstallManagerRemoteuninstallAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentials including the name of the agent.public String startAgent(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
RemoteInstallManagerRemotestartAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installedpublic String stopAgent(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
RemoteInstallManagerRemotestopAgent in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installedpublic String agentStatus(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
RemoteInstallManagerRemoteagentStatus in interface RemoteInstallManagerRemotesubject - the RHQ user making the requestremoteAccessInfo - the remote machine information and remote user SSH credentialsagentInstallPath - where the agent is installedpublic 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 scannedpublic String[] remotePathDiscover(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.install.remote.RemoteAccessInfo remoteAccessInfo, String parentPath)
RemoteInstallManagerRemoteremotePathDiscover 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 returnedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.