public class DefaultGraphDescription extends AbstractDescription implements GraphDescription
| Constructor and Description |
|---|
DefaultGraphDescription(long nanos,
long millis,
Iterable<Device> devices,
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, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitannotationspublic DefaultGraphDescription(long nanos,
long millis,
Iterable<Device> devices,
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()
GraphDescriptiontimestamp in interface GraphDescriptionpublic long creationTime()
GraphDescriptioncreationTime in interface GraphDescriptionpublic com.google.common.collect.ImmutableSet<TopologyVertex> vertexes()
GraphDescriptionvertexes in interface GraphDescriptionpublic com.google.common.collect.ImmutableSet<TopologyEdge> edges()
GraphDescriptionedges in interface GraphDescription