org.apache.geronimo.gshell.remote.server
Class DefaultRemoteShell

java.lang.Object
  extended by org.apache.geronimo.gshell.remote.server.DefaultRemoteShell
All Implemented Interfaces:
CommandExecutor, RemoteShell, Shell

@Component(role=RemoteShell.class,
           instantiationStrategy="per-lookup")
public class DefaultRemoteShell
extends Object
implements RemoteShell

Provides the server-side encapsulation of the basic shell bits to allow remote clients to invoke commands.

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

Constructor Summary
DefaultRemoteShell()
           
 
Method Summary
 void close()
           
 Object execute(Object... args)
           
 Object execute(String line)
           
 Object execute(String path, Object[] args)
           
 Environment getEnvironment()
           
 ShellInfo getShellInfo()
           
 boolean isOpened()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRemoteShell

public DefaultRemoteShell()
Method Detail

isOpened

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

close

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

getEnvironment

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

getShellInfo

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

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


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