com.palantir.opensource.sysmon.linux
Class LinuxIOStat
java.lang.Object
com.palantir.opensource.sysmon.linux.LinuxIOStat
- All Implemented Interfaces:
- LinuxIOStatMBean
public class LinuxIOStat
- extends Object
- implements LinuxIOStatMBean
Data container and JMX MBean implementation for I/O statistics used by
LinuxIOStatJMXWrapper.
iostat output looks like this:
Linux 2.6.26.5-28.fc8 (nosuchhost.palantir.com) 11/12/2008
Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util
sda 0.14 0.68 0.41 0.72 0.01 0.03 62.52 0.06 55.69 3.15 0.35
sda1 0.00 0.00 0.00 0.00 0.00 0.00 21.42 0.00 13.80 10.32 0.00
sda2 0.04 0.54 0.30 0.54 0.00 0.00 19.19 0.04 43.17 3.10 0.26
sda3 0.00 0.00 0.00 0.00 0.00 0.00 30.38 0.00 40.20 34.95 0.00
sda4 0.00 0.00 0.00 0.00 0.00 0.00 2.00 0.00 13.33 13.33 0.00
sda5 0.10 0.14 0.10 0.18 0.00 0.02 189.29 0.03 92.34 3.94 0.11
- See Also:
- iostat(1) for more on the meaning
of each measurement
LinuxIOStat
public LinuxIOStat(String objectName)
takeValues
public void takeValues(LinuxIOStatMBean dataBean)
throws LinuxMonitoringException
- Throws:
LinuxMonitoringException
getDevice
public final String getDevice()
- Specified by:
getDevice in interface LinuxIOStatMBean
getSamplePeriodInSeconds
public final int getSamplePeriodInSeconds()
- Specified by:
getSamplePeriodInSeconds in interface LinuxIOStatMBean
getMergedReadRequestsPerSecond
public final float getMergedReadRequestsPerSecond()
- Specified by:
getMergedReadRequestsPerSecond in interface LinuxIOStatMBean
getMergedWriteRequestsPerSecond
public final float getMergedWriteRequestsPerSecond()
- Specified by:
getMergedWriteRequestsPerSecond in interface LinuxIOStatMBean
getReadRequestsPerSecond
public final float getReadRequestsPerSecond()
- Specified by:
getReadRequestsPerSecond in interface LinuxIOStatMBean
getWriteRequestsPerSecond
public final float getWriteRequestsPerSecond()
- Specified by:
getWriteRequestsPerSecond in interface LinuxIOStatMBean
getKilobytesReadPerSecond
public final float getKilobytesReadPerSecond()
- Specified by:
getKilobytesReadPerSecond in interface LinuxIOStatMBean
getKilobytesWrittenPerSecond
public final float getKilobytesWrittenPerSecond()
- Specified by:
getKilobytesWrittenPerSecond in interface LinuxIOStatMBean
getAverageRequestSizeInSectors
public final float getAverageRequestSizeInSectors()
- Specified by:
getAverageRequestSizeInSectors in interface LinuxIOStatMBean
getAverageQueueLengthInSectors
public final float getAverageQueueLengthInSectors()
- Specified by:
getAverageQueueLengthInSectors in interface LinuxIOStatMBean
getAverageWaitTimeInMillis
public final float getAverageWaitTimeInMillis()
- Specified by:
getAverageWaitTimeInMillis in interface LinuxIOStatMBean
getAverageServiceTimeInMillis
public final float getAverageServiceTimeInMillis()
- Specified by:
getAverageServiceTimeInMillis in interface LinuxIOStatMBean
getBandwidthUtilizationPercentage
public final float getBandwidthUtilizationPercentage()
- Specified by:
getBandwidthUtilizationPercentage in interface LinuxIOStatMBean
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012 Palantir Technologies. All Rights Reserved.