|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteInstallManagerRemote
Provides an interface to remotely install an RHQ Agent over SSH.
Method Summary | |
---|---|
boolean |
agentInstallCheck(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Checks to see if an agent is installed in the given directory. |
String |
agentStatus(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Determines the running status of the agent located in the given installation directory. |
String |
findAgentInstallPath(Subject subject,
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). |
AgentInstallInfo |
installAgent(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String parentPath)
Installs the agent update binary distribution file to the given parent directory. |
String[] |
remotePathDiscover(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String parentPath)
Returns the given parent directory's child files/directories. |
String |
startAgent(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Starts the agent located in the given installation directory. |
String |
stopAgent(Subject subject,
RemoteAccessInfo remoteAccessInfo,
String agentInstallPath)
Stops the agent located in the given installation directory. |
Method Detail |
---|
boolean agentInstallCheck(Subject subject, RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsagentInstallPath
- the directory to check
AgentInstallInfo installAgent(Subject subject, RemoteAccessInfo remoteAccessInfo, String parentPath)
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsparentPath
- where the agent install directory will be
String startAgent(Subject subject, RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsagentInstallPath
- where the agent is installed
String stopAgent(Subject subject, RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsagentInstallPath
- where the agent is installed
String agentStatus(Subject subject, RemoteAccessInfo remoteAccessInfo, String agentInstallPath)
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsagentInstallPath
- where the agent is installed
String findAgentInstallPath(Subject subject, RemoteAccessInfo remoteAccessInfo, String parentPath)
null
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).
subject
- the RHQ user making the requestremoteAccessInfo
- the remote machine information and remote user SSH credentialsparentPath
- the parent directory whose children files/directories are scanned
String[] remotePathDiscover(Subject subject, RemoteAccessInfo remoteAccessInfo, String parentPath)
subject
- 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 |