public class DefaultGraphDescription extends AbstractDescription implements GraphDescription
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
long |
creationTime()
Returns the creation timestamp of the graph description.
|
com.google.common.collect.ImmutableSet<TopologyEdge> |
edges()
Returns the set of topology graph edges.
|
long |
timestamp()
Returns the creation timestamp of the graph description.
|
com.google.common.collect.ImmutableSet<TopologyVertex> |
vertexes()
Returns the set of topology graph vertexes.
|
annotations, equals, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
annotations
public DefaultGraphDescription(long nanos, long millis, java.lang.Iterable<Device> devices, java.lang.Iterable<Link> links, SparseAnnotations... annotations)
nanos
- time in nanos of when the topology description was createdmillis
- time in millis of when the topology description was createddevices
- collection of infrastructure deviceslinks
- collection of infrastructure linksannotations
- optional key/value annotations mappublic long timestamp()
GraphDescription
timestamp
in interface GraphDescription
public long creationTime()
GraphDescription
creationTime
in interface GraphDescription
public com.google.common.collect.ImmutableSet<TopologyVertex> vertexes()
GraphDescription
vertexes
in interface GraphDescription
public com.google.common.collect.ImmutableSet<TopologyEdge> edges()
GraphDescription
edges
in interface GraphDescription