public class LinksListCommand extends AbstractShellCommand
log| 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 |
doExecute()
Body of the shell 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, error, execute, get, getService, jsonForEntity, mapper, outputJson, printprotected void doExecute()
AbstractShellCommanddoExecute 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