org.hyperic.sigar
Class FileSystemUsage

java.lang.Object
  extended byorg.hyperic.sigar.FileSystemUsage
All Implemented Interfaces:
java.io.Serializable

public class FileSystemUsage
extends java.lang.Object
implements java.io.Serializable

FileSystemUsage sigar class.

See Also:
Serialized Form

Constructor Summary
FileSystemUsage()
           
 
Method Summary
 void gather(Sigar sigar, java.lang.String name)
           
 long getAvail()
          Get the Total free bytes on filesystem available to caller.
 long getDiskQueue()
          Get the disk_queue.
 long getDiskReadBytes()
          Get the Number of physical disk bytes read.
 long getDiskReads()
          Get the Number of physical disk reads.
 long getDiskWriteBytes()
          Get the Number of physical disk bytes written.
 long getDiskWrites()
          Get the Number of physical disk writes.
 long getFiles()
          Get the Total number of file nodes on the filesystem.
 long getFree()
          Get the Total free bytes on filesystem.
 long getFreeFiles()
          Get the Number of free file nodes on the filesystem.
 long getTotal()
          Get the Total bytes of filesystem.
 long getUsed()
          Get the Total used bytes on filesystem.
 double getUsePercent()
          Get the Percent of disk used.
 java.util.Map toMap()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemUsage

public FileSystemUsage()
Method Detail

gather

public void gather(Sigar sigar,
                   java.lang.String name)
            throws SigarException
Throws:
SigarException

getTotal

public long getTotal()
Get the Total bytes of filesystem.

Supported Platforms: All.

System equivalent commands:

Returns:
Total bytes of filesystem

getFree

public long getFree()
Get the Total free bytes on filesystem.

Supported Platforms: All.

System equivalent commands:

Returns:
Total free bytes on filesystem

getUsed

public long getUsed()
Get the Total used bytes on filesystem.

Supported Platforms: All.

System equivalent commands:

Returns:
Total used bytes on filesystem

getAvail

public long getAvail()
Get the Total free bytes on filesystem available to caller.

Supported Platforms: All.

System equivalent commands:

Returns:
Total free bytes on filesystem available to caller

getFiles

public long getFiles()
Get the Total number of file nodes on the filesystem.

Supported Platforms: AIX, Darwin, FreeBSD, HPUX, Linux, Solaris.

System equivalent commands:

Returns:
Total number of file nodes on the filesystem

getFreeFiles

public long getFreeFiles()
Get the Number of free file nodes on the filesystem.

Supported Platforms: AIX, Darwin, FreeBSD, HPUX, Linux, Solaris.

System equivalent commands:

Returns:
Number of free file nodes on the filesystem

getDiskReads

public long getDiskReads()
Get the Number of physical disk reads.

Supported Platforms: AIX, FreeBSD, HPUX, Linux, Solaris, Win32.

System equivalent commands:

Returns:
Number of physical disk reads

getDiskWrites

public long getDiskWrites()
Get the Number of physical disk writes.

Supported Platforms: AIX, FreeBSD, HPUX, Linux, Solaris, Win32.

System equivalent commands:

Returns:
Number of physical disk writes

getDiskReadBytes

public long getDiskReadBytes()
Get the Number of physical disk bytes read.

Supported Platforms: Undocumented.

System equivalent commands:

Returns:
Number of physical disk bytes read

getDiskWriteBytes

public long getDiskWriteBytes()
Get the Number of physical disk bytes written.

Supported Platforms: Undocumented.

System equivalent commands:

Returns:
Number of physical disk bytes written

getDiskQueue

public long getDiskQueue()
Get the disk_queue.

Supported Platforms: Undocumented.

System equivalent commands:

Returns:
disk_queue

getUsePercent

public double getUsePercent()
Get the Percent of disk used.

Supported Platforms: All.

System equivalent commands:

Returns:
Percent of disk used

toMap

public java.util.Map toMap()

toString

public java.lang.String toString()


Copyright © 2004-2006 Hyperic. All Rights Reserved.