com.palantir.opensource.sysmon.linux
Class LinuxNetworkInterface
java.lang.Object
com.palantir.opensource.sysmon.linux.LinuxNetworkInterface
- All Implemented Interfaces:
- LinuxNetworkInterfaceMBean
public class LinuxNetworkInterface
- extends Object
- implements LinuxNetworkInterfaceMBean
Data container and JMX MBean implementation for per-network interface statistics used by
LinuxNetStatJMXWrapper
.
takeValues
public void takeValues(LinuxNetworkInterface dataBean)
throws LinuxMonitoringException
- Throws:
LinuxMonitoringException
compute
public void compute(LinuxNetworkInterface dataBean)
throws LinuxMonitoringException
- Computes the stats between these two beans, writing to this bean.
- Parameters:
dataBean
- - which will be unchanged
- Throws:
LinuxMonitoringException
toString
public String toString()
- Overrides:
toString
in class Object
getTimestamp
public final long getTimestamp()
getInterfaceName
public final String getInterfaceName()
- Specified by:
getInterfaceName
in interface LinuxNetworkInterfaceMBean
getBytesReceived
public final long getBytesReceived()
- Specified by:
getBytesReceived
in interface LinuxNetworkInterfaceMBean
getPacketsReceived
public final long getPacketsReceived()
- Specified by:
getPacketsReceived
in interface LinuxNetworkInterfaceMBean
getRecieveErrors
public final long getRecieveErrors()
- Specified by:
getRecieveErrors
in interface LinuxNetworkInterfaceMBean
getDroppedReceivedPackets
public final long getDroppedReceivedPackets()
- Specified by:
getDroppedReceivedPackets
in interface LinuxNetworkInterfaceMBean
getReceiveFIFOErrors
public final long getReceiveFIFOErrors()
- Specified by:
getReceiveFIFOErrors
in interface LinuxNetworkInterfaceMBean
getReceiveFrameErrors
public final long getReceiveFrameErrors()
- Specified by:
getReceiveFrameErrors
in interface LinuxNetworkInterfaceMBean
getCompressedPacketsReceived
public final long getCompressedPacketsReceived()
- Specified by:
getCompressedPacketsReceived
in interface LinuxNetworkInterfaceMBean
getMulticastFramesReceived
public final long getMulticastFramesReceived()
- Specified by:
getMulticastFramesReceived
in interface LinuxNetworkInterfaceMBean
getBytesSent
public final long getBytesSent()
- Specified by:
getBytesSent
in interface LinuxNetworkInterfaceMBean
getPacketsSent
public final long getPacketsSent()
- Specified by:
getPacketsSent
in interface LinuxNetworkInterfaceMBean
getSendErrors
public final long getSendErrors()
- Specified by:
getSendErrors
in interface LinuxNetworkInterfaceMBean
getDroppedSentPackets
public final long getDroppedSentPackets()
- Specified by:
getDroppedSentPackets
in interface LinuxNetworkInterfaceMBean
getSentFIFOErrors
public final long getSentFIFOErrors()
- Specified by:
getSentFIFOErrors
in interface LinuxNetworkInterfaceMBean
getCollisions
public final long getCollisions()
- Specified by:
getCollisions
in interface LinuxNetworkInterfaceMBean
getCarrierDrops
public final long getCarrierDrops()
- Specified by:
getCarrierDrops
in interface LinuxNetworkInterfaceMBean
getCompressedPacketsTransmitted
public final long getCompressedPacketsTransmitted()
- Specified by:
getCompressedPacketsTransmitted
in interface LinuxNetworkInterfaceMBean
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getBytesPerSecondReceived
public final long getBytesPerSecondReceived()
- Specified by:
getBytesPerSecondReceived
in interface LinuxNetworkInterfaceMBean
getBytesPerSecondSent
public final long getBytesPerSecondSent()
- Specified by:
getBytesPerSecondSent
in interface LinuxNetworkInterfaceMBean
getPacketsPerSecondReceived
public final long getPacketsPerSecondReceived()
- Specified by:
getPacketsPerSecondReceived
in interface LinuxNetworkInterfaceMBean
getPacketsPerSecondSent
public final long getPacketsPerSecondSent()
- Specified by:
getPacketsPerSecondSent
in interface LinuxNetworkInterfaceMBean
getTimespan
public final long getTimespan()
- Specified by:
getTimespan
in interface LinuxNetworkInterfaceMBean
Copyright © 2012 Palantir Technologies. All Rights Reserved.