Class DataNodeV1
- java.lang.Object
-
- org.apache.zookeeper.server.upgrade.DataNodeV1
-
- All Implemented Interfaces:
org.apache.jute.Record
public class DataNodeV1 extends java.lang.Object implements org.apache.jute.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
Fields Modifier and Type Field Description java.util.List<ACL>
acl
StatPersistedV1
stat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyStat(Stat to)
void
deserialize(org.apache.jute.InputArchive archive, java.lang.String tag)
java.util.HashSet<java.lang.String>
getChildren()
convenience methods to get the childrenvoid
serialize(org.apache.jute.OutputArchive archive, java.lang.String tag)
void
setChildren(java.util.HashSet<java.lang.String> children)
convenience method for creating DataNode fully
-
-
-
Field Detail
-
acl
public java.util.List<ACL> acl
-
stat
public StatPersistedV1 stat
-
-
Method Detail
-
setChildren
public void setChildren(java.util.HashSet<java.lang.String> children)
convenience method for creating DataNode fully- Parameters:
children
-
-
getChildren
public java.util.HashSet<java.lang.String> getChildren()
convenience methods to get the children- Returns:
- the children of this datanode
-
copyStat
public void copyStat(Stat to)
-
deserialize
public void deserialize(org.apache.jute.InputArchive archive, java.lang.String tag) throws java.io.IOException
- Specified by:
deserialize
in interfaceorg.apache.jute.Record
- Throws:
java.io.IOException
-
serialize
public void serialize(org.apache.jute.OutputArchive archive, java.lang.String tag) throws java.io.IOException
- Specified by:
serialize
in interfaceorg.apache.jute.Record
- Throws:
java.io.IOException
-
-