Review Board 1.7.22


HBASE-5444: Add PB-based calls to HMasterRegionInterface

Review Request #4463 - Created March 23, 2012 and updated

Gregory Chanan
0.96
HBASE-5444
Reviewers
hbase
stack
hbase-git
Adds PB-based calls replacing HMasterRegionInterface.

There are some temporary hacks, e.g. converting PB-based ServerLoad to existing HServerLoad so I didn't need to convert ClusterStatus (which brings in a lot of other changes).  That will be cleaned up in HBASE-5445.
Ran jenkins job, all unit tests passed.
pom.xml
Diff Revision 2 Diff Revision 5 - File Reverted
[20] 762 lines
[+20]
763
      <plugin>
763
      <plugin>
764
        <artifactId>maven-antrun-plugin</artifactId>
764
        <artifactId>maven-antrun-plugin</artifactId>
765
        <version>1.6</version>
765
        <version>1.6</version>
766
        <executions>
766
        <executions>
767
          <execution>
767
          <execution>
768
            <id>compile-proto</id>

   
769
            <phase>generate-sources</phase>

   
770
            <goals>

   
771
              <goal>run</goal>

   
772
            </goals>

   
773
            <configuration>

   
774
              <target>

   
775
                <echo file="target/compile-proto.sh">

   
776
                    UNIX_PROTO_DIR=src/main/proto

   
777
                    JAVA_DIR=target/generated-sources/java

   
778
                    mkdir -p $JAVA_DIR 2> /dev/null

   
779
                    which cygpath 2> /dev/null

   
780
                    if [ $? = 1 ]; then

   
781
                      PROTO_DIR=$UNIX_PROTO_DIR

   
782
                    else

   
783
                      PROTO_DIR=`cygpath --windows $UNIX_PROTO_DIR`

   
784
                      JAVA_DIR=`cygpath --windows $JAVA_DIR`

   
785
                    fi

   
786
                    for PROTO_FILE in `ls $UNIX_PROTO_DIR/*.proto 2> /dev/null`

   
787
                    do

   
788
                      protoc -I$PROTO_DIR --java_out=$JAVA_DIR $PROTO_FILE

   
789
                    done

   
790
                </echo>

   
791
                <exec executable="sh" dir="${basedir}" failonerror="true">

   
792
                  <arg line="target/compile-proto.sh"/>

   
793
                </exec>

   
794
              </target>

   
795
            </configuration>

   
796
          </execution>

   
797
          <execution>

   
798
            <id>arc-setup</id>
768
            <id>arc-setup</id>
799
            <phase>initialize</phase>
769
            <phase>initialize</phase>
800
            <configuration>
770
            <configuration>
801
              <tasks if="arc">
771
              <tasks if="arc">
802
                <get dest="${project.build.directory}/arc-jira.tar.gz"
772
                <get dest="${project.build.directory}/arc-jira.tar.gz"
[+20] [20] 1491 lines
src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
Diff Revision 2 Diff Revision 5
 
src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/ClusterStatus.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/HConstants.java
Diff Revision 2 Diff Revision 5 - File Reverted
 
src/main/java/org/apache/hadoop/hbase/ServerLoad.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
Diff Revision 2 Diff Revision 5 - File Reverted
 
src/main/java/org/apache/hadoop/hbase/ipc/HBaseRpcMetrics.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/ipc/HMasterRegionInterface.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/ipc/Invocation.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/ipc/RegionServerStatusProtocol.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/HMaster.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/MXBean.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/MXBeanImpl.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/MasterDumpServlet.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
Diff Revision 2 Diff Revision 5
 
src/main/java/org/apache/hadoop/hbase/protobuf/MasterRegionInterface.java
Diff Revision 2 Diff Revision 5 - File Reverted
 
src/main/java/org/apache/hadoop/hbase/protobuf/PBHelper.java
Diff Revision 2 Diff Revision 5 - File Reverted
 
  1. pom.xml: Loading...
  2. src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon: Loading...
  3. src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon: Loading...
  4. src/main/java/org/apache/hadoop/hbase/ClusterStatus.java: Loading...
  5. src/main/java/org/apache/hadoop/hbase/HConstants.java: Loading...
  6. src/main/java/org/apache/hadoop/hbase/ServerLoad.java: Loading...
  7. src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java: Loading...
  8. src/main/java/org/apache/hadoop/hbase/ipc/HBaseRpcMetrics.java: Loading...
  9. src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java: Loading...
  10. src/main/java/org/apache/hadoop/hbase/ipc/HMasterRegionInterface.java: Loading...
  11. src/main/java/org/apache/hadoop/hbase/ipc/Invocation.java: Loading...
  12. src/main/java/org/apache/hadoop/hbase/ipc/RegionServerStatusProtocol.java: Loading...
  13. src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java: Loading...
  14. src/main/java/org/apache/hadoop/hbase/master/HMaster.java: Loading...
  15. src/main/java/org/apache/hadoop/hbase/master/MXBean.java: Loading...
  16. src/main/java/org/apache/hadoop/hbase/master/MXBeanImpl.java: Loading...
  17. src/main/java/org/apache/hadoop/hbase/master/MasterDumpServlet.java: Loading...
  18. src/main/java/org/apache/hadoop/hbase/master/ServerManager.java: Loading...
  19. src/main/java/org/apache/hadoop/hbase/protobuf/MasterRegionInterface.java: Loading...
  20. src/main/java/org/apache/hadoop/hbase/protobuf/PBHelper.java: Loading...
This diff has been split across 2 pages: 1 2 >