Java Doc for ModelMBeanInvoker.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » modelmbean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » jmx » org.jboss.mx.modelmbean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mx.server.AbstractMBeanInvoker
      org.jboss.mx.modelmbean.ModelMBeanInvoker

All known Subclasses:   org.jboss.mx.modelmbean.XMBean,
ModelMBeanInvoker
abstract public class ModelMBeanInvoker extends AbstractMBeanInvoker implements ModelMBean,ModelMBeanConstants(Code)
An extension of the org.jboss.mx.server.MBeanInvoker MBeanInvoker that implements the base Model MBean functionality, essentially making the Model MBean just another invoker of managed resources.
See Also:   javax.management.modelmbean.ModelMBean
See Also:   org.jboss.mx.server.MBeanInvoker
author:
   Juha Lindfors.
author:
   Dimitris Andreadis.
author:
   Matt Munz
version:
   $Revision: 57200 $


Field Summary
protected  longattrNotifierSequence
     Notification sequence number for attribute change notifications.
 Loggerlog
    
protected  JBossNotificationBroadcasterSupportnotifier
     Notification broadcaster for this Model MBean.
protected  longnotifierSequence
     Notification sequence number for generic Model MBean notifications.
protected  PersistenceManagerpersistence
     Persistence manager.
protected  StringresourceType
     The resource type string of the managed resource, such as ModelMBeanConstants.OBJECT_REF or XMBeanConstants.STANDARD_INTERFACE .

Constructor Summary
public  ModelMBeanInvoker()
     Default constructor.
public  ModelMBeanInvoker(ModelMBeanInfo info)
     Creates a Model MBean instance and initializes it with the given Model MBean metadata.

Method Summary
public  voidaddAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback)
    
public  voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    
protected  voidconfigureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name)
     Build the getMBeanInfo, operation, and attribute interceptor stacks and associated these with the corresponding InvocationContexts.
protected  ListgetInterceptors(Descriptor d)
    
public  MBeanNotificationInfo[]getNotificationInfo()
    
protected  voidinit(MBeanServer server, ObjectName name)
    
protected  voidinitAttributeContexts(MBeanAttributeInfo[] attributes)
    
protected  voidinitOperationContexts(MBeanOperationInfo[] operations)
    
protected  voidinitPersistence(MBeanServer server, ObjectName name)
     initializes the persistence manager based on the info for this bean.
public  ObjectNameinvokePreRegister(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  booleanisSupportedResourceType(Object resource, String resourceType)
    
public  voidload()
    
protected  voidoverride(Invocation invocation)
    
public  voidremoveAttributeChangeNotificationListener(NotificationListener listener, String attributeName)
    
public  voidremoveNotificationListener(NotificationListener listener)
    
public  voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    
public  voidsendAttributeChangeNotification(AttributeChangeNotification notification)
     Sends an attribute change notification.
public  voidsendAttributeChangeNotification(Attribute oldValue, Attribute newValue)
     Sends an attribute change notification.
public  voidsendNotification(String ntfyText)
     Sends a notification with a given string message.
public  voidsendNotification(Notification ntfyObj)
     Sends a notification.
public  voidsetManagedResource(Object ref, String resourceType)
     Sets the managed resource for this Model MBean instance.
public  voidsetModelMBeanInfo(ModelMBeanInfo info)
     Sets the MBean metadata for this Model MBean instance.
protected  voidsetValuesFromMBeanInfo()
    
public  voidstore()
    

Field Detail
attrNotifierSequence
protected long attrNotifierSequence(Code)
Notification sequence number for attribute change notifications.



log
Logger log(Code)



notifier
protected JBossNotificationBroadcasterSupport notifier(Code)
Notification broadcaster for this Model MBean.



notifierSequence
protected long notifierSequence(Code)
Notification sequence number for generic Model MBean notifications.



persistence
protected PersistenceManager persistence(Code)
Persistence manager.



resourceType
protected String resourceType(Code)
The resource type string of the managed resource, such as ModelMBeanConstants.OBJECT_REF or XMBeanConstants.STANDARD_INTERFACE . This type string can be used by the invoker to determine the behavior implemented by the invocation chain and how the managed resource is exposed to the client programs.




Constructor Detail
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




Method Detail
addAttributeChangeNotificationListener
public void addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) throws MBeanException(Code)



addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code)



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 -



getInterceptors
protected List getInterceptors(Descriptor d) throws Exception(Code)

Parameters:
  d -
throws:
  Exception -



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)



init
protected void init(MBeanServer server, ObjectName name) throws Exception(Code)

Parameters:
  server -
Parameters:
  name -
throws:
  Exception -



initAttributeContexts
protected void initAttributeContexts(MBeanAttributeInfo[] attributes)(Code)



initOperationContexts
protected void initOperationContexts(MBeanOperationInfo[] operations)(Code)



initPersistence
protected void initPersistence(MBeanServer server, ObjectName name) throws MBeanException, InstanceNotFoundException(Code)
initializes the persistence manager based on the info for this bean. If this is successful, loads the bean from the persistence store.



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)



load
public void load() throws MBeanException, InstanceNotFoundException(Code)



override
protected void override(Invocation invocation) throws MBeanException(Code)



removeAttributeChangeNotificationListener
public void removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName) throws MBeanException, ListenerNotFoundException(Code)



removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)



removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(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.



sendNotification
public void sendNotification(String ntfyText) throws MBeanException, RuntimeOperationsException(Code)
Sends a notification with a given string message. The notification type will be set as ModelMBeanConstants.GENERIC_MODELMBEAN_NOTIFICATION GENERIC_MODELMBEAN_NOTIFICATION .
Parameters:
  ntfyText - notification message



sendNotification
public void sendNotification(Notification ntfyObj) throws MBeanException, RuntimeOperationsException(Code)
Sends a notification.
Parameters:
  ntfyObj - notification to send



setManagedResource
public void setManagedResource(Object ref, String resourceType) throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException(Code)
Sets the managed resource for this Model MBean instance. The resource type must be known to the Model MBean implementation (see ModelMBeanInvoker.isSupportedResourceType for more information).
Parameters:
  ref - reference to the managed resource
Parameters:
  resourceType - resource type identification string



setModelMBeanInfo
public void setModelMBeanInfo(ModelMBeanInfo info) throws MBeanException, RuntimeOperationsException(Code)
Sets the MBean metadata for this Model MBean instance.
Parameters:
  info - Model MBean metadata



setValuesFromMBeanInfo
protected void setValuesFromMBeanInfo() throws JMException(Code)



store
public void store() throws MBeanException, InstanceNotFoundException(Code)



Fields inherited from org.jboss.mx.server.AbstractMBeanInvoker
protected Map attributeContextMap(Code)(Java Doc)
protected Map constructorContextMap(Code)(Java Doc)
protected boolean dynamicResource(Code)(Java Doc)
protected InvocationContext getMBeanInfoCtx(Code)(Java Doc)
protected MBeanInfo info(Code)(Java Doc)
protected Logger log(Code)(Java Doc)
protected Map operationContextMap(Code)(Java Doc)
protected InvocationContext postDeregisterCtx(Code)(Java Doc)
protected InvocationContext postRegisterCtx(Code)(Java Doc)
protected InvocationContext preDeregisterCtx(Code)(Java Doc)
protected InvocationContext preRegisterCtx(Code)(Java Doc)
protected MBeanEntry resourceEntry(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.