Package org.onosproject.cli
Class MastersListCommand
- java.lang.Object
 - 
- org.onosproject.cli.AbstractShellCommand
 - 
- org.onosproject.cli.MastersListCommand
 
 
 
- 
- All Implemented Interfaces:
 org.apache.karaf.shell.api.action.Action,CodecContext
public class MastersListCommand extends AbstractShellCommand
Lists device mastership information. 
- 
- 
Field Summary
- 
Fields inherited from class org.onosproject.cli.AbstractShellCommand
log 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MastersListCommand() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Body of the shell command.static com.fasterxml.jackson.databind.JsonNodejson(com.fasterxml.jackson.databind.ObjectMapper mapper, java.lang.Iterable<DeviceId> ids)Produces a JSON array containing the specified device identifiers.- 
Methods inherited from class org.onosproject.cli.AbstractShellCommand
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.onosproject.codec.CodecContext
decode, encode 
 - 
 
 - 
 
- 
- 
Method Detail
- 
doExecute
protected void doExecute()
Description copied from class:AbstractShellCommandBody of the shell command.- Specified by:
 doExecutein classAbstractShellCommand
 
- 
json
public static com.fasterxml.jackson.databind.JsonNode json(com.fasterxml.jackson.databind.ObjectMapper mapper, java.lang.Iterable<DeviceId> ids)Produces a JSON array containing the specified device identifiers.- Parameters:
 mapper- object mapperids- collection of device identifiers- Returns:
 - JSON array
 
 
 - 
 
 -