public ResponseHeader(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) return; Status = responseHeader.GetOrDefaultStruct<int>("status"); QTime = responseHeader.GetOrDefaultStruct<int>("QTime"); Parameters = responseHeader.GetOrDefault<INamedList>("params"); }
public LoggingInfo(INamedList nl) { if (nl.IsNullOrEmpty()) return; var list = nl.GetOrDefault<IList>("levels"); Levels = list.Cast<string>().ToList(); Last = nl.GetOrDefaultStruct<long>("last"); Buffer = nl.GetOrDefaultStruct<int>("buffer"); Threshold = nl.GetOrDefault<string>("threshold"); }
public SystemCoreData(INamedList nl) { if (nl.IsNullOrEmpty()) return; Schema = nl.GetOrDefault<string>("schema"); Host = nl.GetOrDefault<string>("host"); Now = nl.GetOrDefaultStruct<DateTime>("now"); Start = nl.GetOrDefaultStruct<DateTime>("start"); Directory = nl.GetOrDefault<INamedList>("directory"); }
public ResponseHeader(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) { return; } Status = responseHeader.GetOrDefaultStruct <int>("status"); QTime = responseHeader.GetOrDefaultStruct <int>("QTime"); Parameters = responseHeader.GetOrDefault <INamedList>("params"); }
public SystemCoreData(INamedList nl) { if (nl.IsNullOrEmpty()) { return; } Schema = nl.GetOrDefault <string>("schema"); Host = nl.GetOrDefault <string>("host"); Now = nl.GetOrDefaultStruct <DateTime>("now"); Start = nl.GetOrDefaultStruct <DateTime>("start"); Directory = nl.GetOrDefault <INamedList>("directory"); }
public LoggingInfo(INamedList nl) { if (nl.IsNullOrEmpty()) { return; } var list = nl.GetOrDefault <IList>("levels"); Levels = list.Cast <string>().ToList(); Last = nl.GetOrDefaultStruct <long>("last"); Buffer = nl.GetOrDefaultStruct <int>("buffer"); Threshold = nl.GetOrDefault <string>("threshold"); }
public CoresCoreData(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) return; Name = responseHeader.GetOrDefault<string>("name"); IsDefaultCore = responseHeader.GetOrDefaultStruct<bool>("isDefaultCore"); InstanceDir = responseHeader.GetOrDefault<string>("instanceDir"); DataDir = responseHeader.GetOrDefault<string>("dataDir"); Config = responseHeader.GetOrDefault<string>("config"); Schema = responseHeader.GetOrDefault<string>("schema"); StartTime = responseHeader.GetOrDefaultStruct<DateTime>("startTime"); Uptime = responseHeader.GetOrDefaultStruct<int>("uptime"); Index = responseHeader.GetOrDefault<INamedList>("index"); }
public CoresCoreData(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) { return; } Name = responseHeader.GetOrDefault <string>("name"); IsDefaultCore = responseHeader.GetOrDefaultStruct <bool>("isDefaultCore"); InstanceDir = responseHeader.GetOrDefault <string>("instanceDir"); DataDir = responseHeader.GetOrDefault <string>("dataDir"); Config = responseHeader.GetOrDefault <string>("config"); Schema = responseHeader.GetOrDefault <string>("schema"); StartTime = responseHeader.GetOrDefaultStruct <DateTime>("startTime"); Uptime = responseHeader.GetOrDefaultStruct <int>("uptime"); Index = responseHeader.GetOrDefault <INamedList>("index"); }
public SystemJvmData(INamedList responseHeader) { //NOTE: change INamedList to dataobject, if ever used if (responseHeader.IsNullOrEmpty()) return; Version = responseHeader.GetOrDefault<string>("version"); Name = responseHeader.GetOrDefault<string>("name"); Spec = responseHeader.GetOrDefault<INamedList>("spec"); Jre = responseHeader.GetOrDefault<INamedList>("jre"); Vm = responseHeader.GetOrDefault<INamedList>("vm"); Processors = responseHeader.GetOrDefaultStruct<int>("processors"); Memory = responseHeader.GetOrDefault<INamedList>("memory"); Jmx = responseHeader.GetOrDefault<INamedList>("jmx"); }
public SystemJvmData(INamedList responseHeader) { //NOTE: change INamedList to dataobject, if ever used if (responseHeader.IsNullOrEmpty()) { return; } Version = responseHeader.GetOrDefault <string>("version"); Name = responseHeader.GetOrDefault <string>("name"); Spec = responseHeader.GetOrDefault <INamedList>("spec"); Jre = responseHeader.GetOrDefault <INamedList>("jre"); Vm = responseHeader.GetOrDefault <INamedList>("vm"); Processors = responseHeader.GetOrDefaultStruct <int>("processors"); Memory = responseHeader.GetOrDefault <INamedList>("memory"); Jmx = responseHeader.GetOrDefault <INamedList>("jmx"); }
public SystemSystemData(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) return; Name = responseHeader.GetOrDefault<string>("name"); Version = responseHeader.GetOrDefault<string>("version"); Arch = responseHeader.GetOrDefault<string>("arch"); SystemLoadAverage = responseHeader.GetOrDefaultStruct<double>("systemLoadAverage"); CommitedVirtualMemorySize = responseHeader.GetOrDefaultStruct<long>("committedVirtualMemorySize"); FreePhysicalMemorySize = responseHeader.GetOrDefaultStruct<long>("freePhysicalMemorySize"); FreeSwapSpaceSize = responseHeader.GetOrDefaultStruct<long>("freeSwapSpaceSize"); ProcessCpuTime = responseHeader.GetOrDefaultStruct<long>("processCpuTime"); TotalPhysicalMemorySize = responseHeader.GetOrDefaultStruct<long>("totalPhysicalMemorySize"); TotalSwapSpaceSize = responseHeader.GetOrDefaultStruct<long>("totalSwapSpaceSize"); }
public SystemSystemData(INamedList responseHeader) { if (responseHeader.IsNullOrEmpty()) { return; } Name = responseHeader.GetOrDefault <string>("name"); Version = responseHeader.GetOrDefault <string>("version"); Arch = responseHeader.GetOrDefault <string>("arch"); SystemLoadAverage = responseHeader.GetOrDefaultStruct <double>("systemLoadAverage"); CommitedVirtualMemorySize = responseHeader.GetOrDefaultStruct <long>("committedVirtualMemorySize"); FreePhysicalMemorySize = responseHeader.GetOrDefaultStruct <long>("freePhysicalMemorySize"); FreeSwapSpaceSize = responseHeader.GetOrDefaultStruct <long>("freeSwapSpaceSize"); ProcessCpuTime = responseHeader.GetOrDefaultStruct <long>("processCpuTime"); TotalPhysicalMemorySize = responseHeader.GetOrDefaultStruct <long>("totalPhysicalMemorySize"); TotalSwapSpaceSize = responseHeader.GetOrDefaultStruct <long>("totalSwapSpaceSize"); }