Review Board 1.7.22


Switch RPC call envelope/headers to PBs

Review Request #4096 - Created Feb. 28, 2012 and updated

Devaraj Das
trunk
HBASE-5451
Reviewers
stack, tsuna
hbase
Switch RPC call envelope/headers to PBs

 
http://svn.apache.org/repos/asf/hbase/trunk/pom.xml
Revision 1294899 New Change
[20] 322 lines
[+20]
323
         These plugins inherit their options from the <reporting> section below. These settings
323
         These plugins inherit their options from the <reporting> section below. These settings
324
         can be overwritten here. -->
324
         can be overwritten here. -->
325
    <pluginManagement>
325
    <pluginManagement>
326
      <plugins>
326
      <plugins>
327
        <plugin>
327
         <plugin>

    
   
328
         <groupId>org.apache.maven.plugins</groupId> 

    
   
329
         <artifactId>maven-antrun-plugin</artifactId>

    
   
330
         <executions> 

    
   
331
              <execution>

    
   
332
                <id>compile-proto</id>

    
   
333
                <phase>generate-sources</phase>

    
   
334
                <goals>

    
   
335
                  <goal>run</goal>

    
   
336
                </goals>

    
   
337
                <configuration>

    
   
338
                  <target>

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

    
   
340
                    PROTO_DIR=src/main/proto

    
   
341
                    JAVA_DIR=target/generated-sources/java

    
   
342
                    which cygpath 2> /dev/null

    
   
343
                    if [ $? = 1 ]; then

    
   
344
                      IS_WIN=false

    
   
345
                    else

    
   
346
                      IS_WIN=true

    
   
347
                      WIN_PROTO_DIR=`cygpath --windows $PROTO_DIR`

    
   
348
                      WIN_JAVA_DIR=`cygpath --windows $JAVA_DIR`

    
   
349
                    fi

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

    
   
351
                    for PROTO_FILE in `ls $PROTO_DIR/*.proto 2> /dev/null`

    
   
352
                    do

    
   
353
                        if [ "$IS_WIN" = "true" ]; then

    
   
354
                          protoc -I$WIN_PROTO_DIR --java_out=$WIN_JAVA_DIR $PROTO_FILE

    
   
355
                        else

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

    
   
357
                        fi

    
   
358
                    done

    
   
359
                </echo>

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

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

    
   
362
                </exec>

    
   
363
              </target>

    
   
364
            </configuration>

    
   
365
          </execution>

    
   
366
        </executions>

    
   
367
        </plugin>

    
   
368
        <plugin>
328
          <artifactId>maven-compiler-plugin</artifactId>
369
          <artifactId>maven-compiler-plugin</artifactId>
329
          <configuration>
370
          <configuration>
330
            <source>${compileSource}</source>
371
            <source>${compileSource}</source>
331
            <target>${compileSource}</target>
372
            <target>${compileSource}</target>
332
            <showWarnings>true</showWarnings>
373
            <showWarnings>true</showWarnings>
[+20] [20] 1819 lines
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/DataOutputOutputStream.java
Revision 1294899 New Change
 
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HBaseClient.java
Revision 1294899 New Change
 
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java
Revision 1294899 New Change
 
http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/security/User.java
Revision 1294899 New Change
 
http://svn.apache.org/repos/asf/hbase/trunk/src/main/proto/RPCMessageProto.proto
New File
 
  1. http://svn.apache.org/repos/asf/hbase/trunk/pom.xml: Loading...
  2. http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/DataOutputOutputStream.java: Loading...
  3. http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HBaseClient.java: Loading...
  4. http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java: Loading...
  5. http://svn.apache.org/repos/asf/hbase/trunk/src/main/java/org/apache/hadoop/hbase/security/User.java: Loading...
  6. http://svn.apache.org/repos/asf/hbase/trunk/src/main/proto/RPCMessageProto.proto: Loading...