public class PathListCommand extends TopologyCommand
service, topology| Constructor and Description |
|---|
PathListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
static com.fasterxml.jackson.databind.JsonNode |
json(AbstractShellCommand context,
Iterable<? extends org.onosproject.net.Path> paths)
Produces a JSON array containing the specified paths.
|
protected String |
pathString(org.onosproject.net.Path path)
Produces a formatted string representing the specified path.
|
initannotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printcheckInterrupted, executeprotected void execute()
AbstractShellCommandexecute in class TopologyCommandpublic static com.fasterxml.jackson.databind.JsonNode json(AbstractShellCommand context, Iterable<? extends org.onosproject.net.Path> paths)
context - context to use for looking up codecspaths - collection of pathsprotected String pathString(org.onosproject.net.Path path)
path - network path