add DirUsage

This commit is contained in:
Doug MacEachern committed 2005-12-14 02:58:26 +00:00
1 parent d50e4efe42
commit 2e7bb972fd
4 files changed
+16 -1

No files matched your search

+3 -1
View File
@@ -921,6 +921,8 @@ my %classes = (
],
);
$classes{DirUsage} = $classes{DirStat};
my %cmds = (
Mem => {
AIX => 'top',
@@ -1203,7 +1205,7 @@ 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);
my %proc_no_arg = map { $_, 1 } qw(stat);
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);
}
public DirUsage getDirUsage(String name)
throws SigarException {
return DirUsage.fetch(this, name);
}
/**
* Get list of cpu infomation.
* @exception SigarException on failure.
@@ -105,6 +105,8 @@ public interface SigarProxy {
public DirStat getDirStat(String name) throws SigarException;
public DirUsage getDirUsage(String name) throws SigarException;
public CpuInfo[] getCpuInfoList() throws SigarException;
public Cpu[] getCpuList() throws SigarException;
@@ -293,6 +293,12 @@ public class SynchronizedSigar implements SigarProxy {
return this.sigar.getDirStat(name);
}
public synchronized DirUsage getDirUsage(String name)
throws SigarException
{
return this.sigar.getDirUsage(name);
}
public synchronized CpuInfo[] getCpuInfoList()
throws SigarException
{