Click or drag to resize

TaskMetrics Class

Provides information about the read and write operations done by a task.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.JetTaskMetrics

Namespace:  Ookii.Jumbo.Jet
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
[SerializableAttribute]
public sealed class TaskMetrics

The TaskMetrics type exposes the following members.

Constructors
  NameDescription
Public methodTaskMetrics
Initializes a new instance of the TaskMetrics class
Top
Properties
  NameDescription
Public propertyDfsBytesRead
Gets or sets the number of bytes read from the Distributed File System.
Public propertyDfsBytesWritten
Gets or sets the number of bytes written to the Distributed File System.
Public propertyDiscardedPartitions
Gets or sets the number of partitions that were discarded because the had been reassigned to another task.
Public propertyDynamicallyAssignedPartitions
Gets or sets the number of partitions that the task received through dynamic partition assignment.
Public propertyInputBytes
Gets or sets the number of bytes that this task had as input.
Public propertyInputRecords
Gets or sets the number of records read.
Public propertyLocalBytesRead
Gets or sets the number of bytes read from the local disk.
Public propertyLocalBytesWritten
Gets or sets the number of bytes written to the local disk.
Public propertyNetworkBytesRead
Gets or sets the number of bytes read over the network by the file and TCP channels.
Public propertyNetworkBytesWritten
Gets or sets the number of bytes written over the network by the TCP channel.
Public propertyOutputBytes
Gets or sets the number of bytes that this task had as output.
Public propertyOutputRecords
Gets or sets the number of records written.
Top
Methods
  NameDescription
Public methodAdd
Adds the value of the specified TaskMetrics instance to this instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFromXml
Creates a TaskMetrics instance from an XML element.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLogMetrics
Writes the metrics to the log.
Public methodToString
Returns a string representation of the TaskMetrics object.
(Overrides ObjectToString.)
Public methodToXml
Returns the value of this TaskMetrics object as an XElement.
Top
Remarks

The InputRecords, InputBytes, OutputRecords and OutputBytes properties provide information about the amount of data processed and generated by this task. They do not take compression or the source or destination of the data into account.

The remaining properties provide information about the amount of I/O activity performed by the task. For instance LocalBytesRead tells you how much data was read from the local disk. This can include data that was first written to the disk by a channel or record reader and then read again. Because of this and things like compression, this number doesn't need to match InputBytes.

See Also