| java.lang.Object org.jboss.mx.server.AbstractMBeanInvoker org.jboss.mx.modelmbean.ModelMBeanInvoker
All known Subclasses: org.jboss.mx.modelmbean.XMBean,
Method Summary | |
public void | addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) | public void | addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) | protected void | configureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name) Build the getMBeanInfo, operation, and attribute interceptor stacks
and associated these with the corresponding InvocationContexts. | protected List | getInterceptors(Descriptor d) | public MBeanNotificationInfo[] | getNotificationInfo() | protected void | init(MBeanServer server, ObjectName name) | protected void | initAttributeContexts(MBeanAttributeInfo[] attributes) | protected void | initOperationContexts(MBeanOperationInfo[] operations) | protected void | initPersistence(MBeanServer server, ObjectName name) initializes the persistence manager based on the info for this bean. | public ObjectName | invokePreRegister(MBeanServer server, ObjectName name) The default implementation of preRegister invokes the
ModelMBeanInvoker.configureInterceptorStack method which sets up the interceptors
for this Model MBean instance. | protected boolean | isSupportedResourceType(Object resource, String resourceType) | public void | load() | protected void | override(Invocation invocation) | public void | removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName) | public void | removeNotificationListener(NotificationListener listener) | public void | removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) | public void | sendAttributeChangeNotification(AttributeChangeNotification notification) Sends an attribute change notification. | public void | sendAttributeChangeNotification(Attribute oldValue, Attribute newValue) Sends an attribute change notification. | public void | sendNotification(String ntfyText) Sends a notification with a given string message. | public void | sendNotification(Notification ntfyObj) Sends a notification. | public void | setManagedResource(Object ref, String resourceType) Sets the managed resource for this Model MBean instance. | public void | setModelMBeanInfo(ModelMBeanInfo info) Sets the MBean metadata for this Model MBean instance. | protected void | setValuesFromMBeanInfo() | public void | store() |
attrNotifierSequence | protected long attrNotifierSequence(Code) | | Notification sequence number for attribute change notifications.
|
notifierSequence | protected long notifierSequence(Code) | | Notification sequence number for generic Model MBean notifications.
|
ModelMBeanInvoker | public ModelMBeanInvoker()(Code) | | Default constructor.
|
ModelMBeanInvoker | public ModelMBeanInvoker(ModelMBeanInfo info) throws MBeanException(Code) | | Creates a Model MBean instance and initializes it with the given
Model MBean metadata.
Parameters: info - Model MBean metadata |
configureInterceptorStack | protected void configureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name) throws Exception(Code) | | Build the getMBeanInfo, operation, and attribute interceptor stacks
and associated these with the corresponding InvocationContexts.
Parameters: info - - the ModelMBean metadata Parameters: server - - the MBeanServer the ModelMBean is registering with Parameters: name - - the ModelMBean name throws: Exception - |
invokePreRegister | public ObjectName invokePreRegister(MBeanServer server, ObjectName name) throws Exception(Code) | | The default implementation of preRegister invokes the
ModelMBeanInvoker.configureInterceptorStack method which sets up the interceptors
for this Model MBean instance. Subclasses may override the
configureInterceptorStack() method to implement their own
interceptor stack configurations. See the JavaDoc for
configureInterceptorStack() for more information.
After the interceptor configuration, this implementation invokes the
ModelMBeanInvoker.load method on this Model MBean instance. This will attempt
to load a pre-existing management attribute state for this Model MBean
instance. See the Javadoc for load() for more information.
|
isSupportedResourceType | protected boolean isSupportedResourceType(Object resource, String resourceType)(Code) | | |
sendAttributeChangeNotification | public void sendAttributeChangeNotification(AttributeChangeNotification notification) throws MBeanException(Code) | | Sends an attribute change notification.
Parameters: notification - attribute change notification to send |
sendAttributeChangeNotification | public void sendAttributeChangeNotification(Attribute oldValue, Attribute newValue) throws MBeanException, RuntimeOperationsException(Code) | | Sends an attribute change notification.
Parameters: oldValue - attribute with the old value Parameters: newValue - attribute with the new value throws: IllegalArgumentException - - An Attribute object passed in parameteris null or the names of the two Attribute objects in parameter are notthe same. |
setValuesFromMBeanInfo | protected void setValuesFromMBeanInfo() throws JMException(Code) | | |
Methods inherited from org.jboss.mx.server.AbstractMBeanInvoker | public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code)(Java Doc) protected void addNotificationListenerToResource(NotificationListener listener, NotificationFilter filter, Object handback)(Code)(Java Doc) public void addOperationInterceptor(Interceptor interceptor)(Code)(Java Doc) public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList getAttributes(java.lang.String[] attributes)(Code)(Java Doc) public long getInvocationTimeout()(Code)(Java Doc) public static MBeanEntry getMBeanEntry()(Code)(Java Doc) public MBeanInfo getMBeanInfo()(Code)(Java Doc) public MBeanInfo getMetaData()(Code)(Java Doc) public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc) protected MBeanNotificationInfo[] getNotificationInfoFromResource()(Code)(Java Doc) public ObjectName getObjectName()(Code)(Java Doc) public Object getResource()(Code)(Java Doc) public MBeanServer getServer()(Code)(Java Doc) protected String getSignatureString(String[] signature)(Code)(Java Doc) protected void initAttributeContexts(MBeanAttributeInfo[] attributes)(Code)(Java Doc) protected void initDispatchers()(Code)(Java Doc) protected void initOperationContexts(MBeanOperationInfo[] operations)(Code)(Java Doc) protected void inject(String type, String name, Class argType, Object value)(Code)(Java Doc) public Object invoke(String operationName, Object[] args, String[] signature) throws MBeanException, ReflectionException(Code)(Java Doc) protected void invokePostDeregister()(Code)(Java Doc) protected void invokePostRegister(Boolean b)(Code)(Java Doc) protected void invokePreDeregister() throws Exception(Code)(Java Doc) protected ObjectName invokePreRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc) public boolean isSuspended()(Code)(Java Doc) protected void override(Invocation invocation) throws MBeanException(Code)(Java Doc) public void postDeregister()(Code)(Java Doc) public void postRegister(Boolean registrationSuccessful)(Code)(Java Doc) public void preDeregister() throws Exception(Code)(Java Doc) public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc) public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc) public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc) protected void removeNotificationListenerFromResource(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc) protected void removeNotificationListenerFromResource(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc) public void removeOperationInterceptor(Interceptor interceptor)(Code)(Java Doc) public void resume()(Code)(Java Doc) public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList setAttributes(AttributeList attributes)(Code)(Java Doc) public void setInvocationTimeout(long time)(Code)(Java Doc) public static void setMBeanEntry(MBeanEntry entry)(Code)(Java Doc) public void setResource(Object resource)(Code)(Java Doc) public void suspend()(Code)(Java Doc) public void suspend(long wait) throws TimeoutException(Code)(Java Doc) public void suspend(boolean force)(Code)(Java Doc) public void updateAttributeInfo(Descriptor attrDesc) throws MBeanException(Code)(Java Doc)
|
|
|