예제 #1
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteLong(RelativeZxid,"relativeZxid");
   {
     a_.StartVector(DataWatches,"dataWatches");
     if (DataWatches!= null) {          foreach(var e1 in DataWatches) {
       a_.WriteString(e1,e1);
         }
     }
     a_.EndVector(DataWatches,"dataWatches");
   }
   {
     a_.StartVector(ExistWatches,"existWatches");
     if (ExistWatches!= null) {          foreach(var e1 in ExistWatches) {
       a_.WriteString(e1,e1);
         }
     }
     a_.EndVector(ExistWatches,"existWatches");
   }
   {
     a_.StartVector(ChildWatches,"childWatches");
     if (ChildWatches!= null) {          foreach(var e1 in ChildWatches) {
       a_.WriteString(e1,e1);
         }
     }
     a_.EndVector(ChildWatches,"childWatches");
   }
   a_.EndRecord(this,tag);
 }
예제 #2
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteInt(State,"state");
   a_.WriteString(Path,"path");
   a_.EndRecord(this,tag);
 }
예제 #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);
 }
예제 #4
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteBool(Done,"done");
   a_.WriteInt(Err,"err");
   a_.EndRecord(this,tag);
 }
예제 #5
0
 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);
 }
예제 #6
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Xid,"xid");
   a_.WriteLong(Zxid,"zxid");
   a_.WriteInt(Err,"err");
   a_.EndRecord(this,tag);
 }
예제 #7
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Magic,"magic");
   a_.WriteInt(Version,"version");
   a_.WriteLong(Dbid,"dbid");
   a_.EndRecord(this,tag);
 }
예제 #8
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);
 }
예제 #9
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteLong(ClientId,"clientId");
   a_.WriteInt(Cxid,"cxid");
   a_.WriteLong(Zxid,"zxid");
   a_.WriteLong(Time,"time");
   a_.WriteInt(Type,"type");
   a_.EndRecord(this,tag);
 }
예제 #10
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(ProtocolVersion, "protocolVersion");
     a_.WriteLong(LastZxidSeen, "lastZxidSeen");
     a_.WriteInt(TimeOut, "timeOut");
     a_.WriteLong(SessionId, "sessionId");
     a_.WriteBuffer(Passwd, "passwd");
     a_.EndRecord(this, tag);
 }
예제 #11
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteLong(this.ClientId, "clientId");
     a_.WriteInt(this.Cxid, "cxid");
     a_.WriteLong(this.Zxid, "zxid");
     a_.WriteLong(this.Time, "time");
     a_.WriteInt(this.Type, "type");
     a_.EndRecord(this, tag);
 }
예제 #12
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");
     }
 }
예제 #13
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   {
     a_.StartVector(Txns,"txns");
     if (Txns!= null) {          foreach(var e1 in Txns) {
   a_.WriteRecord(e1,"e1");
         }
     }
     a_.EndVector(Txns,"txns");
   }
   a_.EndRecord(this,tag);
 }
예제 #14
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteLong(Czxid,"czxid");
   a_.WriteLong(Mzxid,"mzxid");
   a_.WriteLong(Ctime,"ctime");
   a_.WriteLong(Mtime,"mtime");
   a_.WriteInt(Version,"version");
   a_.WriteInt(Cversion,"cversion");
   a_.WriteInt(Aversion,"aversion");
   a_.WriteLong(EphemeralOwner,"ephemeralOwner");
   a_.EndRecord(this,tag);
 }
예제 #15
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   {
     a_.StartVector(Children,"children");
     if (Children!= null) {          foreach(var e1 in Children) {
       a_.WriteString(e1,e1);
         }
     }
     a_.EndVector(Children,"children");
   }
   a_.EndRecord(this,tag);
 }
예제 #16
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   {
     a_.StartVector(Acl,"acl");
     if (Acl!= null) {          foreach(var e1 in Acl) {
   a_.WriteRecord(e1,"e1");
         }
     }
     a_.EndVector(Acl,"acl");
   }
   a_.WriteRecord(Stat,"stat");
   a_.EndRecord(this,tag);
 }
예제 #17
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteLong(Czxid, "czxid");
     a_.WriteLong(Mzxid, "mzxid");
     a_.WriteLong(Ctime, "ctime");
     a_.WriteLong(Mtime, "mtime");
     a_.WriteInt(Version, "version");
     a_.WriteInt(Cversion, "cversion");
     a_.WriteInt(Aversion, "aversion");
     a_.WriteLong(EphemeralOwner, "ephemeralOwner");
     a_.EndRecord(this, tag);
 }
예제 #18
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord((IRecord)this, tag);
     a_.WriteLong(this.Czxid, "czxid");
     a_.WriteLong(this.Mzxid, "mzxid");
     a_.WriteLong(this.Ctime, "ctime");
     a_.WriteLong(this.Mtime, "mtime");
     a_.WriteInt(this.Version, "version");
     a_.WriteInt(this.Cversion, "cversion");
     a_.WriteInt(this.Aversion, "aversion");
     a_.WriteLong(this.EphemeralOwner, "ephemeralOwner");
     a_.EndRecord((IRecord)this, tag);
 }
예제 #19
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.StartVector <Org.Apache.Zookeeper.Txn.Txn>(this.Txns, "txns");
     if (this.Txns != null)
     {
         foreach (Org.Apache.Zookeeper.Txn.Txn txn in this.Txns)
         {
             a_.WriteRecord(txn, "e1");
         }
     }
     a_.EndVector <Org.Apache.Zookeeper.Txn.Txn>(this.Txns, "txns");
     a_.EndRecord(this, tag);
 }
예제 #20
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.StartVector <string>(this.Children, "children");
     if (this.Children != null)
     {
         foreach (string str in this.Children)
         {
             a_.WriteString(str, str);
         }
     }
     a_.EndVector <string>(this.Children, "children");
     a_.EndRecord(this, tag);
 }
예제 #21
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteString(Path,"path");
   {
     a_.StartVector(Acl,"acl");
     if (Acl!= null) {          foreach(var e1 in Acl) {
   a_.WriteRecord(e1,"e1");
         }
     }
     a_.EndVector(Acl,"acl");
   }
   a_.WriteInt(Version,"version");
   a_.EndRecord(this,tag);
 }
예제 #22
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord((IRecord)this, tag);
     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_.WriteRecord((IRecord)this.Stat, "stat");
     a_.EndRecord((IRecord)this, tag);
 }
예제 #23
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);
 }
예제 #24
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord((IRecord)this, tag);
     a_.StartVector <string>(this.Children, "children");
     if (this.Children != null)
     {
         foreach (string child in this.Children)
         {
             a_.WriteString(child, child);
         }
     }
     a_.EndVector <string>(this.Children, "children");
     a_.WriteRecord((IRecord)this.Stat, "stat");
     a_.EndRecord((IRecord)this, tag);
 }
예제 #25
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);
 }
예제 #26
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     {
         a_.StartVector(Txns, "txns");
         if (Txns != null)
         {
             foreach (var e1 in Txns)
             {
                 a_.WriteRecord(e1, "e1");
             }
         }
         a_.EndVector(Txns, "txns");
     }
     a_.EndRecord(this, tag);
 }
예제 #27
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteString(this.Path, "path");
     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.Version, "version");
     a_.EndRecord(this, tag);
 }
예제 #28
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="a_"></param>
 /// <param name="tag"></param>
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     {
         a_.StartVector(Children, "children");
         if (Children != null)
         {
             foreach (var e1 in Children)
             {
                 a_.WriteString(e1, e1);
             }
         }
         a_.EndVector(Children, "children");
     }
     a_.EndRecord(this, tag);
 }
예제 #29
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteLong(this.Czxid, "czxid");
     a_.WriteLong(this.Mzxid, "mzxid");
     a_.WriteLong(this.Ctime, "ctime");
     a_.WriteLong(this.Mtime, "mtime");
     a_.WriteInt(this.Version, "version");
     a_.WriteInt(this.Cversion, "cversion");
     a_.WriteInt(this.Aversion, "aversion");
     a_.WriteLong(this.EphemeralOwner, "ephemeralOwner");
     a_.WriteInt(this.DataLength, "dataLength");
     a_.WriteInt(this.NumChildren, "numChildren");
     a_.WriteLong(this.Pzxid, "pzxid");
     a_.EndRecord(this, tag);
 }
예제 #30
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     {
         a_.StartVector(Acl, "acl");
         if (Acl != null)
         {
             foreach (var e1 in Acl)
             {
                 a_.WriteRecord(e1, "e1");
             }
         }
         a_.EndVector(Acl, "acl");
     }
     a_.WriteRecord(Stat, "stat");
     a_.EndRecord(this, tag);
 }
예제 #31
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);
 }
예제 #32
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);
 }
예제 #33
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);
 }
예제 #34
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteString(Path, "path");
     {
         a_.StartVector(Acl, "acl");
         if (Acl != null)
         {
             foreach (var e1 in Acl)
             {
                 a_.WriteRecord(e1, "e1");
             }
         }
         a_.EndVector(Acl, "acl");
     }
     a_.WriteInt(Version, "version");
     a_.EndRecord(this, tag);
 }
예제 #35
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);
 }
예제 #36
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);
 }
예제 #37
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteLong(RelativeZxid, "relativeZxid");
     {
         a_.StartVector(DataWatches, "dataWatches");
         if (DataWatches != null)
         {
             foreach (var e1 in DataWatches)
             {
                 a_.WriteString(e1, e1);
             }
         }
         a_.EndVector(DataWatches, "dataWatches");
     }
     {
         a_.StartVector(ExistWatches, "existWatches");
         if (ExistWatches != null)
         {
             foreach (var e1 in ExistWatches)
             {
                 a_.WriteString(e1, e1);
             }
         }
         a_.EndVector(ExistWatches, "existWatches");
     }
     {
         a_.StartVector(ChildWatches, "childWatches");
         if (ChildWatches != null)
         {
             foreach (var e1 in ChildWatches)
             {
                 a_.WriteString(e1, e1);
             }
         }
         a_.EndVector(ChildWatches, "childWatches");
     }
     a_.EndRecord(this, tag);
 }
예제 #38
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(TimeOut, "timeOut");
     a_.EndRecord(this, tag);
 }
예제 #39
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteBuffer(Token,"token");
   a_.EndRecord(this,tag);
 }
예제 #40
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this,tag);
     a_.WriteString(Scheme,"scheme");
     a_.WriteString(Id,"id");
     a_.EndRecord(this,tag);
 }
예제 #41
0
파일: Txn.cs 프로젝트: CMTelecom/kafka-net
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Type,"type");
   a_.WriteBuffer(Data,"data");
   a_.EndRecord(this,tag);
 }
예제 #42
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");
     }
 }
예제 #43
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteBuffer(Data,"data");
   a_.WriteRecord(Stat,"stat");
   a_.EndRecord(this,tag);
 }
예제 #44
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);
     }
 }
예제 #45
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(Err, "err");
     a_.EndRecord(this, tag);
 }
예제 #46
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Xid,"xid");
   a_.WriteInt(Type,"type");
   a_.EndRecord(this,tag);
 }
예제 #47
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(TimeOut,"timeOut");
   a_.EndRecord(this,tag);
 }
예제 #48
0
 public void Serialize(IOutputArchive a_, string tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteInt(this.Max, "max");
     a_.EndRecord(this, tag);
 }
예제 #49
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Max,"max");
   a_.EndRecord(this,tag);
 }
예제 #50
0
 public void Serialize(IOutputArchive a_, String tag)
 {
     a_.StartRecord(this, tag);
     a_.WriteBuffer(Token, "token");
     a_.EndRecord(this, tag);
 }
예제 #51
0
파일: ACL.cs 프로젝트: CMTelecom/kafka-net
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteInt(Perms,"perms");
   a_.WriteRecord(Id,"id");
   a_.EndRecord(this,tag);
 }
예제 #52
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteString(Path,"path");
   a_.WriteBool(Watch,"watch");
   a_.EndRecord(this,tag);
 }
예제 #53
0
 public void Serialize(IOutputArchive a_, String tag) {
   a_.StartRecord(this,tag);
   a_.WriteLong(Serverid,"serverid");
   a_.WriteInt(ProtocolVersion,"protocolVersion");
   a_.EndRecord(this,tag);
 }