Add getAll to DatabaseService

Change-Id: I5fb9d52244b005dfc22e7faaa68341be3c3f3725
diff --git a/core/api/src/main/java/org/onlab/onos/store/service/DatabaseService.java b/core/api/src/main/java/org/onlab/onos/store/service/DatabaseService.java
index a82bd70..b5a56a1 100644
--- a/core/api/src/main/java/org/onlab/onos/store/service/DatabaseService.java
+++ b/core/api/src/main/java/org/onlab/onos/store/service/DatabaseService.java
@@ -1,5 +1,7 @@
 package org.onlab.onos.store.service;
 
+import java.util.Map;
+
 /**
  * Service interface for a strongly consistent and durable
  * key value data store.
@@ -15,6 +17,14 @@
     VersionedValue get(String tableName, String key);
 
     /**
+     * Reads the whole table.
+     *
+     * @param tableName name of the table associated with this operation.
+     * @return the whole table
+     */
+    Map<String, VersionedValue> getAll(String tableName);
+
+    /**
      * Associate the key with a value.
      * @param tableName table name in which this key/value resides.
      * @param key key with which the specified value is to be associated