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(Iterable<org.onosproject.net.Link> links)
Produces a JSON array containing the specified links.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.ConnectPoint connectPoint)
Produces a JSON object for the specified connect point.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(com.fasterxml.jackson.databind.ObjectMapper mapper,
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, appId, doExecute, error, get, outputJson, printprotected void execute()
AbstractShellCommandexecute in class AbstractShellCommandpublic static com.fasterxml.jackson.databind.JsonNode json(Iterable<org.onosproject.net.Link> links)
links - collection of linkspublic static com.fasterxml.jackson.databind.node.ObjectNode json(com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.Link link)
mapper - object mapperlink - link to encodepublic static com.fasterxml.jackson.databind.node.ObjectNode json(com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.ConnectPoint connectPoint)
mapper - object mapperconnectPoint - connection point to encodepublic static String linkString(org.onosproject.net.Link link)
link - infrastructure linkpublic static String compactLinkString(org.onosproject.net.Link link)
link - infrastructure linkCopyright © 2015. All rights reserved.