Package org.onosproject.cli.net
Class TopologyCommand
- java.lang.Object
 - 
- org.onosproject.cli.AbstractShellCommand
 - 
- org.onosproject.cli.net.TopologyCommand
 
 
 
- 
- All Implemented Interfaces:
 org.apache.karaf.shell.api.action.Action,CodecContext
- Direct Known Subclasses:
 ClustersListCommand,PathListCommand
public class TopologyCommand extends AbstractShellCommand
Lists summary of the current topology. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected TopologyServiceserviceprotected Topologytopology- 
Fields inherited from class org.onosproject.cli.AbstractShellCommand
log 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TopologyCommand() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Body of the shell command.protected voidinit()Initializes the context for all cluster commands.- 
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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
service
protected TopologyService service
 
- 
topology
protected Topology topology
 
 - 
 
- 
Method Detail
- 
init
protected void init()
Initializes the context for all cluster commands. 
- 
doExecute
protected void doExecute()
Description copied from class:AbstractShellCommandBody of the shell command.- Specified by:
 doExecutein classAbstractShellCommand
 
 - 
 
 -