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
,org.onosproject.codec.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<org.onosproject.net.Device,java.util.List<org.onosproject.net.group.Group>>
getSortedGroups(org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.group.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
-
-
-
-
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<org.onosproject.net.Device,java.util.List<org.onosproject.net.group.Group>> getSortedGroups(org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.group.GroupService groupService)
Returns the list of devices sorted using the device ID URIs.- Parameters:
deviceService
- device servicegroupService
- group service- Returns:
- sorted device list
-
-