Java Doc for AbstractMBeanInvoker.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » server » 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.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

All known Subclasses:   org.jboss.mx.modelmbean.ModelMBeanInvoker,  org.jboss.mx.server.RawDynamicInvoker,
AbstractMBeanInvoker
abstract public class AbstractMBeanInvoker implements MBeanInvoker(Code)
A base MBeanInvoker class that provides common state
author:
   Juha Lindfors.
author:
   Scott Stark.
author:
   Dimitris Andreadis.
version:
   $Revision: 57200 $

Inner Class :final protected class OperationKey

Field Summary
protected  MapattributeContextMap
    
protected  MapconstructorContextMap
    
protected  booleandynamicResource
    
protected  InvocationContextgetMBeanInfoCtx
    
protected  MBeanInfoinfo
     The metadata describing this MBean.
protected  Loggerlog
    
protected  MapoperationContextMap
    
protected  InvocationContextpostDeregisterCtx
    
protected  InvocationContextpostRegisterCtx
    
protected  InvocationContextpreDeregisterCtx
    
protected  InvocationContextpreRegisterCtx
    
static  ThreadLocalpreRegisterInfo
    
protected  MBeanEntryresourceEntry
    

Constructor Summary
public  AbstractMBeanInvoker()
     Constructs a new invoker.
public  AbstractMBeanInvoker(Object resource)
     Constructs a new invoker with a given target resource.
public  AbstractMBeanInvoker(MBeanEntry resourceEntry)
     Constructs an invoker with the target resource entry.

Method Summary
public  voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    
protected  voidaddNotificationListenerToResource(NotificationListener listener, NotificationFilter filter, Object handback)
    
public  voidaddOperationInterceptor(Interceptor interceptor)
     Add dynamically an operation interceptor, first in the chain.
public  ObjectgetAttribute(String attribute)
     Returns an attribte value.
public  AttributeListgetAttributes(java.lang.String[] attributes)
    
public  longgetInvocationTimeout()
    
public static  MBeanEntrygetMBeanEntry()
    
public  MBeanInfogetMBeanInfo()
    
public  MBeanInfogetMetaData()
    
public  MBeanNotificationInfo[]getNotificationInfo()
    
protected  MBeanNotificationInfo[]getNotificationInfoFromResource()
    
public  ObjectNamegetObjectName()
    
public  ObjectgetResource()
    
public  MBeanServergetServer()
    
protected  StringgetSignatureString(String[] signature)
    
protected  voidinitAttributeContexts(MBeanAttributeInfo[] attributes)
    
protected  voidinitDispatchers()
    
protected  voidinitOperationContexts(MBeanOperationInfo[] operations)
    
protected  voidinject(String type, String name, Class argType, Object value)
    
public  Objectinvoke(String operationName, Object[] args, String[] signature)
     Invokes the target resource.
protected  voidinvokePostDeregister()
    
protected  voidinvokePostRegister(Boolean b)
    
protected  voidinvokePreDeregister()
    
protected  ObjectNameinvokePreRegister(MBeanServer server, ObjectName name)
    
public  booleanisSuspended()
    
protected  voidoverride(Invocation invocation)
    
public  voidpostDeregister()
    
public  voidpostRegister(Boolean registrationSuccessful)
    
public  voidpreDeregister()
    
public  ObjectNamepreRegister(MBeanServer server, ObjectName name)
     Initializes this invoker.
public  voidremoveNotificationListener(NotificationListener listener)
    
public  voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    
protected  voidremoveNotificationListenerFromResource(NotificationListener listener)
    
protected  voidremoveNotificationListenerFromResource(NotificationListener listener, NotificationFilter filter, Object handback)
    
public  voidremoveOperationInterceptor(Interceptor interceptor)
    
public  voidresume()
    
public  voidsetAttribute(Attribute attribute)
     Sets an attribute value.
public  AttributeListsetAttributes(AttributeList attributes)
    
public  voidsetInvocationTimeout(long time)
    
public static  voidsetMBeanEntry(MBeanEntry entry)
     Set the MBeanEntry thread local value.
public  voidsetResource(Object resource)
    
public  voidsuspend()
    
public  voidsuspend(long wait)
    
public  voidsuspend(boolean force)
    
public  voidupdateAttributeInfo(Descriptor attrDesc)
    

Field Detail
attributeContextMap
protected Map attributeContextMap(Code)



constructorContextMap
protected Map constructorContextMap(Code)



dynamicResource
protected boolean dynamicResource(Code)
Whether this is a dynamic resource



getMBeanInfoCtx
protected InvocationContext getMBeanInfoCtx(Code)



info
protected MBeanInfo info(Code)
The metadata describing this MBean.



log
protected Logger log(Code)



operationContextMap
protected Map operationContextMap(Code)



postDeregisterCtx
protected InvocationContext postDeregisterCtx(Code)



postRegisterCtx
protected InvocationContext postRegisterCtx(Code)



preDeregisterCtx
protected InvocationContext preDeregisterCtx(Code)



preRegisterCtx
protected InvocationContext preRegisterCtx(Code)



preRegisterInfo
static ThreadLocal preRegisterInfo(Code)
Used to propagate the MBeanEntry during the preRegister callback



resourceEntry
protected MBeanEntry resourceEntry(Code)
The mbean server register entry used for the TCL




Constructor Detail
AbstractMBeanInvoker
public AbstractMBeanInvoker()(Code)
Constructs a new invoker.



AbstractMBeanInvoker
public AbstractMBeanInvoker(Object resource)(Code)
Constructs a new invoker with a given target resource.



AbstractMBeanInvoker
public AbstractMBeanInvoker(MBeanEntry resourceEntry)(Code)
Constructs an invoker with the target resource entry.
Parameters:
  resourceEntry -




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



addNotificationListenerToResource
protected void addNotificationListenerToResource(NotificationListener listener, NotificationFilter filter, Object handback)(Code)



addOperationInterceptor
public void addOperationInterceptor(Interceptor interceptor)(Code)
Add dynamically an operation interceptor, first in the chain.



getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)
Returns an attribte value. The request for the value is forced through a set of interceptors before the value is returned.
Parameters:
  attribute - attribute name attribute value
throws:
  AttributeNotFoundException - if the requested attribute is not partof the MBean's management interface
throws:
  MBeanException - if retrieving the attribute value causes anapplication exception
throws:
  ReflectionException - if there was an error trying to retrieve theattribute value



getAttributes
public AttributeList getAttributes(java.lang.String[] attributes)(Code)



getInvocationTimeout
public long getInvocationTimeout()(Code)



getMBeanEntry
public static MBeanEntry getMBeanEntry()(Code)
An accessor for the MBeanEntry thread local



getMBeanInfo
public MBeanInfo getMBeanInfo()(Code)



getMetaData
public MBeanInfo getMetaData()(Code)



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)



getNotificationInfoFromResource
protected MBeanNotificationInfo[] getNotificationInfoFromResource()(Code)



getObjectName
public ObjectName getObjectName()(Code)



getResource
public Object getResource()(Code)



getServer
public MBeanServer getServer()(Code)



getSignatureString
protected String getSignatureString(String[] signature)(Code)



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



initDispatchers
protected void initDispatchers()(Code)



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



inject
protected void inject(String type, String name, Class argType, Object value)(Code)
Inject context from the xmbean layer to the resource
Parameters:
  type - - the type of injection
Parameters:
  name - - the setter method name of the resource
Parameters:
  argType - - the injection data type
Parameters:
  value - - the injection data value to pass to the setter



invoke
public Object invoke(String operationName, Object[] args, String[] signature) throws MBeanException, ReflectionException(Code)
Invokes the target resource. The default invocation used by this invoker implement sends the invocation through a stack of interceptors before reaching the target method.
Parameters:
  operationName - name of the target method
Parameters:
  args - argumetns for the target method
Parameters:
  signature - signature of the target method
throws:
  MBeanException - if the target method raised a hecked exception
throws:
  ReflectionException - if there was an error trying to resolve orinvoke the target method
throws:
  RuntimeMBeanException - if the target method raised an uncheckedexception



invokePostDeregister
protected void invokePostDeregister()(Code)



invokePostRegister
protected void invokePostRegister(Boolean b)(Code)



invokePreDeregister
protected void invokePreDeregister() throws Exception(Code)



invokePreRegister
protected ObjectName invokePreRegister(MBeanServer server, ObjectName name) throws Exception(Code)



isSuspended
public boolean isSuspended()(Code)



override
protected void override(Invocation invocation) throws MBeanException(Code)
Placeholder to allow subclasses to override the invocation
Parameters:
  invocation - the invocation
throws:
  MBeanException - for any error



postDeregister
public void postDeregister()(Code)



postRegister
public void postRegister(Boolean registrationSuccessful)(Code)



preDeregister
public void preDeregister() throws Exception(Code)



preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)
Initializes this invoker. At the registration time we can be sure that all of the metadata is available and initialize the invoker and cache the data accordingly.

Subclasses that override the preRegister method must make sure they call super.preRegister() in their implementation to ensure proper initialization of the invoker.




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



removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)



removeNotificationListenerFromResource
protected void removeNotificationListenerFromResource(NotificationListener listener) throws ListenerNotFoundException(Code)



removeNotificationListenerFromResource
protected void removeNotificationListenerFromResource(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)



removeOperationInterceptor
public void removeOperationInterceptor(Interceptor interceptor)(Code)
Remove the specified operation interceptor



resume
public void resume()(Code)



setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)
Sets an attribute value. The operation is forced through a set of interceptors before the new value for the attribute is set.
Parameters:
  attribute - new attribute value
throws:
  AttributeNotFoundException - if the requested attribute is not partof the MBean's management interface
throws:
  InvalidAttributeValueException - if the attribute contains a valuenot suitable for the attribute
throws:
  MBeanException - if setting the attribute value causes anapplication exception
throws:
  ReflectionException - if there was an error trying to set theattribute value.



setAttributes
public AttributeList setAttributes(AttributeList attributes)(Code)



setInvocationTimeout
public void setInvocationTimeout(long time)(Code)



setMBeanEntry
public static void setMBeanEntry(MBeanEntry entry)(Code)
Set the MBeanEntry thread local value.
Parameters:
  entry - - the entry that will be used on successful registration



setResource
public void setResource(Object resource)(Code)
Sets the XMBean resource and optionally allows the resource to interact with the jmx microkernel via the following injection points: #ModelMBeanConstants.MBEAN_SERVER_INJECTION_TYPE #ModelMBeanConstants.MBEAN_INFO_INJECTION_TYPE #ModelMBeanConstants.OBJECT_NAME_INJECTION_TYPE
Parameters:
  resource - - the model mbean resource



suspend
public void suspend()(Code)



suspend
public void suspend(long wait) throws TimeoutException(Code)



suspend
public void suspend(boolean force)(Code)



updateAttributeInfo
public void updateAttributeInfo(Descriptor attrDesc) throws MBeanException(Code)



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.