Java Doc for ComponentConfiguration.java in  » ESB » open-esb » com » sun » jbi » framework » 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 » ESB » open esb » com.sun.jbi.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.framework.ComponentConfiguration

ComponentConfiguration
public class ComponentConfiguration implements com.sun.jbi.management.ComponentConfiguration(Code)
The ComponentConfiguration is a dynamic facade MBean for component configuration. This MBean provides a facade for managing component static, variable and named configuration. This ComponentExtension MBean is registered for each installation of the component on a target i.e it is target specific.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  ComponentConfiguration(EnvironmentContext ctx, String compName)
    

Method Summary
public  StringaddApplicationConfiguration(String name, Properties appCfgProps)
     Add an application configuration.
public  StringaddApplicationConfiguration(String name, CompositeData appConfig)
     Add an application configuration.
public  StringaddApplicationVariable(String name, CompositeData appVar)
     This operation adds a new application variable.
public  StringdeleteApplicationConfiguration(String name)
     Delete an application configuration.
public  StringdeleteApplicationVariable(String name)
     This operation deletes an application variable, if a variable with the specified name does not exist, it's an error.
Parameters:
  name - - name of the application variable
throws:
  MBeanException - on errors.
public  TabularDatagetApplicationConfigurations()
     Get a Map of all application configurations for the component. a TabularData of all the application configurations for a component keyed by the configuration name.
public  TabularDatagetApplicationVariables()
     Get the Application Variable set for a component. a TabularData which has all the applicationvariables set on the component.
public  ObjectgetAttribute(String attribute)
     Obtain the value of a specific attribute of the Dynamic MBean.
protected  MBeanAttributeInfogetAttributeInfo(String attribute)
    
public  AttributeListgetAttributes(String[] attributes)
     Get the values of several attributes of the Dynamic MBean.
Parameters:
  attributes - A list of the attributes to be retrieved.
protected  StringgetComponentConfigurationData(String compName)
     Get the the "Configuration" element in the jbi.xml.
protected  StringgetComponentConfigurationNS(String compName)
     Get the namespace of the "Configuration" element in the jbi.xml, if one exists.
public  MBeanInfogetMBeanInfo()
     Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
public  Objectinvoke(String actionName, Object[] params, String[] signature)
     Allows an action to be invoked on the Dynamic MBean.
Parameters:
  actionName - The name of the action to be invoked.
Parameters:
  params - An array containing the parameters to be set when the action is invoked.
Parameters:
  signature - An array containing the signature of the action.
public  booleanisAppConfigSupported()
     Detect the components support for application configuration.
public  booleanisAppVarsSupported()
     Detect the components support for application variables.
public  booleanisComponentConfigSupported()
     Detect the components support for component configuration.
public  CompositeTypequeryApplicationConfigurationType()
    
public  StringretrieveConfigurationDisplayData()
     Retrieves the component configuration metadata.
public  StringretrieveConfigurationDisplaySchema()
     Retrieves the component specific configuration schema.
public  StringsetApplicationConfiguration(String name, Properties appCfgProps)
     Update a application configuration.
public  StringsetApplicationConfiguration(String name, CompositeData appConfig)
     Update a application configuration.
public  StringsetApplicationVariable(String name, CompositeData appVar)
     This operation sets an application variable.
public  voidsetAttribute(Attribute attribute)
     Set the value of a specific attribute of the Dynamic MBean.
public  AttributeListsetAttributes(AttributeList attributes)
     Sets the values of several attributes of the Dynamic MBean.
Parameters:
  attributes - A list of attributes: The identification of theattributes to be set and the values they are to be set to.
public  StringsetConfigurationAttribute(Attribute attrib)
     Set a single configuration attribute on a target.
Parameters:
  attrib - - the configuration attribute to be set.
public  StringsetConfigurationAttributes(AttributeList attribList)
    


Constructor Detail
ComponentConfiguration
public ComponentConfiguration(EnvironmentContext ctx, String compName)(Code)




Method Detail
addApplicationConfiguration
public String addApplicationConfiguration(String name, Properties appCfgProps) throws MBeanException(Code)
Add an application configuration. The configuration name is a part of the CompositeData. The itemName for the configuration name is "configurationName" and the type is SimpleType.STRING
Parameters:
  name - - configuration name, must match the value of the field "name" in the namedConfig
Parameters:
  appCfgProps - - application configuration properties
throws:
  MBeanException - if the application configuration cannot be added. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



addApplicationConfiguration
public String addApplicationConfiguration(String name, CompositeData appConfig) throws MBeanException(Code)
Add an application configuration. The configuration name is a part of the CompositeData. The itemName for the configuration name is "configurationName" and the type is SimpleType.STRING
Parameters:
  name - - configuration name, must match the value of the field "name" in the namedConfig
Parameters:
  appConfig - - application configuration composite
throws:
  MBeanException - if the application configuration cannot be added. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



addApplicationVariable
public String addApplicationVariable(String name, CompositeData appVar) throws MBeanException(Code)
This operation adds a new application variable. If a variable already exists with the same name as that specified then the operation fails.
Parameters:
  name - - name of the application variable
Parameters:
  appVar - - this is the application variable compoiste
throws:
  MBeanException - if an error occurs in adding the application variables to the component. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



deleteApplicationConfiguration
public String deleteApplicationConfiguration(String name) throws MBeanException(Code)
Delete an application configuration.
Parameters:
  name - - identification of the application configuration to be deleted
throws:
  MBeanException - if the configuration cannot be deleted. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



deleteApplicationVariable
public String deleteApplicationVariable(String name) throws MBeanException(Code)
This operation deletes an application variable, if a variable with the specified name does not exist, it's an error.
Parameters:
  name - - name of the application variable
throws:
  MBeanException - on errors. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



getApplicationConfigurations
public TabularData getApplicationConfigurations()(Code)
Get a Map of all application configurations for the component. a TabularData of all the application configurations for a component keyed by the configuration name.



getApplicationVariables
public TabularData getApplicationVariables()(Code)
Get the Application Variable set for a component. a TabularData which has all the applicationvariables set on the component.



getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)
Obtain the value of a specific attribute of the Dynamic MBean.
Parameters:
  attribute - The name of the attribute to be retrieved The value of the attribute retrieved.
exception:
  AttributeNotFoundException -
exception:
  MBeanException - Wraps a java.lang.Exception thrown by the MBean's getter.
exception:
  ReflectionException - Wraps a java.lang.Exceptionthrown while trying to invoke the getter.
See Also:   ComponentConfiguration.setAttribute



getAttributeInfo
protected MBeanAttributeInfo getAttributeInfo(String attribute)(Code)

Parameters:
  attribute - identification of the attribute the MBeanAttributeInfo for the specified attribute



getAttributes
public AttributeList getAttributes(String[] attributes)(Code)
Get the values of several attributes of the Dynamic MBean.
Parameters:
  attributes - A list of the attributes to be retrieved. The list of attributes retrieved.
See Also:   ComponentConfiguration.setAttributes



getComponentConfigurationData
protected String getComponentConfigurationData(String compName)(Code)
Get the the "Configuration" element in the jbi.xml. If the Configuration element is missing in the jbi.xml a null value is returned
Parameters:
  compName - - component name the configuration xml string



getComponentConfigurationNS
protected String getComponentConfigurationNS(String compName)(Code)
Get the namespace of the "Configuration" element in the jbi.xml, if one exists. Return an empty string if a "Configuration" emenet is not defined.
Parameters:
  compName - - component name the configuration element namespace



getMBeanInfo
public MBeanInfo getMBeanInfo()(Code)
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object. An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.



invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException(Code)
Allows an action to be invoked on the Dynamic MBean.
Parameters:
  actionName - The name of the action to be invoked.
Parameters:
  params - An array containing the parameters to be set when the action is invoked.
Parameters:
  signature - An array containing the signature of the action. The class objects will be loaded through the same class loader as theone used for loading the MBean on which the action is invoked. The object returned by the action, which represents the result ofinvoking the action on the MBean specified.
exception:
  MBeanException - Wraps a java.lang.Exception thrownby the MBean's invoked method.
exception:
  ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method



isAppConfigSupported
public boolean isAppConfigSupported() throws MBeanException(Code)
Detect the components support for application configuration. This method returns true if the component has a configuration MBean and implements all the operations for application configuration management. true if the components configuration MBean implements all theoperations for application configuration.
throws:
  MBeanException - if the component is not installed or is not in the Started state.



isAppVarsSupported
public boolean isAppVarsSupported() throws MBeanException(Code)
Detect the components support for application variables. This method returns true if the component has a configuration MBean and implements all the operations for application variable management. true if the components configuration MBean implements all theoperations for application variables.
throws:
  MBeanException - if the component is not installed or is not in the Started state.



isComponentConfigSupported
public boolean isComponentConfigSupported() throws MBeanException(Code)
Detect the components support for component configuration. This method returns true if the component has a configuration MBean with configuration attributes. true if the components configuration MBean has configurationattributes.
throws:
  MBeanException - if the component is not installed or is not in the Started state.



queryApplicationConfigurationType
public CompositeType queryApplicationConfigurationType()(Code)
Get the CompositeType definition for the components application configuration the CompositeType for the components application configuration.



retrieveConfigurationDisplayData
public String retrieveConfigurationDisplayData()(Code)
Retrieves the component configuration metadata. The XML data conforms to the component configuration schema. a String containing the configuration metadata.



retrieveConfigurationDisplaySchema
public String retrieveConfigurationDisplaySchema()(Code)
Retrieves the component specific configuration schema. a String containing the configuration schema.



setApplicationConfiguration
public String setApplicationConfiguration(String name, Properties appCfgProps) throws MBeanException(Code)
Update a application configuration. The configuration name is a part of the CompositeData. The itemName for the configuration name is "configurationName" and the type is SimpleType.STRING
Parameters:
  name - - configuration name, must match the value of the field "configurationName" in the appConfig
Parameters:
  appCfgProps - - application configuration properties.
throws:
  MBeanException - if there are errors encountered when updating the configuration. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



setApplicationConfiguration
public String setApplicationConfiguration(String name, CompositeData appConfig) throws MBeanException(Code)
Update a application configuration. The configuration name is a part of the CompositeData. The itemName for the configuration name is "configurationName" and the type is SimpleType.STRING
Parameters:
  name - - configuration name, must match the value of the field "configurationName" in the appConfig
Parameters:
  appConfig - - application configuration composite
throws:
  MBeanException - if there are errors encountered when updating the configuration. management message string which gives the status of the operation. For target=cluster, instance specific details are included.



setApplicationVariable
public String setApplicationVariable(String name, CompositeData appVar) throws MBeanException(Code)
This operation sets an application variable. If a variable does not exist with the same name, its an error.
Parameters:
  name - - name of the application variable
Parameters:
  appVar - - this is the application variable compoiste to be updated.
throws:
  MBeanException - if one or more application variables cannot be deleted management message string which gives the status of the operation. For target=cluster, instance specific details are included.



setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)
Set the value of a specific attribute of the Dynamic MBean.
Parameters:
  attribute - The identification of the attribute tobe set and the value it is to be set to.
exception:
  AttributeNotFoundException -
exception:
  InvalidAttributeValueException -
exception:
  MBeanException - Wraps a java.lang.Exception thrown by the MBean's setter.
exception:
  ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the MBean's setter.
See Also:   ComponentConfiguration.getAttribute



setAttributes
public AttributeList setAttributes(AttributeList attributes)(Code)
Sets the values of several attributes of the Dynamic MBean.
Parameters:
  attributes - A list of attributes: The identification of theattributes to be set and the values they are to be set to. The list of attributes that were set, with their new values.
See Also:   ComponentConfiguration.getAttributes



setConfigurationAttribute
public String setConfigurationAttribute(Attribute attrib) throws javax.jbi.JBIException(Code)
Set a single configuration attribute on a target.
Parameters:
  attrib - - the configuration attribute to be set. a management message string with the status of the operation.



setConfigurationAttributes
public String setConfigurationAttributes(AttributeList attribList) throws javax.jbi.JBIException(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.