org.globus.cog.gridshell.commands.gsh
Class GshEngine
java.lang.Object
org.globus.cog.gridshell.commands.gsh.GshEngine
- public class GshEngine
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GshEngine
public GshEngine()
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()