You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by st...@apache.org on 2009/04/26 20:57:00 UTC
svn commit: r768785 -
/incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift
Author: stroucki
Date: Sun Apr 26 20:57:00 2009
New Revision: 768785
URL: http://svn.apache.org/viewvc?rev=768785&view=rev
Log:
Forgot to svn add layoutlocality.thrift
Added:
incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift
Added: incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift?rev=768785&view=auto
==============================================================================
--- incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift (added)
+++ incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift Sun Apr 26 20:57:00 2009
@@ -0,0 +1,25 @@
+struct BlockLocation {
+ list<string> hosts, // hostnames of data nodes
+ list<i32> ports, // ports for data nodes
+ list<string> names, // hostname:port of data nodes
+ i64 blocknum,
+ i64 offset,
+ i64 length
+}
+
+struct Pathname {
+ string pathname
+}
+
+exception FileNotFoundException {
+ string message
+}
+
+service layoutservice {
+ list <BlockLocation> getFileBlockLocations(1:Pathname path, 2:i64 offset, 3:i64 length)
+ throws (1:FileNotFoundException ouch),
+}
+
+service localityservice {
+ list <list<double>> getHopCountMatrix(1:list<string> sourceHosts, 2:list<string> destHosts),
+}