add DiskUsage

This commit is contained in:
Doug MacEachern 2007-10-13 23:12:54 +00:00
parent f58d4e993b
commit bb970e5ca1
2 changed files with 16 additions and 0 deletions

View File

@ -654,6 +654,19 @@ public class Sigar implements SigarProxy {
return FileSystemUsage.fetch(this, name);
}
/**
* Get disk usage.
* @param name Name of disk
* @exception SigarException on failure.
*/
public DiskUsage getDiskUsage(String name)
throws SigarException {
if (name == null) {
throw new SigarException("name cannot be null");
}
return DiskUsage.fetch(this, name);
}
/**
* Get file system usage of a mounted directory.
* This method checks that the given directory is mounted.

View File

@ -117,6 +117,9 @@ public interface SigarProxy {
public FileSystemUsage getFileSystemUsage(String name)
throws SigarException;
public DiskUsage getDiskUsage(String name)
throws SigarException;
public FileInfo getFileInfo(String name) throws SigarException;
public FileInfo getLinkInfo(String name) throws SigarException;