org.apache.geronimo.gshell.remote.client.proxy
Class RemoteShellProxy

java.lang.Object
  extended by org.apache.geronimo.gshell.remote.client.proxy.RemoteShellProxy
All Implemented Interfaces:
CommandExecutor, RemoteShell, InteractiveShell, Shell

public class RemoteShellProxy
extends Object
implements RemoteShell, InteractiveShell

Provides a shell interface which will proxy to a remote shell instance.

Version:
$Rev: 580765 $ $Date: 2007-09-30 11:52:39 -0700 (Sun, 30 Sep 2007) $

Constructor Summary
RemoteShellProxy(RshClient client, IO io, jline.Terminal terminal)
           
 
Method Summary
 void close()
           
 Object execute(Object... args)
           
 Object execute(String line)
           
 Object execute(String path, Object[] args)
           
 Environment getEnvironment()
           
 ShellInfo getShellInfo()
           
 boolean isOpened()
           
 void run(Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteShellProxy

public RemoteShellProxy(RshClient client,
                        IO io,
                        jline.Terminal terminal)
                 throws Exception
Throws:
Exception
Method Detail

getEnvironment

public Environment getEnvironment()
Specified by:
getEnvironment in interface Shell

getShellInfo

public ShellInfo getShellInfo()
Specified by:
getShellInfo in interface Shell

isOpened

public boolean isOpened()
Specified by:
isOpened in interface RemoteShell

close

public void close()
Specified by:
close in interface RemoteShell

execute

public Object execute(String line)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

execute

public Object execute(Object... args)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

execute

public Object execute(String path,
                      Object[] args)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

run

public void run(Object... args)
         throws Exception
Specified by:
run in interface InteractiveShell
Throws:
Exception


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.