Java Doc for GBeanInstance.java in  » EJB-Server-geronimo » kernel » org » apache » geronimo » gbean » runtime » 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 geronimo » kernel » org.apache.geronimo.gbean.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.geronimo.gbean.runtime.GBeanInstance

GBeanInstance
final public class GBeanInstance implements StateManageable(Code)
A GBeanInstance is a J2EE Management Managed Object, and is standard base for Geronimo services.
version:
   $Rev:385718 $ $Date: 2008-01-04 16:47:14 -0800 (Fri, 04 Jan 2008) $


Field Summary
final public static  StringRAW_INVOKER
    

Constructor Summary
public  GBeanInstance(GBeanData gbeanData, Kernel kernel, DependencyManager dependencyManager, LifecycleBroadcaster lifecycleBroadcaster, ClassLoader classLoader)
    

Method Summary
 booleancreateInstance()
    
 booleandestroyInstance(boolean stop)
    
public  voiddie()
    
public  booleanequals(Object obj)
    
final public  AbstractNamegetAbstractName()
    
public  ObjectgetAttribute(int index)
     Gets the attribute value using the attribute index.
public  ObjectgetAttribute(String attributeName)
     Gets an attribute's value by name.
public  MapgetAttributeIndex()
     Gets an unmodifiable map from attribute names to index number (Integer).
public  ClassLoadergetClassLoader()
     The class loader used to build this gbean.
public  GBeanDatagetGBeanData()
     Gets the gbean data for the gbean held by this gbean mbean.
public  GBeanInfogetGBeanInfo()
     Gets the GBeanInfo used to build this gbean.
public  StringgetName()
     Gets the name of the GBean as defined in the gbean info.
final public  StringgetObjectName()
    
final public  ObjectNamegetObjectNameObject()
    
public  MapgetOperationIndex()
     Gets an unmodifiable map from operation signature (GOperationSignature) to index number (Integer).
final public synchronized  longgetStartTime()
    
public  intgetState()
    
final public  StategetStateInstance()
    
public  StringgetStateReason()
     Gets the reason we are in the current state.
public synchronized  ObjectgetTarget()
    
public  ClassgetType()
    
public  inthashCode()
    
public  Objectinvoke(int index, Object[] arguments)
     Invokes an opreation using the operation index.
public  Objectinvoke(String operationName, Object[] arguments, String[] types)
     Invokes an operation on the target gbean by method signature.
public synchronized  booleanisDead()
     Has this gbean instance been destroyed.
final  voidreferenceFailed()
     Moves this GBeanInstance to the FAILED state.
public  voidsetAttribute(int index, Object value)
     Sets the attribute value using the attribute index.
public  voidsetAttribute(String attributeName, Object value)
     Sets an attribute's value by name.
public  voidsetAttribute(String attributeName, Object value, boolean manage)
    
public synchronized  voidsetInstanceRegistry(InstanceRegistry instanceRegistry)
    
public  voidsetStateReason(String reason)
     Sets the reason we are in the current state.
final public  voidstart()
     Moves this GBeanInstance to the starting state and then attempts to move this MBean immediately to the running state.
final public  voidstartRecursive()
     Starts this GBeanInstance and then attempts to start all of its start dependent children.
final public  voidstop()
     Moves this GBeanInstance to the STOPPING state, calls stop on all start dependent children, and then attempt to move this MBean to the STOPPED state.
public  StringtoString()
    

Field Detail
RAW_INVOKER
final public static String RAW_INVOKER(Code)
Attribute name used to retrieve the RawInvoker for the GBean




Constructor Detail
GBeanInstance
public GBeanInstance(GBeanData gbeanData, Kernel kernel, DependencyManager dependencyManager, LifecycleBroadcaster lifecycleBroadcaster, ClassLoader classLoader) throws InvalidConfigurationException(Code)
Construct a GBeanMBean using the supplied GBeanData and class loader
Parameters:
  gbeanData - the data for the new GBean including GBeanInfo, intial attribute values, and reference patterns
Parameters:
  classLoader - the class loader used to load the gbean instance and attribute/reference types
throws:
  org.apache.geronimo.gbean.InvalidConfigurationException - if the gbeanInfo is inconsistent with the actual java classes, such asmismatched attribute types or the intial data cannot be set




Method Detail
createInstance
boolean createInstance() throws Exception(Code)



destroyInstance
boolean destroyInstance(boolean stop) throws Exception(Code)



die
public void die() throws GBeanNotFoundException(Code)



equals
public boolean equals(Object obj)(Code)



getAbstractName
final public AbstractName getAbstractName()(Code)



getAttribute
public Object getAttribute(int index) throws Exception(Code)
Gets the attribute value using the attribute index. This is the most efficient way to get an attribute as it avoids a HashMap lookup.
Parameters:
  index - the index of the attribute the attribute value
throws:
  Exception - if a target instance throws and exception
throws:
  IndexOutOfBoundsException - if the index is invalid



getAttribute
public Object getAttribute(String attributeName) throws NoSuchAttributeException, Exception(Code)
Gets an attribute's value by name. This get style is less efficient becuse the attribute must first be looked up in a HashMap.
Parameters:
  attributeName - the name of the attribute to retrieve the attribute value
throws:
  Exception - if a problem occurs while getting the value
throws:
  NoSuchAttributeException - if the attribute name is not found in the map



getAttributeIndex
public Map getAttributeIndex()(Code)
Gets an unmodifiable map from attribute names to index number (Integer). This index number can be used to efficiently set or retrieve an attribute value. an unmodifiable map of attribute indexes by name



getClassLoader
public ClassLoader getClassLoader()(Code)
The class loader used to build this gbean. This class loader is set into the thread context class loader before callint the target instace. the class loader used to build this gbean



getGBeanData
public GBeanData getGBeanData()(Code)
Gets the gbean data for the gbean held by this gbean mbean. the gbean data



getGBeanInfo
public GBeanInfo getGBeanInfo()(Code)
Gets the GBeanInfo used to build this gbean. the GBeanInfo used to build this gbean



getName
public String getName()(Code)
Gets the name of the GBean as defined in the gbean info. the gbean name



getObjectName
final public String getObjectName()(Code)



getObjectNameObject
final public ObjectName getObjectNameObject()(Code)



getOperationIndex
public Map getOperationIndex()(Code)
Gets an unmodifiable map from operation signature (GOperationSignature) to index number (Integer). This index number can be used to efficciently invoke the operation. an unmodifiable map of operation indexec by signature



getStartTime
final public synchronized long getStartTime()(Code)



getState
public int getState()(Code)



getStateInstance
final public State getStateInstance()(Code)



getStateReason
public String getStateReason()(Code)
Gets the reason we are in the current state. the reason we are in the current state



getTarget
public synchronized Object getTarget()(Code)



getType
public Class getType()(Code)
The java type of the wrapped gbean instance the java type of the gbean



hashCode
public int hashCode()(Code)



invoke
public Object invoke(int index, Object[] arguments) throws Exception(Code)
Invokes an opreation using the operation index. This is the most efficient way to invoke an operation as it avoids a HashMap lookup.
Parameters:
  index - the index of the attribute
Parameters:
  arguments - the arguments to the operation the result of the operation
throws:
  Exception - if a target instance throws and exception
throws:
  IndexOutOfBoundsException - if the index is invalid
throws:
  IllegalStateException - if the gbean instance has been destroyed



invoke
public Object invoke(String operationName, Object[] arguments, String[] types) throws Exception, NoSuchOperationException(Code)
Invokes an operation on the target gbean by method signature. This style if invocation is inefficient, because the target method must be looked up in a hashmap using a freshly constructed GOperationSignature object.
Parameters:
  operationName - the name of the operation to invoke
Parameters:
  arguments - arguments to the operation
Parameters:
  types - types of the operation arguemtns the result of the operation
throws:
  Exception - if a target instance throws and exception
throws:
  NoSuchOperationException - if the operation signature is not found in the map
throws:
  IllegalStateException - if the gbean instance has been destroyed



isDead
public synchronized boolean isDead()(Code)
Has this gbean instance been destroyed. An destroyed gbean can no longer be used. true if the gbean has been destroyed



referenceFailed
final void referenceFailed()(Code)
Moves this GBeanInstance to the FAILED state. There are no calls to dependent children, but they will be notified using standard J2EE management notification.



setAttribute
public void setAttribute(int index, Object value) throws Exception, IndexOutOfBoundsException(Code)
Sets the attribute value using the attribute index. This is the most efficient way to set an attribute as it avoids a HashMap lookup.
Parameters:
  index - the index of the attribute
Parameters:
  value - the new value of attribute value
throws:
  Exception - if a target instance throws and exception
throws:
  IndexOutOfBoundsException - if the index is invalid



setAttribute
public void setAttribute(String attributeName, Object value) throws Exception, NoSuchAttributeException(Code)
Sets an attribute's value by name. This set style is less efficient becuse the attribute must first be looked up in a HashMap.
Parameters:
  attributeName - the name of the attribute to retrieve
Parameters:
  value - the new attribute value
throws:
  Exception - if a target instance throws and exception
throws:
  NoSuchAttributeException - if the attribute name is not found in the map



setAttribute
public void setAttribute(String attributeName, Object value, boolean manage) throws Exception, NoSuchAttributeException(Code)



setInstanceRegistry
public synchronized void setInstanceRegistry(InstanceRegistry instanceRegistry)(Code)



setStateReason
public void setStateReason(String reason)(Code)
Sets the reason we are in the current state.
Parameters:
  reason - The reason we are in the current state



start
final public void start()(Code)
Moves this GBeanInstance to the starting state and then attempts to move this MBean immediately to the running state.
throws:
  IllegalStateException - If the gbean is disabled



startRecursive
final public void startRecursive()(Code)
Starts this GBeanInstance and then attempts to start all of its start dependent children.
throws:
  IllegalStateException - If the gbean is disabled



stop
final public void stop()(Code)
Moves this GBeanInstance to the STOPPING state, calls stop on all start dependent children, and then attempt to move this MBean to the STOPPED state.



toString
public String toString()(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.