ONOS-400 Topology creation and up time formatting fixes
Change-Id: Iaf6d4dbbc1c7eaae9465a2d931d40f07a75ad07d
diff --git a/core/api/src/main/java/org/onosproject/net/topology/GraphDescription.java b/core/api/src/main/java/org/onosproject/net/topology/GraphDescription.java
index 3a243df..cc22c33 100644
--- a/core/api/src/main/java/org/onosproject/net/topology/GraphDescription.java
+++ b/core/api/src/main/java/org/onosproject/net/topology/GraphDescription.java
@@ -15,9 +15,10 @@
*/
package org.onosproject.net.topology;
-import com.google.common.collect.ImmutableSet;
import org.onosproject.net.Description;
+import com.google.common.collect.ImmutableSet;
+
/**
* Describes attribute(s) of a network graph.
*/
@@ -32,6 +33,14 @@
long timestamp();
/**
+ * Returns the creation timestamp of the graph description. This is
+ * expressed in system millis to allow proper date and time formatting.
+ *
+ * @return graph description creation timestamp in millis
+ */
+ long creationTime();
+
+ /**
* Returns the set of topology graph vertexes.
*
* @return set of graph vertexes
@@ -46,4 +55,3 @@
ImmutableSet<TopologyEdge> edges();
}
-