eu.unicore.hila.shell.commands
Class ShellCommandBase

java.lang.Object
  extended by eu.unicore.hila.shell.commands.ShellCommandBase
All Implemented Interfaces:
ShellCommand
Direct Known Subclasses:
Abort, Alias, Cat, Cd, ChMod, Cleanup, Cp, Exit, Export, GetMetadata, Help, Import, LCd, LLs, LMv, LPwd, Ls, MkDir, Monitor, Mv, Pwd, Rm, Run, Start, Status, Submit, Time, Transfer, Unalias, Version

public abstract class ShellCommandBase
extends Object
implements ShellCommand

Author:
bjoernh 22.10.2009 13:10:47

Field Summary
protected  org.apache.commons.cli.Options options
           
protected  org.apache.commons.cli.CommandLineParser parser
           
 
Constructor Summary
ShellCommandBase()
           
 
Method Summary
 void execute(String[] cmdArgs, ShellContext ctx)
           
 String getName()
           
 org.apache.commons.cli.Options getOptions()
           
 String help()
           
protected  void missingArg(String string)
           
protected  void printHelp(ShellContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected org.apache.commons.cli.Options options

parser

protected org.apache.commons.cli.CommandLineParser parser
Constructor Detail

ShellCommandBase

public ShellCommandBase()
Method Detail

getName

public String getName()
Specified by:
getName in interface ShellCommand
See Also:
ShellCommand.getName()

help

public String help()
Specified by:
help in interface ShellCommand
See Also:
ShellCommand.help()

missingArg

protected void missingArg(String string)
Parameters:
string -

printHelp

protected void printHelp(ShellContext ctx)
Parameters:
ctx -

execute

public void execute(String[] cmdArgs,
                    ShellContext ctx)
             throws eu.unicore.hila.exceptions.HiLAException
Specified by:
execute in interface ShellCommand
Throws:
eu.unicore.hila.exceptions.HiLANotImplementedException
eu.unicore.hila.exceptions.HiLAException
See Also:
ShellCommand.execute(java.lang.String[], eu.unicore.hila.shell.ShellContext)

getOptions

public org.apache.commons.cli.Options getOptions()
Specified by:
getOptions in interface ShellCommand
See Also:
ShellCommand.getOptions()


Copyright © 2010-2013 UNICORE. All Rights Reserved.