1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-06 02:51:23 +00:00
Files
ntpa/Ntp.Analyzer.Objects/IoStatsEntry.cs

132 lines
4.0 KiB
C#
Raw Normal View History

2016-05-22 23:40:47 +02:00
//
// IoStatsEntry.cs
//
// Author:
// Carsten Sonne Larsen <cs@innolan.dk>
//
// Copyright (c) 2013-2016 Carsten Sonne Larsen
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
namespace Ntp.Analyzer.Objects
{
public sealed class IoStatsEntry
{
public IoStatsEntry(
int timeSinceReset,
int receiveBuffers,
int freeReceiveBuffers,
int usedReceiveBuffers,
int lowWaterRefills,
int droppedPackets,
int ignoredPackets,
int receivedPackets,
int packetsSent,
int packetsNotSent,
int interruptsHandled,
int receivedByInt)
{
this.timeSinceReset = timeSinceReset;
this.receiveBuffers = receiveBuffers;
this.freeReceiveBuffers = freeReceiveBuffers;
this.usedReceiveBuffers = usedReceiveBuffers;
this.lowWaterRefills = lowWaterRefills;
this.droppedPackets = droppedPackets;
this.ignoredPackets = ignoredPackets;
this.receivedPackets = receivedPackets;
this.packetsSent = packetsSent;
this.packetsNotSent = packetsNotSent;
this.interruptsHandled = interruptsHandled;
this.receivedByInt = receivedByInt;
}
private readonly int droppedPackets;
private readonly int freeReceiveBuffers;
private readonly int ignoredPackets;
private readonly int interruptsHandled;
private readonly int lowWaterRefills;
private readonly int packetsNotSent;
private readonly int packetsSent;
private readonly int receiveBuffers;
private readonly int receivedByInt;
private readonly int receivedPackets;
private readonly int timeSinceReset;
private readonly int usedReceiveBuffers;
public int TimeSinceReset
{
get { return timeSinceReset; }
}
public int ReceiveBuffers
{
get { return receiveBuffers; }
}
public int FreeReceiveBuffers
{
get { return freeReceiveBuffers; }
}
public int UsedReceiveBuffers
{
get { return usedReceiveBuffers; }
}
public int LowWaterRefills
{
get { return lowWaterRefills; }
}
public int DroppedPackets
{
get { return droppedPackets; }
}
public int IgnoredPackets
{
get { return ignoredPackets; }
}
public int ReceivedPackets
{
get { return receivedPackets; }
}
public int PacketsSent
{
get { return packetsSent; }
}
public int PacketsNotSent
{
get { return packetsNotSent; }
}
public int InterruptsHandled
{
get { return interruptsHandled; }
}
public int ReceivedByInt
{
get { return receivedByInt; }
}
}
}