Class PathListCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, CodecContext

    public class PathListCommand
    extends TopologyCommand
    Lists all shortest-paths paths between the specified source and destination devices.
    • Constructor Detail

      • PathListCommand

        public PathListCommand()
    • Method Detail

      • json

        public static com.fasterxml.jackson.databind.JsonNode json​(AbstractShellCommand context,
                                                                   java.lang.Iterable<? extends Path> paths)
        Produces a JSON array containing the specified paths.
        Parameters:
        context - context to use for looking up codecs
        paths - collection of paths
        Returns:
        JSON array
      • pathString

        protected java.lang.String pathString​(Path path)
        Produces a formatted string representing the specified path.
        Parameters:
        path - network path
        Returns:
        formatted path string