Example #1
0
 public DataNode(DataNode parent, byte[] data, long acl, StatPersisted stat)
 {
     this.parent = parent;
     this.data   = data;
     this.acl    = acl;
     this.stat   = stat;
 }
Example #2
0
 public DataNode(DataNode parent, byte[] data, long acl, StatPersisted stat)
 {
     this.parent = parent;
     this.data   = data;
     this.acl    = acl;
     this.stat   = stat;
     children    = new HashSet <string>();
 }
Example #3
0
 public void Deserialize(IInputArchive archive, string tag)
 {
     lock (locker)
     {
         archive.StartRecord("node");
         data = archive.ReadBuffer("data");
         acl  = archive.ReadLong("acl");
         stat = new StatPersisted();
         stat.Deserialize(archive, "statpersisted");
         archive.EndRecord("node");
     }
 }
Example #4
0
 public void Deserialize(IInputArchive archive, string tag)
 {
     try
     {
         SpinWait.SpinUntil(() => Interlocked.CompareExchange(ref lockedInt, 1, 0) == 0);
         archive.StartRecord("node");
         data = archive.ReadBuffer("data");
         acl  = archive.ReadLong("acl");
         stat = new StatPersisted();
         stat.Deserialize(archive, "statpersisted");
         archive.EndRecord("node");
     }
     finally
     {
         Interlocked.Exchange(ref lockedInt, 0);
     }
 }
Example #5
0
 public void Deserialize(IInputArchive archive, string tag)
 {
     try
     {
         SpinWait.SpinUntil(() => Interlocked.CompareExchange(ref lockedInt, 1, 0) == 0);
         archive.StartRecord("node");
         data = archive.ReadBuffer("data");
         acl = archive.ReadLong("acl");
         stat = new StatPersisted();
         stat.Deserialize(archive, "statpersisted");
         archive.EndRecord("node");
     }
     finally
     {
         Interlocked.Exchange(ref lockedInt, 0);
     }
 }
Example #6
0
 public DataNode(DataNode parent, byte[] data, long acl, StatPersisted stat)
 {
     this.parent = parent;
     this.data = data;
     this.acl = acl;
     this.stat = stat;
     children = new HashSet<string>();
 }