public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); 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, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (Newegg.EC.Zookeeper.Client.Core.IO.EndianBinaryWriter writer = new Newegg.EC.Zookeeper.Client.Core.IO.EndianBinaryWriter(Newegg.EC.Zookeeper.Client.Core.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)) { BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); a_.WriteLong(ClientId, "clientId"); a_.WriteInt(Cxid, "cxid"); a_.WriteLong(Zxid, "zxid"); a_.WriteLong(Time, "time"); a_.WriteInt(Type, "type"); a_.EndRecord(this, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteLong(this.ClientId, "clientId"); archive.WriteInt(this.Cxid, "cxid"); archive.WriteLong(this.Zxid, "zxid"); archive.WriteLong(this.Time, "time"); archive.WriteInt(this.Type, "type"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteInt(this.ProtocolVersion, "protocolVersion"); archive.WriteLong(this.LastZxidSeen, "lastZxidSeen"); archive.WriteInt(this.TimeOut, "timeOut"); archive.WriteLong(this.SessionId, "sessionId"); archive.WriteBuffer(this.Passwd, "passwd"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)) { BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); a_.WriteInt(ProtocolVersion, "protocolVersion"); a_.WriteLong(LastZxidSeen, "lastZxidSeen"); a_.WriteInt(TimeOut, "timeOut"); a_.WriteLong(SessionId, "sessionId"); a_.WriteBuffer(Passwd, "passwd"); a_.EndRecord(this, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream memoryStream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter((EndianBitConverter)EndianBitConverter.Big, (Stream)memoryStream, Encoding.UTF8)) { BinaryOutputArchive binaryOutputArchive = new BinaryOutputArchive(writer); binaryOutputArchive.StartRecord((IRecord)this, string.Empty); binaryOutputArchive.WriteLong(this.Czxid, "czxid"); binaryOutputArchive.WriteLong(this.Mzxid, "mzxid"); binaryOutputArchive.WriteLong(this.Ctime, "ctime"); binaryOutputArchive.WriteLong(this.Mtime, "mtime"); binaryOutputArchive.WriteInt(this.Version, "version"); binaryOutputArchive.WriteInt(this.Cversion, "cversion"); binaryOutputArchive.WriteInt(this.Aversion, "aversion"); binaryOutputArchive.WriteLong(this.EphemeralOwner, "ephemeralOwner"); binaryOutputArchive.EndRecord((IRecord)this, string.Empty); memoryStream.Position = 0L; return(Encoding.UTF8.GetString(memoryStream.ToArray())); } } catch (Exception ex) { StatPersistedV1.log.Error((object)ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream memoryStream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter((EndianBitConverter)EndianBitConverter.Big, (Stream)memoryStream, Encoding.UTF8)) { BinaryOutputArchive binaryOutputArchive = new BinaryOutputArchive(writer); binaryOutputArchive.StartRecord((IRecord)this, string.Empty); binaryOutputArchive.WriteInt(this.Type, "type"); binaryOutputArchive.WriteLong(this.Zxid, "zxid"); binaryOutputArchive.WriteBuffer(this.Data, "data"); binaryOutputArchive.StartVector <ZKId>(this.Authinfo, "authinfo"); if (this.Authinfo != null) { foreach (ZKId zkId in this.Authinfo) { binaryOutputArchive.WriteRecord((IRecord)zkId, "e1"); } } binaryOutputArchive.EndVector <ZKId>(this.Authinfo, "authinfo"); binaryOutputArchive.EndRecord((IRecord)this, string.Empty); memoryStream.Position = 0L; return(Encoding.UTF8.GetString(memoryStream.ToArray())); } } catch (Exception ex) { QuorumPacket.log.Error((object)ex); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)) { BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); a_.WriteInt(Xid, "xid"); a_.WriteLong(Zxid, "zxid"); a_.WriteInt(Err, "err"); a_.EndRecord(this, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); 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, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteInt(this.Type, "type"); archive.WriteLong(this.Zxid, "zxid"); archive.WriteBuffer(this.Data, "data"); archive.StartVector <ZKId>(this.Authinfo, "authinfo"); if (this.Authinfo != null) { foreach (ZKId id in this.Authinfo) { archive.WriteRecord(id, "e1"); } } archive.EndVector <ZKId>(this.Authinfo, "authinfo"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (Newegg.EC.Zookeeper.Client.Core.IO.EndianBinaryWriter writer = new Newegg.EC.Zookeeper.Client.Core.IO.EndianBinaryWriter(Newegg.EC.Zookeeper.Client.Core.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)) { BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); 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, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); a_.WriteLong(ClientId,"clientId"); a_.WriteInt(Cxid,"cxid"); a_.WriteLong(Zxid,"zxid"); a_.WriteLong(Time,"time"); a_.WriteInt(Type,"type"); a_.EndRecord(this,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { log.Error(ex); } return "ERROR"; }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); a_.WriteInt(ProtocolVersion,"protocolVersion"); a_.WriteLong(LastZxidSeen,"lastZxidSeen"); a_.WriteInt(TimeOut,"timeOut"); a_.WriteLong(SessionId,"sessionId"); a_.WriteBuffer(Passwd,"passwd"); a_.EndRecord(this,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { log.Error(ex); } return "ERROR"; }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteLong(this.Czxid, "czxid"); archive.WriteLong(this.Mzxid, "mzxid"); archive.WriteLong(this.Ctime, "ctime"); archive.WriteLong(this.Mtime, "mtime"); archive.WriteInt(this.Version, "version"); archive.WriteInt(this.Cversion, "cversion"); archive.WriteInt(this.Aversion, "aversion"); archive.WriteLong(this.EphemeralOwner, "ephemeralOwner"); archive.WriteLong(this.Pzxid, "pzxid"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override string ToString() { try { MemoryStream memoryStream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter((EndianBitConverter)EndianBitConverter.Big, (Stream)memoryStream, Encoding.UTF8)) { BinaryOutputArchive binaryOutputArchive = new BinaryOutputArchive(writer); binaryOutputArchive.StartRecord((IRecord)this, string.Empty); binaryOutputArchive.WriteLong(this.RelativeZxid, "relativeZxid"); binaryOutputArchive.StartVector <string>(this.DataWatches, "dataWatches"); if (this.DataWatches != null) { foreach (string dataWatch in this.DataWatches) { binaryOutputArchive.WriteString(dataWatch, dataWatch); } } binaryOutputArchive.EndVector <string>(this.DataWatches, "dataWatches"); binaryOutputArchive.StartVector <string>(this.ExistWatches, "existWatches"); if (this.ExistWatches != null) { foreach (string existWatch in this.ExistWatches) { binaryOutputArchive.WriteString(existWatch, existWatch); } } binaryOutputArchive.EndVector <string>(this.ExistWatches, "existWatches"); binaryOutputArchive.StartVector <string>(this.ChildWatches, "childWatches"); if (this.ChildWatches != null) { foreach (string childWatch in this.ChildWatches) { binaryOutputArchive.WriteString(childWatch, childWatch); } } binaryOutputArchive.EndVector <string>(this.ChildWatches, "childWatches"); binaryOutputArchive.EndRecord((IRecord)this, string.Empty); memoryStream.Position = 0L; return(Encoding.UTF8.GetString(memoryStream.ToArray())); } } catch (Exception ex) { SetWatches.log.Error((object)ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteLong(this.RelativeZxid, "relativeZxid"); archive.StartVector <string>(this.DataWatches, "dataWatches"); if (this.DataWatches != null) { foreach (string str in this.DataWatches) { archive.WriteString(str, str); } } archive.EndVector <string>(this.DataWatches, "dataWatches"); archive.StartVector <string>(this.ExistWatches, "existWatches"); if (this.ExistWatches != null) { foreach (string str2 in this.ExistWatches) { archive.WriteString(str2, str2); } } archive.EndVector <string>(this.ExistWatches, "existWatches"); archive.StartVector <string>(this.ChildWatches, "childWatches"); if (this.ChildWatches != null) { foreach (string str3 in this.ChildWatches) { archive.WriteString(str3, str3); } } archive.EndVector <string>(this.ChildWatches, "childWatches"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); IkZooKeeperNet.IO.EndianBinaryWriter writer = new IkZooKeeperNet.IO.EndianBinaryWriter(IkZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8); BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, ""); a_.WriteInt(ProtocolVersion, "protocolVersion"); a_.WriteInt(TimeOut, "timeOut"); a_.WriteLong(SessionId, "sessionId"); a_.WriteBuffer(Passwd, "passwd"); a_.EndRecord(this, ""); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } return("ERROR"); }
public override string ToString() { try { MemoryStream memoryStream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter((EndianBitConverter)EndianBitConverter.Big, (Stream)memoryStream, Encoding.UTF8)) { BinaryOutputArchive binaryOutputArchive = new BinaryOutputArchive(writer); binaryOutputArchive.StartRecord((IRecord)this, string.Empty); binaryOutputArchive.WriteLong(this.Serverid, "serverid"); binaryOutputArchive.WriteInt(this.ProtocolVersion, "protocolVersion"); binaryOutputArchive.EndRecord((IRecord)this, string.Empty); memoryStream.Position = 0L; return(Encoding.UTF8.GetString(memoryStream.ToArray())); } } catch (Exception ex) { LearnerInfo.log.Error((object)ex); } return("ERROR"); }
/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)) { BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this, string.Empty); a_.WriteInt(Magic, "magic"); a_.WriteInt(Version, "version"); a_.WriteLong(Dbid, "dbid"); a_.EndRecord(this, string.Empty); ms.Position = 0; return(System.Text.Encoding.UTF8.GetString(ms.ToArray())); } } catch (Exception ex) { log.Error(ex); } return("ERROR"); }
public override string ToString() { try { MemoryStream stream = new MemoryStream(); using (EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big, stream, Encoding.UTF8)) { BinaryOutputArchive archive = new BinaryOutputArchive(writer); archive.StartRecord(this, string.Empty); archive.WriteInt(this.Magic, "magic"); archive.WriteInt(this.Version, "version"); archive.WriteLong(this.Dbid, "dbid"); archive.EndRecord(this, string.Empty); stream.Position = 0L; return(Encoding.UTF8.GetString(stream.ToArray())); } } catch (Exception exception) { log.Error(exception); } return("ERROR"); }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); 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,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { log.Error(ex); } return "ERROR"; }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); 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_.WriteInt(DataLength,"dataLength"); a_.WriteInt(NumChildren,"numChildren"); a_.WriteLong(Pzxid,"pzxid"); a_.EndRecord(this,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { log.Error(ex); } return "ERROR"; }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); a_.WriteInt(Magic,"magic"); a_.WriteInt(Version,"version"); a_.WriteLong(Dbid,"dbid"); a_.EndRecord(this,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { #if !NET_CORE log.Error(ex); #endif } return "ERROR"; }
public override String ToString() { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); using(ZooKeeperNet.IO.EndianBinaryWriter writer = new ZooKeeperNet.IO.EndianBinaryWriter(ZooKeeperNet.IO.EndianBitConverter.Big, ms, System.Text.Encoding.UTF8)){ BinaryOutputArchive a_ = new BinaryOutputArchive(writer); a_.StartRecord(this,string.Empty); 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,string.Empty); ms.Position = 0; return System.Text.Encoding.UTF8.GetString(ms.ToArray()); } } catch (Exception ex) { #if !NET_CORE log.Error(ex); #endif } return "ERROR"; }