protected void override(Invocation invocation) throws MBeanException { // Do we allow for dynamic descriptor changes if (dynamicResource && info != null) { Descriptor current = invocation.getDescriptor(); if (current != null) { ModelMBeanInfo mminfo = (ModelMBeanInfo) info; Descriptor descriptor = mminfo.getDescriptor((String) current.getFieldValue(NAME), (String) current.getFieldValue(DESCRIPTOR_TYPE)); if (descriptor != null) invocation.setDescriptor(descriptor); } } }
protected void override(Invocation invocation) throws MBeanException { // Do we allow for dynamic descriptor changes if (dynamicResource && info != null) { Descriptor current = invocation.getDescriptor(); if (current != null) { ModelMBeanInfo mminfo = (ModelMBeanInfo) info; Descriptor descriptor = mminfo.getDescriptor((String) current.getFieldValue(NAME), (String) current.getFieldValue(DESCRIPTOR_TYPE)); if (descriptor != null) invocation.setDescriptor(descriptor); } } }
public Object invoke(Invocation invocation) throws Throwable { if( callback == null ) { lazyInit(invocation); } Object returnValue = invocation.nextInterceptor().invoke(invocation); String type = invocation.getType(); if (type != Invocation.OP_SETATTRIBUTE ) return returnValue; String attrName = invocation.getName(); String policy = (String)attrPersistencePolicies.get(attrName); if (policy == null) policy = mbeanPersistencePolicy; if (policy.equalsIgnoreCase(PP_ON_UPDATE) == true) { MBeanInvoker invoker = invocation.getInvoker(); Descriptor attrDesc = invocation.getDescriptor(); invoker.updateAttributeInfo(attrDesc); callback.store(); } else if(policy.equalsIgnoreCase(PP_NO_MORE_OFTEN_THAN) == true) { PersistenceTimerTask task = (PersistenceTimerTask) timerTaskMap.get(attrName); if( task != null ) task.setHasUpdated(true); } return returnValue; }
public Object invoke(Invocation invocation) throws Throwable { if( callback == null ) { lazyInit(invocation); } Object returnValue = invocation.nextInterceptor().invoke(invocation); String type = invocation.getType(); if (type != Invocation.OP_SETATTRIBUTE ) return returnValue; String attrName = invocation.getName(); String policy = attrPersistencePolicies.get(attrName); if (policy == null) policy = mbeanPersistencePolicy; if (policy.equalsIgnoreCase(PP_ON_UPDATE) == true) { MBeanInvoker invoker = invocation.getInvoker(); Descriptor attrDesc = invocation.getDescriptor(); invoker.updateAttributeInfo(attrDesc); callback.store(); } else if(policy.equalsIgnoreCase(PP_NO_MORE_OFTEN_THAN) == true) { PersistenceTimerTask task = timerTaskMap.get(attrName); if( task != null ) task.setHasUpdated(true); } return returnValue; }
public Object invoke(Invocation invocation) throws Throwable Descriptor d = invocation.getDescriptor(); Class<?> clazz = invocation.getReturnTypeClass();
public Object invoke(Invocation invocation) throws Throwable Descriptor d = invocation.getDescriptor(); Class clazz = invocation.getReturnTypeClass();
Descriptor descriptor = invocation.getDescriptor(); if (descriptor != null)
Descriptor descriptor = invocation.getDescriptor(); if (descriptor != null)
Descriptor descriptor = invocation.getDescriptor(); if (descriptor != null)
public Object invoke(Invocation invocation) throws Throwable Descriptor d = invocation.getDescriptor(); Class clazz = invocation.getAttributeTypeClass();
Descriptor descriptor = invocation.getDescriptor(); if (descriptor != null)
public Object invoke(Invocation invocation) throws Throwable Descriptor d = invocation.getDescriptor(); Class<?> clazz = invocation.getAttributeTypeClass();
Descriptor attrDesc = invocation.getDescriptor(); ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
if (dynamic) Descriptor d = invocation.getDescriptor(); if (d != null) if (dynamic) Descriptor d = invocation.getDescriptor(); if (d != null)
Descriptor attrDesc = invocation.getDescriptor(); ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
if (dynamic) Descriptor d = invocation.getDescriptor(); if (d != null) if (dynamic) Descriptor d = invocation.getDescriptor(); if (d != null)
Descriptor attrDesc = invocation.getDescriptor(); ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
Descriptor attrDesc = invocation.getDescriptor(); ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);