org.apache.zookeeper.server.upgrade
Class DataNodeV1
java.lang.Object
org.apache.zookeeper.server.upgrade.DataNodeV1
- All Implemented Interfaces:
- Record
public class DataNodeV1
- extends Object
- implements Record
This class contains the data for a node in the data tree.
A data node contains a reference to its parent, a byte array as its data, an
array of ACLs, a stat object, and a set of its children's paths.
Field Summary |
org.apache.zookeeper.data.StatPersistedV1 |
stat
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stat
public org.apache.zookeeper.data.StatPersistedV1 stat
setChildren
public void setChildren(HashSet<String> children)
- convenience method for creating DataNode
fully
- Parameters:
children
-
getChildren
public HashSet<String> getChildren()
- convenience methods to get the children
- Returns:
- the children of this datanode
copyStat
public void copyStat(org.apache.zookeeper.data.Stat to)
deserialize
public void deserialize(InputArchive archive,
String tag)
throws IOException
- Specified by:
deserialize
in interface Record
- Throws:
IOException
serialize
public void serialize(OutputArchive archive,
String tag)
throws IOException
- Specified by:
serialize
in interface Record
- Throws:
IOException