provide access to underlying Sigar object
This commit is contained in:
parent
bd9b0ea005
commit
39870c98d5
|
@ -82,10 +82,16 @@ public class SigarProxyCache
|
||||||
throws SigarException {
|
throws SigarException {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static SigarProxyCache getHandler(Object proxy) {
|
||||||
|
return (SigarProxyCache)Proxy.getInvocationHandler(proxy);
|
||||||
|
}
|
||||||
|
|
||||||
public static void clear(Object proxy) {
|
public static void clear(Object proxy) {
|
||||||
SigarProxyCache handler =
|
getHandler(proxy).cache.clear();
|
||||||
(SigarProxyCache)Proxy.getInvocationHandler(proxy);
|
}
|
||||||
handler.cache.clear();
|
|
||||||
|
public static Sigar getSigar(Object proxy) {
|
||||||
|
return getHandler(proxy).sigar;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getDebugArgs(Object[] args, Object argKey) {
|
private String getDebugArgs(Object[] args, Object argKey) {
|
||||||
|
|
Loading…
Reference in New Issue