Review Board 1.7.22


ZOOKEEPER-1407 Support GetData and GetChildren in Multi

Review Request #4264 - Created March 9, 2012 and updated

Ted Yu
TRUNK
Reviewers
zookeeper
zookeeper
There is use case where GetData and GetChildren would participate in Multi.

 
/src/zookeeper.jute
Revision 1298626 New Change
[20] 93 lines
[+20]
94
    }
94
    }
95
    class GetDataRequest {
95
    class GetDataRequest {
96
        ustring path;
96
        ustring path;
97
        boolean watch;
97
        boolean watch;
98
    }
98
    }
Moved from 183

    
   
99
    class GetDataResponse {
Moved from 184

    
   
100
        buffer data;
Moved from 185

    
   
101
        org.apache.zookeeper.data.Stat stat;
Moved from 186

    
   
102
    }
99
    class SetDataRequest {
103
    class SetDataRequest {
100
        ustring path;
104
        ustring path;
101
        buffer data;
105
        buffer data;
102
        int version;
106
        int version;
103
    }
107
    }
[+20] [20] 74 lines
[+20]
178
        boolean watch;
182
        boolean watch;
179
    }
183
    }
180
    class ExistsResponse {
184
    class ExistsResponse {
181
        org.apache.zookeeper.data.Stat stat;
185
        org.apache.zookeeper.data.Stat stat;
182
    }
186
    }
183
    class GetDataResponse {
Moved to 99

   
184
        buffer data;
Moved to 100

   
185
        org.apache.zookeeper.data.Stat stat;
Moved to 101

   
186
    }
Moved to 102

   
187
    class GetChildrenResponse {
187
    class GetChildrenResponse {
188
        vector<ustring> children;
188
        vector<ustring> children;
189
    }
189
    }
190
    class GetChildren2Response {
190
    class GetChildren2Response {
191
        vector<ustring> children;
191
        vector<ustring> children;
[+20] [20] 48 lines
[+20]
240
        int parentCVersion;
240
        int parentCVersion;
241
    }
241
    }
242
    class DeleteTxn {
242
    class DeleteTxn {
243
        ustring path;
243
        ustring path;
244
    }
244
    }

    
   
245
    class GetDataTxn {

    
   
246
        ustring path;

    
   
247
    }

    
   
248
    class GetChildrenTxn {

    
   
249
        ustring path;

    
   
250
    }
245
    class SetDataTxn {
251
    class SetDataTxn {
246
        ustring path;
252
        ustring path;
247
        buffer data;
253
        buffer data;
248
        int version;
254
        int version;
249
    }
255
    }
[+20] [20] 27 lines
/src/java/main/org/apache/zookeeper/Op.java
Revision 1298626 New Change
 
/src/java/main/org/apache/zookeeper/server/DataTree.java
Revision 1298626 New Change
 
/src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java
Revision 1298626 New Change
 
/src/java/main/org/apache/zookeeper/server/util/SerializeUtils.java
Revision 1298626 New Change
 
  1. /src/zookeeper.jute: Loading...
  2. /src/java/main/org/apache/zookeeper/Op.java: Loading...
  3. /src/java/main/org/apache/zookeeper/server/DataTree.java: Loading...
  4. /src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java: Loading...
  5. /src/java/main/org/apache/zookeeper/server/util/SerializeUtils.java: Loading...