org.knowhowlab.osgi.shell.knopflerfish
Class KnopflerfishCommandGroup

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.knopflerfish.service.console.CommandGroup
GROUP_NAME
 
Constructor Summary
KnopflerfishCommandGroup(String groupId, String groupName, Object service)
          Command Group constructor
 
Method Summary
 void addCommandHelp(String commandHelp)
          Add command to group
 int execute(String[] lineArgs, Reader in, PrintWriter out, org.knopflerfish.service.console.Session session)
           
 int getCommandsCount()
          Get commands count in the group
 String getGroupName()
           
 String getLongHelp()
           
 String getShortHelp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnopflerfishCommandGroup

public KnopflerfishCommandGroup(String groupId,
                                String groupName,
                                Object service)
Command Group constructor

Parameters:
groupId - group id
groupName - group name
service - commands provider service instance
Method Detail

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.