org.knopflerfish.service.console
public interface CommandGroup
The service object must then be registered under the class name
org.knopflerfish.service.console.CommandGroup with the
property "groupName" set to the command group name.
CommandGroupAdapter,
ConsoleService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GROUP_NAME
Property key for group name to use when registering a CommandGroup.
|
| Modifier and Type | Method and Description |
|---|---|
int |
execute(java.lang.String[] args,
java.io.Reader in,
java.io.PrintWriter out,
Session session)
Executes a command in the command group.
|
java.lang.String |
getGroupName()
Returns a string with the command group name.
|
java.lang.String |
getLongHelp()
Returns a string containing a long help text for the command group.
|
java.lang.String |
getShortHelp()
Returns a string containing a short help text for the command group.
|
static final java.lang.String GROUP_NAME
java.lang.String getGroupName()
java.lang.String getShortHelp()
java.lang.String getLongHelp()
int execute(java.lang.String[] args,
java.io.Reader in,
java.io.PrintWriter out,
Session session)
args - argument listout - output write for command to print result toin - input reader for command to read interactivelysession - a handle to command session or null if single command