diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Shell.java b/bindings/java/src/net/hyperic/sigar/cmd/Shell.java index 3acaa7c8..5f423eba 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Shell.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Shell.java @@ -7,6 +7,7 @@ import java.util.ArrayList; import net.hyperic.sigar.Sigar; import net.hyperic.sigar.SigarException; +import net.hyperic.sigar.SigarPermissionDeniedException; import net.hyperic.sigar.SigarLoader; import net.hyperic.sigar.SigarProxy; import net.hyperic.sigar.SigarProxyCache; @@ -140,6 +141,12 @@ public class Shell extends ShellBase { } catch (IOException e) { } } + public String getUserDeniedMessage(long pid) { + return + SigarPermissionDeniedException.getUserDeniedMessage(this.proxy, + pid); + } + public static void main(String[] args) { Shell shell = new Shell();