incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r768785 - /incubator/tashi/trunk/src/tashi/thrift/layoutlocality.thrift
Date Sun, 26 Apr 2009 20:57:00 GMT
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),
+}



Mime
View raw message