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.RecordThis 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>aclStatPersistedV1stat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyStat(Stat to)voiddeserialize(org.apache.jute.InputArchive archive, java.lang.String tag)java.util.HashSet<java.lang.String>getChildren()convenience methods to get the childrenvoidserialize(org.apache.jute.OutputArchive archive, java.lang.String tag)voidsetChildren(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:
deserializein 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:
serializein interfaceorg.apache.jute.Record- Throws:
java.io.IOException
-
-