org.jclouds.ssh
Interface SshClient


public interface SshClient


Nested Class Summary
static interface SshClient.Factory
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 ExecResponse exec(String command)
          Execute a process and block until it is complete
 ExecChannel execChannel(String command)
          Execute a process and allow the user to interact with it.
 org.jclouds.io.Payload get(String path)
           
 String getHostAddress()
           
 String getUsername()
           
 void put(String path, org.jclouds.io.Payload contents)
           
 void put(String path, String contents)
           
 

Method Detail

getUsername

String getUsername()

getHostAddress

String getHostAddress()

put

void put(String path,
         org.jclouds.io.Payload contents)

get

org.jclouds.io.Payload get(String path)

exec

ExecResponse exec(String command)
Execute a process and block until it is complete

Parameters:
command - command line to invoke
Returns:
output of the command

execChannel

ExecChannel execChannel(String command)
Execute a process and allow the user to interact with it. Note that this will allow the session to exist indefinitely, and its connection is not closed when disconnect() is called.

Parameters:
command - command line to invoke
Returns:
reference to the running process
Since:
1.5.0

connect

void connect()

disconnect

void disconnect()

put

void put(String path,
         String contents)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.