Package org.onosproject.cli.net
Class GroupsListCommand
- java.lang.Object
-
- org.onosproject.cli.AbstractShellCommand
-
- org.onosproject.cli.net.GroupsListCommand
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
,CodecContext
public class GroupsListCommand extends AbstractShellCommand
Lists all groups in the system.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANY
-
Fields inherited from class org.onosproject.cli.AbstractShellCommand
log
-
-
Constructor Summary
Constructors Constructor Description GroupsListCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute()
Body of the shell command.protected java.util.SortedMap<Device,java.util.List<Group>>
getSortedGroups(DeviceService deviceService, GroupService groupService)
Returns the list of devices sorted using the device ID URIs.-
Methods inherited from class org.onosproject.cli.AbstractShellCommand
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onosproject.codec.CodecContext
decode, encode
-
-
-
-
Field Detail
-
ANY
public static final java.lang.String ANY
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExecute
protected void doExecute()
Description copied from class:AbstractShellCommand
Body of the shell command.- Specified by:
doExecute
in classAbstractShellCommand
-
getSortedGroups
protected java.util.SortedMap<Device,java.util.List<Group>> getSortedGroups(DeviceService deviceService, GroupService groupService)
Returns the list of devices sorted using the device ID URIs.- Parameters:
deviceService
- device servicegroupService
- group service- Returns:
- sorted device list
-
-