Exemple #1
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteBuffer(Data, "data");
     a_.WriteRecord(Stat, "stat");
     a_.EndRecord(this, tag);
 }
Exemple #2
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(Type, "type");
     a_.WriteBuffer(Data, "data");
     a_.EndRecord(this, tag);
 }
Exemple #3
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteString(Scheme,"scheme");
   a_.WriteBuffer(Auth,"auth");
   a_.EndRecord(this,tag);
 }
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteString(Path,"path");
   a_.WriteBuffer(Data,"data");
   a_.WriteInt(Version,"version");
   a_.EndRecord(this,tag);
 }
Exemple #5
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(Rc, "rc");
     a_.WriteInt(Op, "op");
     a_.WriteBuffer(Response, "response");
     a_.EndRecord(this, tag);
 }
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteString(Path, "path");
     a_.WriteBuffer(Data, "data");
     a_.WriteInt(Version, "version");
     a_.EndRecord(this, tag);
 }
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(ProtocolVersion,"protocolVersion");
   a_.WriteInt(TimeOut,"timeOut");
   a_.WriteLong(SessionId,"sessionId");
   a_.WriteBuffer(Passwd,"passwd");
   a_.EndRecord(this,tag);
 }
Exemple #8
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(Type, "type");
     a_.WriteString(Scheme, "scheme");
     a_.WriteBuffer(Auth, "auth");
     a_.EndRecord(this, tag);
 }
Exemple #9
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(ProtocolVersion, "protocolVersion");
     a_.WriteInt(TimeOut, "timeOut");
     a_.WriteLong(SessionId, "sessionId");
     a_.WriteBuffer(Passwd, "passwd");
     a_.EndRecord(this, tag);
 }
Exemple #10
0
        public void Serialize(IOutputArchive a_, String tag)
        {
            a_.StartRecord(this, tag);
#warning code here
            a_.WriteBuffer(Remark, "data");
            //a_.WriteBuffer(Remark, "remark");
            a_.WriteRecord(Stat, "stat");
            a_.EndRecord(this, tag);
        }
Exemple #11
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(this.ProtocolVersion, "protocolVersion");
     a_.WriteLong(this.LastZxidSeen, "lastZxidSeen");
     a_.WriteInt(this.TimeOut, "timeOut");
     a_.WriteLong(this.SessionId, "sessionId");
     a_.WriteBuffer(this.Passwd, "passwd");
     a_.EndRecord(this, tag);
 }
 public void Serialize(IOutputArchive archive, string tag)
 {
     lock (locker)
     {
         archive.StartRecord(this, "node");
         archive.WriteBuffer(data, "data");
         archive.WriteLong(acl, "acl");
         stat.Serialize(archive, "statpersisted");
         archive.EndRecord(this, "node");
     }
 }
Exemple #13
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteString(Path,"path");
   a_.WriteBuffer(Data,"data");
   {
     a_.StartVector(Acl,"acl");
     if (Acl!= null) {          foreach(var e1 in Acl) {
   a_.WriteRecord(e1,"e1");
         }
     }
     a_.EndVector(Acl,"acl");
   }
   a_.WriteInt(Flags,"flags");
   a_.EndRecord(this,tag);
 }
Exemple #14
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteLong(Zxid,"zxid");
   a_.WriteBuffer(Data,"data");
   {
     a_.StartVector(Authinfo,"authinfo");
     if (Authinfo!= null) {          foreach(var e1 in Authinfo) {
   a_.WriteRecord(e1,"e1");
         }
     }
     a_.EndVector(Authinfo,"authinfo");
   }
   a_.EndRecord(this,tag);
 }
Exemple #15
0
 public void Serialize(IOutputArchive archive, string tag)
 {
     try
     {
         SpinWait.SpinUntil(() => Interlocked.CompareExchange(ref lockedInt, 1, 0) == 0);
         archive.StartRecord(this, "node");
         archive.WriteBuffer(data, "data");
         archive.WriteLong(acl, "acl");
         stat.Serialize(archive, "statpersisted");
         archive.EndRecord(this, "node");
     }
     finally
     {
         Interlocked.Exchange(ref lockedInt, 0);
     }
 }
Exemple #16
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteString(this.Path, "path");
     a_.WriteBuffer(this.Data, "data");
     a_.StartVector <ACL>(this.Acl, "acl");
     if (this.Acl != null)
     {
         foreach (ACL acl in this.Acl)
         {
             a_.WriteRecord(acl, "e1");
         }
     }
     a_.EndVector <ACL>(this.Acl, "acl");
     a_.WriteInt(this.Flags, "flags");
     a_.EndRecord(this, tag);
 }
Exemple #17
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord((IRecord)this, tag);
     a_.WriteString(this.Path, "path");
     a_.WriteBuffer(this.Data, "data");
     a_.StartVector <ACL>(this.Acl, "acl");
     if (this.Acl != null)
     {
         foreach (ACL acl in this.Acl)
         {
             a_.WriteRecord((IRecord)acl, "e1");
         }
     }
     a_.EndVector <ACL>(this.Acl, "acl");
     a_.WriteBool(this.Ephemeral, "ephemeral");
     a_.EndRecord((IRecord)this, tag);
 }
Exemple #18
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord((IRecord)this, tag);
     a_.WriteInt(this.Type, "type");
     a_.WriteLong(this.Zxid, "zxid");
     a_.WriteBuffer(this.Data, "data");
     a_.StartVector <ZKId>(this.Authinfo, "authinfo");
     if (this.Authinfo != null)
     {
         foreach (ZKId zkId in this.Authinfo)
         {
             a_.WriteRecord((IRecord)zkId, "e1");
         }
     }
     a_.EndVector <ZKId>(this.Authinfo, "authinfo");
     a_.EndRecord((IRecord)this, tag);
 }
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteString(Path, "path");
     a_.WriteBuffer(Data, "data");
     {
         a_.StartVector(Acl, "acl");
         if (Acl != null)
         {
             foreach (var e1 in Acl)
             {
                 a_.WriteRecord(e1, "e1");
             }
         }
         a_.EndVector(Acl, "acl");
     }
     a_.WriteInt(Flags, "flags");
     a_.EndRecord(this, tag);
 }
Exemple #20
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(Type, "type");
     a_.WriteLong(Zxid, "zxid");
     a_.WriteBuffer(Data, "data");
     {
         a_.StartVector(Authinfo, "authinfo");
         if (Authinfo != null)
         {
             foreach (var e1 in Authinfo)
             {
                 a_.WriteRecord(e1, "e1");
             }
         }
         a_.EndVector(Authinfo, "authinfo");
     }
     a_.EndRecord(this, tag);
 }
Exemple #21
0
 public void Serialize(IOutputArchive archive, string tag)
 {
     lock (locker)
     {
         archive.StartRecord(this, "node");
         archive.WriteBuffer(data, "data");
         archive.WriteLong(acl, "acl");
         stat.Serialize(archive, "statpersisted");
         archive.EndRecord(this, "node");
     }
 }
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteBuffer(Token, "token");
     a_.EndRecord(this, tag);
 }
Exemple #23
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteBuffer(Token,"token");
   a_.EndRecord(this,tag);
 }
Exemple #24
0
 public void Serialize(IOutputArchive archive, string tag)
 {
     try
     {
         SpinWait.SpinUntil(() => Interlocked.CompareExchange(ref lockedInt, 1, 0) == 0);
         archive.StartRecord(this, "node");
         archive.WriteBuffer(data, "data");
         archive.WriteLong(acl, "acl");
         stat.Serialize(archive, "statpersisted");
         archive.EndRecord(this, "node");
     }
     finally
     {
         Interlocked.Exchange(ref lockedInt, 0);
     }
 }
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteBuffer(Data,"data");
   a_.WriteRecord(Stat,"stat");
   a_.EndRecord(this,tag);
 }
Exemple #26
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteBuffer(Data,"data");
   a_.EndRecord(this,tag);
 }