org.apache.hadoop.hbase.zookeeper
Class ZKUtil.ZKUtilOp

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp
Direct Known Subclasses:
ZKUtil.ZKUtilOp.CreateAndFailSilent, ZKUtil.ZKUtilOp.DeleteNodeFailSilent, ZKUtil.ZKUtilOp.SetData
Enclosing class:
ZKUtil

public abstract static class ZKUtil.ZKUtilOp
extends Object

Represents an action taken by ZKUtil, e.g. createAndFailSilent. These actions are higher-level than ZKOp actions, which represent individual actions in the ZooKeeper API, like create.


Nested Class Summary
static class ZKUtil.ZKUtilOp.CreateAndFailSilent
          ZKUtilOp representing createAndFailSilent in ZooKeeper (attempt to create node, ignore error if already exists)
static class ZKUtil.ZKUtilOp.DeleteNodeFailSilent
          ZKUtilOp representing deleteNodeFailSilent in ZooKeeper (attempt to delete node, ignore error if node doesn't exist)
static class ZKUtil.ZKUtilOp.SetData
          ZKUtilOp representing setData in ZooKeeper
 
Method Summary
static ZKUtil.ZKUtilOp createAndFailSilent(String path, byte[] data)
           
static ZKUtil.ZKUtilOp deleteNodeFailSilent(String path)
           
 String getPath()
           
static ZKUtil.ZKUtilOp setData(String path, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAndFailSilent

public static ZKUtil.ZKUtilOp createAndFailSilent(String path,
                                                  byte[] data)
Returns:
a createAndFailSilent ZKUtilOp

deleteNodeFailSilent

public static ZKUtil.ZKUtilOp deleteNodeFailSilent(String path)
Returns:
a deleteNodeFailSilent ZKUtilOP

setData

public static ZKUtil.ZKUtilOp setData(String path,
                                      byte[] data)
Returns:
a setData ZKUtilOp

getPath

public String getPath()
Returns:
path to znode where the ZKOp will occur


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.