incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [10/12] Modified blur service and added the snapshot methods, generated the code, hooked the controller and shard servers for the new methods and stubbed the BlurNRTIndex
Date Sat, 17 Aug 2013 16:55:50 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d512053c/distribution/src/main/scripts/interface/Blur.thrift
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/Blur.thrift b/distribution/src/main/scripts/interface/Blur.thrift
index c5a4cb3..fad3727 100644
--- a/distribution/src/main/scripts/interface/Blur.thrift
+++ b/distribution/src/main/scripts/interface/Blur.thrift
@@ -1011,6 +1011,20 @@ service Blur {
     1:set<string> metrics
   ) throws (1:BlurException ex)
 
+  /**
+   * Creates a snapshot for the table with the given name
+   */
+  void createSnapshot(1:string table, 2:string name) throws (1:BlurException ex)
+  
+  /**
+   * Removes a previous snapshot(identified by name) of the table
+   */
+  void removeSnapshot(1:string table, 2:string name) throws (1:BlurException ex)
+  
+  /**
+   * Returns a map where the key is the shard, and the list is the snapshots within that
shard
+   */
+  map<string,list<string>> listSnapshots(1:string table) throws (1:BlurException
ex)
 }
 
 

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d512053c/distribution/src/main/scripts/interface/gen-html/Blur.html
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-html/Blur.html b/distribution/src/main/scripts/interface/gen-html/Blur.html
index fb55bb9..2c48747 100644
--- a/distribution/src/main/scripts/interface/gen-html/Blur.html
+++ b/distribution/src/main/scripts/interface/gen-html/Blur.html
@@ -15,12 +15,14 @@
 <li><a href="Blur.html#Fn_Blur_cancelQuery">cancelQuery</a></li>
 <li><a href="Blur.html#Fn_Blur_configuration">configuration</a></li>
 <li><a href="Blur.html#Fn_Blur_controllerServerList">controllerServerList</a></li>
+<li><a href="Blur.html#Fn_Blur_createSnapshot">createSnapshot</a></li>
 <li><a href="Blur.html#Fn_Blur_createTable">createTable</a></li>
 <li><a href="Blur.html#Fn_Blur_describe">describe</a></li>
 <li><a href="Blur.html#Fn_Blur_disableTable">disableTable</a></li>
 <li><a href="Blur.html#Fn_Blur_enableTable">enableTable</a></li>
 <li><a href="Blur.html#Fn_Blur_fetchRow">fetchRow</a></li>
 <li><a href="Blur.html#Fn_Blur_isInSafeMode">isInSafeMode</a></li>
+<li><a href="Blur.html#Fn_Blur_listSnapshots">listSnapshots</a></li>
 <li><a href="Blur.html#Fn_Blur_metrics">metrics</a></li>
 <li><a href="Blur.html#Fn_Blur_mutate">mutate</a></li>
 <li><a href="Blur.html#Fn_Blur_mutateBatch">mutateBatch</a></li>
@@ -30,6 +32,7 @@
 <li><a href="Blur.html#Fn_Blur_queryStatusById">queryStatusById</a></li>
 <li><a href="Blur.html#Fn_Blur_queryStatusIdList">queryStatusIdList</a></li>
 <li><a href="Blur.html#Fn_Blur_recordFrequency">recordFrequency</a></li>
+<li><a href="Blur.html#Fn_Blur_removeSnapshot">removeSnapshot</a></li>
 <li><a href="Blur.html#Fn_Blur_removeTable">removeTable</a></li>
 <li><a href="Blur.html#Fn_Blur_schema">schema</a></li>
 <li><a href="Blur.html#Fn_Blur_shardClusterList">shardClusterList</a></li>
@@ -761,4 +764,18 @@ string and text field types.
 <br/><br/><h4 id="Parameters_Blur_metrics">Parameters</h4>
 <table class="table-bordered table-striped table-condensed"><thead><th>Name</th><th>Description</th></thead><tr><td>metrics</td><td>the
names of the metrics to return.  If null all are returned.
 </td></tr>
-</table></div></div></body></html>
+</table></div><div class="definition"><h4 id="Fn_Blur_createSnapshot">Function:
Blur.createSnapshot</h4>
+<pre><code>void</code> createSnapshot(<code>string</code> table,
+                    <code>string</code> name)
+    throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
+</pre>Creates a snapshot for the table with the given name
+<br/></div><div class="definition"><h4 id="Fn_Blur_removeSnapshot">Function:
Blur.removeSnapshot</h4>
+<pre><code>void</code> removeSnapshot(<code>string</code> table,
+                    <code>string</code> name)
+    throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
+</pre>Removes a previous snapshot(identified by name) of the table
+<br/></div><div class="definition"><h4 id="Fn_Blur_listSnapshots">Function:
Blur.listSnapshots</h4>
+<pre><code>map&lt;<code>string</code>, <code>list&lt;<code>string</code>&gt;</code>&gt;</code>
listSnapshots(<code>string</code> table)
+    throws <code><a href="Blur.html#Struct_BlurException">BlurException</a></code>
+</pre>Returns a map where the key is the shard, and the list is the snapshots within
that shard
+<br/></div></div></body></html>

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d512053c/distribution/src/main/scripts/interface/gen-html/index.html
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-html/index.html b/distribution/src/main/scripts/interface/gen-html/index.html
index b24e009..b08b52b 100644
--- a/distribution/src/main/scripts/interface/gen-html/index.html
+++ b/distribution/src/main/scripts/interface/gen-html/index.html
@@ -11,12 +11,14 @@
 <li><a href="Blur.html#Fn_Blur_cancelQuery">cancelQuery</a></li>
 <li><a href="Blur.html#Fn_Blur_configuration">configuration</a></li>
 <li><a href="Blur.html#Fn_Blur_controllerServerList">controllerServerList</a></li>
+<li><a href="Blur.html#Fn_Blur_createSnapshot">createSnapshot</a></li>
 <li><a href="Blur.html#Fn_Blur_createTable">createTable</a></li>
 <li><a href="Blur.html#Fn_Blur_describe">describe</a></li>
 <li><a href="Blur.html#Fn_Blur_disableTable">disableTable</a></li>
 <li><a href="Blur.html#Fn_Blur_enableTable">enableTable</a></li>
 <li><a href="Blur.html#Fn_Blur_fetchRow">fetchRow</a></li>
 <li><a href="Blur.html#Fn_Blur_isInSafeMode">isInSafeMode</a></li>
+<li><a href="Blur.html#Fn_Blur_listSnapshots">listSnapshots</a></li>
 <li><a href="Blur.html#Fn_Blur_metrics">metrics</a></li>
 <li><a href="Blur.html#Fn_Blur_mutate">mutate</a></li>
 <li><a href="Blur.html#Fn_Blur_mutateBatch">mutateBatch</a></li>
@@ -26,6 +28,7 @@
 <li><a href="Blur.html#Fn_Blur_queryStatusById">queryStatusById</a></li>
 <li><a href="Blur.html#Fn_Blur_queryStatusIdList">queryStatusIdList</a></li>
 <li><a href="Blur.html#Fn_Blur_recordFrequency">recordFrequency</a></li>
+<li><a href="Blur.html#Fn_Blur_removeSnapshot">removeSnapshot</a></li>
 <li><a href="Blur.html#Fn_Blur_removeTable">removeTable</a></li>
 <li><a href="Blur.html#Fn_Blur_schema">schema</a></li>
 <li><a href="Blur.html#Fn_Blur_shardClusterList">shardClusterList</a></li>


Mime
View raw message