ml.shifu.guagua.coordinator.zk
类 GuaguaZooKeeper.PathStat

java.lang.Object
  继承者 ml.shifu.guagua.coordinator.zk.GuaguaZooKeeper.PathStat
包容类:
GuaguaZooKeeper

public static class GuaguaZooKeeper.PathStat
extends Object

Data structure for handling the output of createOrSet()


构造方法摘要
GuaguaZooKeeper.PathStat(String path, org.apache.zookeeper.data.Stat stat)
          Put in results from createOrSet()
 
方法摘要
 String getPath()
          Get the path of the created znode if it was created.
 org.apache.zookeeper.data.Stat getStat()
          Get the stat of the set znode if set
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GuaguaZooKeeper.PathStat

public GuaguaZooKeeper.PathStat(String path,
                                org.apache.zookeeper.data.Stat stat)
Put in results from createOrSet()

参数:
path - Path to created znode (or null)
stat - Stat from set znode (if set)
方法详细信息

getPath

public String getPath()
Get the path of the created znode if it was created.

返回:
Path of created znode or null if not created

getStat

public org.apache.zookeeper.data.Stat getStat()
Get the stat of the set znode if set

返回:
Stat of set znode or null if not set


Copyright © 2014. All Rights Reserved.