getUserDeniedMessage wrapper
This commit is contained in:
1 parent
bbc2a738ca
commit
9c866c1369
1 file changed
+7
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user