add DirUsage
This commit is contained in:
		
							parent
							
								
									d50e4efe42
								
							
						
					
					
						commit
						2e7bb972fd
					
				@ -921,6 +921,8 @@ my %classes = (
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$classes{DirUsage} = $classes{DirStat};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my %cmds = (
 | 
					my %cmds = (
 | 
				
			||||||
    Mem => {
 | 
					    Mem => {
 | 
				
			||||||
       AIX     => 'top',
 | 
					       AIX     => 'top',
 | 
				
			||||||
@ -1203,7 +1205,7 @@ EOF
 | 
				
			|||||||
EOF
 | 
					EOF
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my %has_name_arg = map { $_, 1 } qw(FileSystemUsage FileAttrs DirStat
 | 
					my %has_name_arg = map { $_, 1 } qw(FileSystemUsage FileAttrs DirStat DirUsage
 | 
				
			||||||
                                    NetInterfaceConfig NetInterfaceStat);
 | 
					                                    NetInterfaceConfig NetInterfaceStat);
 | 
				
			||||||
my %proc_no_arg = map { $_, 1 } qw(stat);
 | 
					my %proc_no_arg = map { $_, 1 } qw(stat);
 | 
				
			||||||
my %get_not_impl = map { $_, 1 } qw(net_route net_connection who
 | 
					my %get_not_impl = map { $_, 1 } qw(net_route net_connection who
 | 
				
			||||||
 | 
				
			|||||||
@ -593,6 +593,11 @@ public class Sigar implements SigarProxy {
 | 
				
			|||||||
        return DirStat.fetch(this, name);
 | 
					        return DirStat.fetch(this, name);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public DirUsage getDirUsage(String name)
 | 
				
			||||||
 | 
					        throws SigarException {
 | 
				
			||||||
 | 
					        return DirUsage.fetch(this, name);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get list of cpu infomation.
 | 
					     * Get list of cpu infomation.
 | 
				
			||||||
     * @exception SigarException on failure.
 | 
					     * @exception SigarException on failure.
 | 
				
			||||||
 | 
				
			|||||||
@ -105,6 +105,8 @@ public interface SigarProxy {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public DirStat getDirStat(String name) throws SigarException;
 | 
					    public DirStat getDirStat(String name) throws SigarException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public DirUsage getDirUsage(String name) throws SigarException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public CpuInfo[] getCpuInfoList() throws SigarException;
 | 
					    public CpuInfo[] getCpuInfoList() throws SigarException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Cpu[] getCpuList() throws SigarException;
 | 
					    public Cpu[] getCpuList() throws SigarException;
 | 
				
			||||||
 | 
				
			|||||||
@ -293,6 +293,12 @@ public class SynchronizedSigar implements SigarProxy {
 | 
				
			|||||||
        return this.sigar.getDirStat(name);
 | 
					        return this.sigar.getDirStat(name);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public synchronized DirUsage getDirUsage(String name)
 | 
				
			||||||
 | 
					        throws SigarException
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return this.sigar.getDirUsage(name);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public synchronized CpuInfo[] getCpuInfoList()
 | 
					    public synchronized CpuInfo[] getCpuInfoList()
 | 
				
			||||||
        throws SigarException
 | 
					        throws SigarException
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user