Search in sources :

Example 16 with SetDataRequest

use of org.apache.zookeeper.proto.SetDataRequest in project hbase by apache.

the class ZKUtil method setData.

private static void setData(ZKWatcher zkw, SetData setData) throws KeeperException, KeeperException.NoNodeException {
    SetDataRequest sd = (SetDataRequest) toZooKeeperOp(zkw, setData).toRequestRecord();
    setData(zkw, sd.getPath(), sd.getData(), sd.getVersion());
}
Also used : SetDataRequest(org.apache.zookeeper.proto.SetDataRequest)

Aggregations

SetDataRequest (org.apache.zookeeper.proto.SetDataRequest)16 CreateRequest (org.apache.zookeeper.proto.CreateRequest)10 DeleteRequest (org.apache.zookeeper.proto.DeleteRequest)8 SetACLRequest (org.apache.zookeeper.proto.SetACLRequest)7 CheckVersionRequest (org.apache.zookeeper.proto.CheckVersionRequest)6 IOException (java.io.IOException)5 KeeperException (org.apache.zookeeper.KeeperException)5 BadArgumentsException (org.apache.zookeeper.KeeperException.BadArgumentsException)5 ChangeRecord (org.apache.zookeeper.server.ZooKeeperServer.ChangeRecord)5 CheckVersionTxn (org.apache.zookeeper.txn.CheckVersionTxn)5 CreateSessionTxn (org.apache.zookeeper.txn.CreateSessionTxn)5 DeleteTxn (org.apache.zookeeper.txn.DeleteTxn)5 SetACLTxn (org.apache.zookeeper.txn.SetACLTxn)5 SetDataTxn (org.apache.zookeeper.txn.SetDataTxn)5 TxnHeader (org.apache.zookeeper.txn.TxnHeader)5 ArrayList (java.util.ArrayList)4 Op (org.apache.zookeeper.Op)4 ReconfigRequest (org.apache.zookeeper.proto.ReconfigRequest)4 CreateTxn (org.apache.zookeeper.txn.CreateTxn)4 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3