add DiskUsage
This commit is contained in:
		
							parent
							
								
									f58d4e993b
								
							
						
					
					
						commit
						bb970e5ca1
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user