com.palantir.opensource.sysmon.linux
Class LinuxFileSystem

java.lang.Object
  extended by com.palantir.opensource.sysmon.linux.LinuxFileSystem
All Implemented Interfaces:
LinuxFileSystemMBean

public class LinuxFileSystem
extends Object
implements LinuxFileSystemMBean

Data container and JMX MBean implementation for file system storage measurements used by LinuxDiskspaceJMXWrapper.

See Also:
df(1) for detailed information on each measurement

Field Summary
 String objectName
          JMX path for this object.
 
Constructor Summary
LinuxFileSystem(String objectName, String filesystemName, String filesytemType, String mountPoint, Long totalMegabytes, Long usedMegabytes, Long availableMegabytes, Byte percentageSpaceUsed, Long totalInodes, Long usedInodes, Long availableInodes, Byte percentageInodesUsed)
           
 
Method Summary
 Long getAvailableInodes()
           
 Long getAvailableMegabytes()
           
 String getDevicName()
           
 String getFilesytemType()
           
 String getMountPoint()
           
 Byte getPercentageInodesUsed()
           
 Byte getPercentageSpaceUsed()
           
 Long getTotalInodes()
           
 Long getTotalMegabytes()
           
 Long getUsedInodes()
           
 Long getUsedMegabytes()
           
 void takeValues(LinuxFileSystemMBean dataBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectName

public final String objectName
JMX path for this object.

Constructor Detail

LinuxFileSystem

public LinuxFileSystem(String objectName,
                       String filesystemName,
                       String filesytemType,
                       String mountPoint,
                       Long totalMegabytes,
                       Long usedMegabytes,
                       Long availableMegabytes,
                       Byte percentageSpaceUsed,
                       Long totalInodes,
                       Long usedInodes,
                       Long availableInodes,
                       Byte percentageInodesUsed)
Method Detail

getDevicName

public String getDevicName()
Specified by:
getDevicName in interface LinuxFileSystemMBean

getFilesytemType

public String getFilesytemType()
Specified by:
getFilesytemType in interface LinuxFileSystemMBean

getMountPoint

public String getMountPoint()
Specified by:
getMountPoint in interface LinuxFileSystemMBean

getTotalMegabytes

public Long getTotalMegabytes()
Specified by:
getTotalMegabytes in interface LinuxFileSystemMBean

getUsedMegabytes

public Long getUsedMegabytes()
Specified by:
getUsedMegabytes in interface LinuxFileSystemMBean

getAvailableMegabytes

public Long getAvailableMegabytes()
Specified by:
getAvailableMegabytes in interface LinuxFileSystemMBean

getPercentageSpaceUsed

public Byte getPercentageSpaceUsed()
Specified by:
getPercentageSpaceUsed in interface LinuxFileSystemMBean

getTotalInodes

public Long getTotalInodes()
Specified by:
getTotalInodes in interface LinuxFileSystemMBean

getUsedInodes

public Long getUsedInodes()
Specified by:
getUsedInodes in interface LinuxFileSystemMBean

getAvailableInodes

public Long getAvailableInodes()
Specified by:
getAvailableInodes in interface LinuxFileSystemMBean

getPercentageInodesUsed

public Byte getPercentageInodesUsed()
Specified by:
getPercentageInodesUsed in interface LinuxFileSystemMBean

takeValues

public void takeValues(LinuxFileSystemMBean dataBean)
                throws LinuxMonitoringException
Throws:
LinuxMonitoringException


Copyright © 2012 Palantir Technologies. All Rights Reserved.