Class DefaultGraphDescription

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultGraphDescription​(long nanos, long millis, java.lang.Iterable<Device> devices, java.lang.Iterable<Link> links, SparseAnnotations... annotations)
      Creates a minimal topology graph description to allow core to construct and process the topology graph.
    • Constructor Detail

      • DefaultGraphDescription

        public DefaultGraphDescription​(long nanos,
                                       long millis,
                                       java.lang.Iterable<Device> devices,
                                       java.lang.Iterable<Link> links,
                                       SparseAnnotations... annotations)
        Creates a minimal topology graph description to allow core to construct and process the topology graph.
        Parameters:
        nanos - time in nanos of when the topology description was created
        millis - time in millis of when the topology description was created
        devices - collection of infrastructure devices
        links - collection of infrastructure links
        annotations - optional key/value annotations map
    • Method Detail

      • timestamp

        public long timestamp()
        Description copied from interface: GraphDescription
        Returns the creation timestamp of the graph description. This is expressed in system nanos to allow proper sequencing.
        Specified by:
        timestamp in interface GraphDescription
        Returns:
        graph description creation timestamp
      • creationTime

        public long creationTime()
        Description copied from interface: GraphDescription
        Returns the creation timestamp of the graph description. This is expressed in system millis to allow proper date and time formatting.
        Specified by:
        creationTime in interface GraphDescription
        Returns:
        graph description creation timestamp in millis
      • edges

        public com.google.common.collect.ImmutableSet<TopologyEdge> edges()
        Description copied from interface: GraphDescription
        Returns the set of topology graph edges.
        Specified by:
        edges in interface GraphDescription
        Returns:
        set of graph edges