org.globus.cog.gridshell.commands.gsh
Class GshEngine

java.lang.Object
  extended byorg.globus.cog.gridshell.commands.gsh.GshEngine

public class GshEngine
extends Object


Constructor Summary
GshEngine()
           
 
Method Summary
 Command createCommand(Map args)
           
 AbstractShellCommand createCommand(String commandName)
          A helper method so that errors are very carefully described.
static GetOpt createGetOpt(AbstractShellCommand command, Scope scope)
          Creates a getopt for given command, adds the help option, and adds the background argument
 Collection getAvaialbeCommandNames()
           
protected  String getCommandName(String commandEntered)
          Just a helper method to break things down
 CommandProperties getCommandProperties()
           
 Scope getManPageMapping()
           
 ScopeableProperties getProperties()
           
 Scope getScope()
           
 void init(Object gsh)
           
 void initCommand(AbstractShellCommand command, String commandEntered)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GshEngine

public GshEngine()
Method Detail

getScope

public Scope getScope()

init

public void init(Object gsh)
          throws Exception
Throws:
Exception

createCommand

public Command createCommand(Map args)
                      throws Exception
Throws:
Exception

getCommandName

protected String getCommandName(String commandEntered)
Just a helper method to break things down

Parameters:
commandEntered -
Returns:

createCommand

public AbstractShellCommand createCommand(String commandName)
                                   throws Exception
A helper method so that errors are very carefully described. Only creats the command, still needs initialized.

Parameters:
commandName -
Returns:
Throws:
Exception

initCommand

public void initCommand(AbstractShellCommand command,
                        String commandEntered)
                 throws Exception
Throws:
Exception

createGetOpt

public static GetOpt createGetOpt(AbstractShellCommand command,
                                  Scope scope)
Creates a getopt for given command, adds the help option, and adds the background argument

Parameters:
command -
scope -
Returns:

getProperties

public ScopeableProperties getProperties()

getAvaialbeCommandNames

public Collection getAvaialbeCommandNames()

getManPageMapping

public Scope getManPageMapping()

getCommandProperties

public CommandProperties getCommandProperties()