/** {@inheritDoc} */ public Object invoke(String pOperation, Object[] pParams, String[] pSignature) throws MBeanException, ReflectionException { OperationMapInfo opMapInfo = getOperationMapInfo(pOperation, pSignature); try { if (opMapInfo == null) { return jolokiaMBeanServer.invoke(objectName, pOperation, pParams, pSignature); } else { return mapAndInvoke(pOperation, pParams, pSignature, opMapInfo); } } catch (InstanceNotFoundException e) { // Should not happen, since the Jolokia MBeanServer and the delegate MBeanServer this bean is registered // at are in sync. throw new IllegalStateException("Internal: Could find MBean " + objectName + " on Jolokia MBeanServer. Should be in sync",e); } }
/** {@inheritDoc} */ public Object invoke(String pOperation, Object[] pParams, String[] pSignature) throws MBeanException, ReflectionException { OperationMapInfo opMapInfo = getOperationMapInfo(pOperation, pSignature); try { if (opMapInfo == null) { return jolokiaMBeanServer.invoke(objectName, pOperation, pParams, pSignature); } else { return mapAndInvoke(pOperation, pParams, pSignature, opMapInfo); } } catch (InstanceNotFoundException e) { // Should not happen, since the Jolokia MBeanServer and the delegate MBeanServer this bean is registered // at are in sync. throw new IllegalStateException("Internal: Could find MBean " + objectName + " on Jolokia MBeanServer. Should be in sync",e); } }