getUserDeniedMessage wrapper

This commit is contained in:
Doug MacEachern 2004-08-18 16:05:07 +00:00
parent bbc2a738ca
commit 9c866c1369
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import java.util.ArrayList;
import net.hyperic.sigar.Sigar; import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException; import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarPermissionDeniedException;
import net.hyperic.sigar.SigarLoader; import net.hyperic.sigar.SigarLoader;
import net.hyperic.sigar.SigarProxy; import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarProxyCache; import net.hyperic.sigar.SigarProxyCache;
@ -140,6 +141,12 @@ public class Shell extends ShellBase {
} catch (IOException e) { } } catch (IOException e) { }
} }
public String getUserDeniedMessage(long pid) {
return
SigarPermissionDeniedException.getUserDeniedMessage(this.proxy,
pid);
}
public static void main(String[] args) { public static void main(String[] args) {
Shell shell = new Shell(); Shell shell = new Shell();