X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Ftopologymanager%2Fshell%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftopologymanager%2Fshell%2FPrintNodeEdges.java;fp=opendaylight%2Ftopologymanager%2Fshell%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftopologymanager%2Fshell%2FPrintNodeEdges.java;h=9c5e806b6da2b66ca51f13b6d7b7744973326a90;hb=776b087b1e29c356cc912fd0a0b672fe2981a139;hp=0000000000000000000000000000000000000000;hpb=e5fe969c544e5354d2ba6253c98596cae0ea36c5;p=controller.git diff --git a/opendaylight/topologymanager/shell/src/main/java/org/opendaylight/controller/topologymanager/shell/PrintNodeEdges.java b/opendaylight/topologymanager/shell/src/main/java/org/opendaylight/controller/topologymanager/shell/PrintNodeEdges.java new file mode 100644 index 0000000000..9c5e806b6d --- /dev/null +++ b/opendaylight/topologymanager/shell/src/main/java/org/opendaylight/controller/topologymanager/shell/PrintNodeEdges.java @@ -0,0 +1,29 @@ +/** +* Copyright (c) 2014 Inocybe Technologies, and others. All rights reserved. +* +* This program and the accompanying materials are made available under the +* terms of the Eclipse Public License v1.0 which accompanies this distribution, +* and is available at http://www.eclipse.org/legal/epl-v10.html +*/ +package org.opendaylight.controller.topologymanager.shell; + +import org.apache.felix.gogo.commands.Command; +import org.apache.karaf.shell.console.OsgiCommandSupport; +import org.opendaylight.controller.topologymanager.ITopologyManagerShell; + +@Command(scope = "topologymanager", name = "printNodeEdges", description="Prints node edges") +public class PrintNodeEdges extends OsgiCommandSupport{ + private ITopologyManagerShell topologyManager; + + @Override + protected Object doExecute() throws Exception { + for(String p : topologyManager.printNodeEdges()) { + System.out.println(p); + } + return null; + } + + public void setTopologyManager(ITopologyManagerShell topologyManager){ + this.topologyManager = topologyManager; + } +}