Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change 
notification.

The following page has been changed by JeanDanielCryans:
http://wiki.apache.org/hadoop/Hbase/ZookeeperIntegration

The comment on the change is:
Added details about interface, HBase implementation

------------------------------------------------------------------------------
  
  == The Interface ==
  
- Soon...
+ The interface must support macro operations so that dirty implementation 
details are hidden. 
+ 
+ The current interface would be : 
+ 
+ {{{
+ ...
+ 
+ public interface DistributedLockInterface extends VersionedProtocol {
+ 
+   public static final long versionID = 1L;
+ 
+   /**
+    * Used to bootstrap. Used to find a tablet location when a client doesn't 
have
+    * META information
+    * 
+    * @return root region information
+    */
+   public byte[] getRootRegion() throws IOException;
+ 
+   /**
+    * Used by regionserver at startup or by master if a regionserver is down
+    * 
+    * @param filename File name of the lock
+    */
+   public void acquireLock(String filename) throws IOException;
+ 
+   /**
+    * Used by regionserver at shutdown or by master if a regionserver is down
+    * 
+    * @param filename File name of the lock
+    */
+   public void releaseLock(String filename) throws IOException;
+ 
+   /**
+    * Used by master at startup
+    */
+   public void acquireMasterLock() throws IOException;
+ 
+   /**
+    * Used by master at startup to discover live servers
+    * @return All the addresses of the region servers
+    */
+   public HServerAddress[] getLiveRegionServers() throws IOException;
+ 
+ }
+ 
+ }}}
+ 
  
  
  == The HBase Implementation ==
  
- Soon...
+ This implementation of the interface would be master-based, this means that 
it doesn't support master failover and won't provide better availability. 
  
+ See [https://issues.apache.org/jira/browse/HBASE-708 HBASE-708]
  
  == The ZK Integration ==
  

Reply via email to