/// <summary> /// Initializes a new instance of the <see cref="TransactionMetricsImpl"/> class. /// </summary> /// <param name="reader">The reader.</param> public TransactionMetricsImpl(IPortableRawReader reader) { CommitTime = reader.ReadDate() ?? default(DateTime); RollbackTime = reader.ReadDate() ?? default(DateTime); TxCommits = reader.ReadInt(); TxRollbacks = reader.ReadInt(); }
/// <summary> /// Initializes a new instance of the <see cref="TransactionMetricsImpl"/> class. /// </summary> /// <param name="reader">The reader.</param> public TransactionMetricsImpl(IPortableRawReader reader) { CommitTime = reader.ReadDate() ?? default(DateTime); RollbackTime = reader.ReadDate() ?? default(DateTime); TxCommits = reader.ReadInt(); TxRollbacks = reader.ReadInt(); }
/// <summary> /// Initializes a new instance of the <see cref="EventBase"/> class. /// </summary> /// <param name="r">The reader to read data from.</param> protected EventBase(IPortableRawReader r) { _id = IgniteGuid.ReadPortable(r); _localOrder = r.ReadLong(); _node = ReadNode(r); _message = r.ReadString(); _type = r.ReadInt(); _name = r.ReadString(); _timeStamp = r.ReadDate() ?? DateTime.Now; }
/// <summary> /// Initializes a new instance of the <see cref="ClusterMetricsImpl"/> class. /// </summary> /// <param name="reader">The reader.</param> public ClusterMetricsImpl(IPortableRawReader reader) { LastUpdateTimeRaw = reader.ReadLong(); DateTime?lastUpdateTime0 = reader.ReadDate(); LastUpdateTime = lastUpdateTime0 ?? default(DateTime); MaximumActiveJobs = reader.ReadInt(); CurrentActiveJobs = reader.ReadInt(); AverageActiveJobs = reader.ReadFloat(); MaximumWaitingJobs = reader.ReadInt(); CurrentWaitingJobs = reader.ReadInt(); AverageWaitingJobs = reader.ReadFloat(); MaximumRejectedJobs = reader.ReadInt(); CurrentRejectedJobs = reader.ReadInt(); AverageRejectedJobs = reader.ReadFloat(); TotalRejectedJobs = reader.ReadInt(); MaximumCancelledJobs = reader.ReadInt(); CurrentCancelledJobs = reader.ReadInt(); AverageCancelledJobs = reader.ReadFloat(); TotalCancelledJobs = reader.ReadInt(); TotalExecutedJobs = reader.ReadInt(); MaximumJobWaitTime = reader.ReadLong(); CurrentJobWaitTime = reader.ReadLong(); AverageJobWaitTime = reader.ReadDouble(); MaximumJobExecuteTime = reader.ReadLong(); CurrentJobExecuteTime = reader.ReadLong(); AverageJobExecuteTime = reader.ReadDouble(); TotalExecutedTasks = reader.ReadInt(); TotalIdleTime = reader.ReadLong(); CurrentIdleTime = reader.ReadLong(); TotalCpus = reader.ReadInt(); CurrentCpuLoad = reader.ReadDouble(); AverageCpuLoad = reader.ReadDouble(); CurrentGcCpuLoad = reader.ReadDouble(); HeapMemoryInitialized = reader.ReadLong(); HeapMemoryUsed = reader.ReadLong(); HeapMemoryCommitted = reader.ReadLong(); HeapMemoryMaximum = reader.ReadLong(); HeapMemoryTotal = reader.ReadLong(); NonHeapMemoryInitialized = reader.ReadLong(); NonHeapMemoryUsed = reader.ReadLong(); NonHeapMemoryCommitted = reader.ReadLong(); NonHeapMemoryMaximum = reader.ReadLong(); NonHeapMemoryTotal = reader.ReadLong(); UpTime = reader.ReadLong(); DateTime?startTime0 = reader.ReadDate(); StartTime = startTime0 ?? default(DateTime); DateTime?nodeStartTime0 = reader.ReadDate(); NodeStartTime = nodeStartTime0 ?? default(DateTime); CurrentThreadCount = reader.ReadInt(); MaximumThreadCount = reader.ReadInt(); TotalStartedThreadCount = reader.ReadLong(); CurrentDaemonThreadCount = reader.ReadInt(); LastDataVersion = reader.ReadLong(); SentMessagesCount = reader.ReadInt(); SentBytesCount = reader.ReadLong(); ReceivedMessagesCount = reader.ReadInt(); ReceivedBytesCount = reader.ReadLong(); OutboundMessagesQueueSize = reader.ReadInt(); TotalNodes = reader.ReadInt(); }
/// <summary> /// Initializes a new instance of the <see cref="ClusterMetricsImpl"/> class. /// </summary> /// <param name="reader">The reader.</param> public ClusterMetricsImpl(IPortableRawReader reader) { LastUpdateTimeRaw = reader.ReadLong(); DateTime? lastUpdateTime0 = reader.ReadDate(); LastUpdateTime = lastUpdateTime0 ?? default(DateTime); MaximumActiveJobs = reader.ReadInt(); CurrentActiveJobs = reader.ReadInt(); AverageActiveJobs = reader.ReadFloat(); MaximumWaitingJobs = reader.ReadInt(); CurrentWaitingJobs = reader.ReadInt(); AverageWaitingJobs = reader.ReadFloat(); MaximumRejectedJobs = reader.ReadInt(); CurrentRejectedJobs = reader.ReadInt(); AverageRejectedJobs = reader.ReadFloat(); TotalRejectedJobs = reader.ReadInt(); MaximumCancelledJobs = reader.ReadInt(); CurrentCancelledJobs = reader.ReadInt(); AverageCancelledJobs = reader.ReadFloat(); TotalCancelledJobs = reader.ReadInt(); TotalExecutedJobs = reader.ReadInt(); MaximumJobWaitTime = reader.ReadLong(); CurrentJobWaitTime = reader.ReadLong(); AverageJobWaitTime = reader.ReadDouble(); MaximumJobExecuteTime = reader.ReadLong(); CurrentJobExecuteTime = reader.ReadLong(); AverageJobExecuteTime = reader.ReadDouble(); TotalExecutedTasks = reader.ReadInt(); TotalIdleTime = reader.ReadLong(); CurrentIdleTime = reader.ReadLong(); TotalCpus = reader.ReadInt(); CurrentCpuLoad = reader.ReadDouble(); AverageCpuLoad = reader.ReadDouble(); CurrentGcCpuLoad = reader.ReadDouble(); HeapMemoryInitialized = reader.ReadLong(); HeapMemoryUsed = reader.ReadLong(); HeapMemoryCommitted = reader.ReadLong(); HeapMemoryMaximum = reader.ReadLong(); HeapMemoryTotal = reader.ReadLong(); NonHeapMemoryInitialized = reader.ReadLong(); NonHeapMemoryUsed = reader.ReadLong(); NonHeapMemoryCommitted = reader.ReadLong(); NonHeapMemoryMaximum = reader.ReadLong(); NonHeapMemoryTotal = reader.ReadLong(); UpTime = reader.ReadLong(); DateTime? startTime0 = reader.ReadDate(); StartTime = startTime0 ?? default(DateTime); DateTime? nodeStartTime0 = reader.ReadDate(); NodeStartTime = nodeStartTime0 ?? default(DateTime); CurrentThreadCount = reader.ReadInt(); MaximumThreadCount = reader.ReadInt(); TotalStartedThreadCount = reader.ReadLong(); CurrentDaemonThreadCount = reader.ReadInt(); LastDataVersion = reader.ReadLong(); SentMessagesCount = reader.ReadInt(); SentBytesCount = reader.ReadLong(); ReceivedMessagesCount = reader.ReadInt(); ReceivedBytesCount = reader.ReadLong(); OutboundMessagesQueueSize = reader.ReadInt(); TotalNodes = reader.ReadInt(); }