org.rhq.enterprise.server.install.remote
Class SSHInstallUtility

java.lang.Object
  extended by org.rhq.enterprise.server.install.remote.SSHInstallUtility

public class SSHInstallUtility
extends Object

A utility object that is used to install, start and stop agents remotely over SSH.

Author:
Greg Hinkle, John Mazzitelli

Constructor Summary
SSHInstallUtility(RemoteAccessInfo accessInfo)
           
 
Method Summary
 boolean agentInstallCheck(String agentInstallPath)
           
 String agentStatus(String agentInstallPath)
           
 void connect()
           
 void disconnect()
           
 String findAgentInstallPath(String parentPath)
           
 AgentInstallInfo installAgent(String parentPath)
           
static void main(String[] args)
           
 String[] pathDiscovery(String parentPath)
           
 String startAgent(String agentInstallPath)
           
 String stopAgent(String agentInstallPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHInstallUtility

public SSHInstallUtility(RemoteAccessInfo accessInfo)
Method Detail

connect

public void connect()

disconnect

public void disconnect()

agentInstallCheck

public boolean agentInstallCheck(String agentInstallPath)

installAgent

public AgentInstallInfo installAgent(String parentPath)

startAgent

public String startAgent(String agentInstallPath)

stopAgent

public String stopAgent(String agentInstallPath)

agentStatus

public String agentStatus(String agentInstallPath)

findAgentInstallPath

public String findAgentInstallPath(String parentPath)

pathDiscovery

public String[] pathDiscovery(String parentPath)

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


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