org.knowhowlab.osgi.shell.knopflerfish
Class KnopflerfishCommandGroup
java.lang.Object
org.knowhowlab.osgi.shell.knopflerfish.KnopflerfishCommandGroup
- All Implemented Interfaces:
- org.knopflerfish.service.console.CommandGroup
public class KnopflerfishCommandGroup
- extends Object
- implements org.knopflerfish.service.console.CommandGroup
Knopflerfish CommandGroup service implementation
- Author:
- dpishchukhin
| Fields inherited from interface org.knopflerfish.service.console.CommandGroup |
GROUP_NAME |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnopflerfishCommandGroup
public KnopflerfishCommandGroup(String groupId,
String groupName,
Object service)
- Command Group constructor
- Parameters:
groupId - group idgroupName - group nameservice - commands provider service instance
getGroupName
public String getGroupName()
- Specified by:
getGroupName in interface org.knopflerfish.service.console.CommandGroup
getShortHelp
public String getShortHelp()
- Specified by:
getShortHelp in interface org.knopflerfish.service.console.CommandGroup
getLongHelp
public String getLongHelp()
- Specified by:
getLongHelp in interface org.knopflerfish.service.console.CommandGroup
execute
public int execute(String[] lineArgs,
Reader in,
PrintWriter out,
org.knopflerfish.service.console.Session session)
- Specified by:
execute in interface org.knopflerfish.service.console.CommandGroup
addCommandHelp
public void addCommandHelp(String commandHelp)
- Add command to group
- Parameters:
commandHelp - command help
getCommandsCount
public int getCommandsCount()
- Get commands count in the group
- Returns:
- commands count
Copyright © 2015 Know-How Lab. All rights reserved.