public class HostsListCommand extends AbstractShellCommand
| Constructor and Description |
|---|
HostsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
protected List<org.onosproject.net.Host> |
getSortedHosts(org.onosproject.net.host.HostService service)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printHost(org.onosproject.net.Host host)
Prints information about a host.
|
annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printprotected void execute()
AbstractShellCommandexecute in class AbstractShellCommandprotected List<org.onosproject.net.Host> getSortedHosts(org.onosproject.net.host.HostService service)
service - device serviceprotected void printHost(org.onosproject.net.Host host)
host - end-station hostCopyright © 2015. All rights reserved.