public class LinksListCommand extends AbstractShellCommand
| Constructor and Description |
|---|
LinksListCommand() |
| Modifier and Type | Method and Description |
|---|---|
static String |
compactLinkString(org.onosproject.net.Link link)
Returns a compact string representing the given link.
|
protected void |
execute()
Executes this command.
|
static com.fasterxml.jackson.databind.JsonNode |
json(AbstractShellCommand context,
Iterable<org.onosproject.net.Link> links)
Produces a JSON array containing the specified links.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(AbstractShellCommand context,
org.onosproject.net.Link link)
Produces a JSON object for the specified link.
|
static String |
linkString(org.onosproject.net.Link link)
Returns a formatted string representing the given link.
|
annotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printprotected void execute()
AbstractShellCommandexecute in class AbstractShellCommandpublic static com.fasterxml.jackson.databind.JsonNode json(AbstractShellCommand context, Iterable<org.onosproject.net.Link> links)
context - context to use for looking up codecslinks - collection of linkspublic static com.fasterxml.jackson.databind.node.ObjectNode json(AbstractShellCommand context, org.onosproject.net.Link link)
context - context to use for looking up codecslink - link to encodepublic static String linkString(org.onosproject.net.Link link)
link - infrastructure linkpublic static String compactLinkString(org.onosproject.net.Link link)
link - infrastructure link