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


com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl
   com.sun.esb.management.impl.configuration.ConfigurationServiceMBeanImpl

ConfigurationServiceMBeanImpl
public class ConfigurationServiceMBeanImpl extends AbstractListStateServiceMBeansImpl implements ConfigurationService,Serializable,Constants(Code)
Defines operations for common configuration services across the JBI Runtime, component containers, configuring logger levels, etc.
author:
   graj


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  ConfigurationServiceMBeanImpl(EnvironmentContext anEnvContext)
    

Method Summary
public  StringaddApplicationConfiguration(String componentName, String targetName, String name, Properties config)
     Add a named application configuration to a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  StringaddApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig)
     Add an application configuration.
public  StringaddApplicationVariable(String componentName, String targetName, String name, CompositeData appVar)
     This operation adds a new application variable.
public  StringaddApplicationVariables(String componentName, String targetName, Properties appVariables)
     Add application variables to a component installed on a given target.
protected  StringconvertToString(Collection colxn)
     Convert the objects in the collection to a printable string.
public  StringdeleteApplicationConfiguration(String componentName, String targetName, String name)
     Delete a named application configuration in a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  StringdeleteApplicationVariables(String componentName, String targetName, String[] appVariableNames)
     Delete application variables from a component installed on a given target.
public  StringexportApplicationConfiguration(String applicationName, String targetName, String configDir)
     This method is used to export the application variables and application configuration objects used by the given application in the specified target.
public  PropertiesgetApplicationConfiguration(String componentName, String name, String targetName)
     Get a specific named configuration.
public  Map<String, Properties>getApplicationConfigurations(String componentName, String targetName)
     Get all the application configurations set on a component.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  TabularDatagetApplicationConfigurationsAsTabularData(String componentName, String targetName)
     Get a Map of all application configurations for the component.
protected  Map<String, Properties>getApplicationConfigurationsMap(TabularData td)
     Convert a application configuration TabularData to a Map keyed by the "configurationName".
public  PropertiesgetApplicationVariables(String componentName, String targetName)
     Get all the application variables set on a component. all the application variables et on the component.
public  TabularDatagetApplicationVariablesAsTabularData(String componentName, String targetName)
     Get the Application Variable set for a component.
public  PropertiesgetComponentConfiguration(String componentName, String targetName)
    
public  Map<String /*attributeName*/, ObjectgetComponentConfigurationAsMap(String componentName, String targetName)
    
protected  ObjectNamegetComponentConfigurationFacadeMBeanName(String componentName, String targetName)
     Get the component configuration facade MBean name for the target.
protected  PropertiesgetComponentConfigurationForClusteredServer(String componentName, String targetName)
    
public  Map<String, ObjectName[]>getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName)
    
public  ObjectName[]getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName)
    
public  Map<String, String>getComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName)
     Gets the component custom loggers and their display names.
public  Map<String, Level>getComponentLoggerLevels(String componentName, String targetName, String targetInstanceName)
    
protected  ObjectNamegetConfigMBeanName(String componentName, String targetName)
    
protected  PropertiesgetConfigurationAttributeValues(ObjectName objectName)
    
protected  Map<String /*attributeName*/, ObjectgetConfigurationAttributeValuesAsMap(ObjectName objectName)
    
public  ObjectNamegetConfigurationMBeanObjectName(String targetName, String configurationType)
    
public  PropertiesgetDefaultRuntimeConfiguration()
     This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor.
public  Map<String /*attributeName*/, ObjectgetDefaultRuntimeConfigurationAsMap()
     This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor.
public  Map<String /*attributeName*/, ObjectgetDefaultRuntimeConfigurationAsMapInternal(String targetName)
     This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor.
protected  PropertiesgetDefaultRuntimeConfigurationInternal(String targetName)
    
protected  StringgetExistingAppVarType(String compName, String targetName, String appVarName)
    
protected  ObjectNamegetExtensionMBeanObjectName(String componentName, String targetName)
     returns the ObjectName for the Extension Mbean of this component.
public  ObjectNamegetLoggingServiceMBeanObjectName(String targetName)
     returns the ObjectName for the LoggingService Mbean of this target.
public  PropertiesgetRuntimeConfiguration(String targetName)
     This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor.
public  Map<String /*attributeName*/, ObjectgetRuntimeConfigurationAsMap(String targetName)
     This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor.
 PropertiesgetRuntimeConfigurationInternal(String targetName)
    
public  PropertiesgetRuntimeConfigurationMetaData(String propertyKeyName)
     This method returns the runtime configuration metadata associated with the specified property.
 Map<String /* propertyKeyName */, Properties>getRuntimeConfigurationMetadataInternal(String targetName)
    
protected  ObjectNamegetRuntimeLoggerConfigFacadeMBeanName(String target)
    
public  StringgetRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName)
     Return the display name for a runtime logger
Parameters:
  runtimeLoggerName - name of the logger (e.g.
public  StringgetRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName, String targetInstanceName)
     Return the display name for a runtime logger
Parameters:
  runtimeLoggerName - name of the logger (e.g.
public  LevelgetRuntimeLoggerLevel(String runtimeLoggerName, String targetName, String targetInstanceName)
     Lookup the level of one runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger (e.g.
public  LevelgetRuntimeLoggerLevel(String runtimeLoggerName, String targetName)
     Lookup the level of one runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger (e.g.
public  Map<String /* runtimeLoggerName */, LevelgetRuntimeLoggerLevels(String targetName, String targetInstanceName)
    
public  Map<String /* runtimeLoggerName */, LevelgetRuntimeLoggerLevels(String targetName)
     Gets all the runtime loggers and their levels.
public  Map<String /* display name */, StringgetRuntimeLoggerNames(String targetName, String targetInstanceName)
    
public  Map<String /* display name */, StringgetRuntimeLoggerNames(String targetName)
    
public  ObjectinvokeExtensionMBeanOperation(String componentName, String extensionName, String operationName, Object[] parameters, String[] signature, String targetName, String targetInstanceName)
     Invokes an operation on an Extension MBean.
Parameters:
  componentName -
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  operationName - The name of the operation to be invoked.
Parameters:
  parameters - An array containing the parameters to be set when the operation is invoked
Parameters:
  signature - An array containing the signature of the operation.
public  booleanisAppConfigSupported(String componentName, String targetName)
     Detect the components support for application configuration.
public  booleanisAppVarsSupported(String componentName, String targetName)
     Detect the components support for application variables.
public  booleanisComponentConfigSupported(String componentName, String targetName)
     Detect the components support for component configuration.
public  booleanisServerRestartRequired()
     checks if the server need to be restarted to apply the changes made to some of the configuration parameters. true if server need to be restarted for updated configuration totake effect.
public  String[]listApplicationConfigurationNames(String componentName, String targetName)
     List all the application configurations in a component.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  CompositeTypequeryApplicationConfigurationType(String componentName, String targetName)
     Get the CompositeType definition for the components application configuration
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  StringretrieveConfigurationDisplayData(String componentName, String targetName)
     Retrieves the component configuration metadata.
public  StringretrieveConfigurationDisplaySchema(String componentName, String targetName)
     Retrieves the component specific configuration schema.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  StringsetApplicationConfiguration(String componentName, String name, Properties config, String targetName)
     Update a named application configuration in a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
public  StringsetApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig)
     Update a application configuration.
public  StringsetApplicationVariable(String componentName, String targetName, String name, CompositeData appVar)
     This operation sets an application variable.
public  StringsetApplicationVariables(String componentName, Properties appVariables, String targetName)
     Set application variables on a component installed on a given target.
public  StringsetComponentConfiguration(String componentName, Properties configurationValues, String targetName)
     Set the component static configuration.
public  StringsetComponentConfiguration(String componentName, Map<String /*attributeName*/, Object configurationValues, String targetName)
     Will return jbi mgmt message with success, failure, or partial success per instance.
 StringsetComponentConfigurationForClusteredServer(String componentName, String targetName, Properties configurationValues)
     Set component configuration for a clustered server (that is up)
Parameters:
  componentName -
Parameters:
  targetName -
Parameters:
  configurationValues - a management message indicating the status of the operation.
public  voidsetComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName)
    
protected  StringsetLevel(Level logLevel)
    
public  booleansetRuntimeConfiguration(Properties parameters, String targetName)
     This method sets one or more configuration parameters on the runtime with a list of name/value pairs passed as a properties object.
public  booleansetRuntimeConfiguration(Map<String /*attributeName*/, Object properties, String targetName)
     This method sets one or more configuration parameters on the runtime with a list of name/value pairs passed as a properties object.
protected  booleansetRuntimeConfigurationInternal(Properties properties, String targetName)
    
public  voidsetRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName, String targetInstanceName)
    
public  voidsetRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName)
    
public  StringverifyApplication(String applicationURL, boolean generateTemplates, String templateDir, boolean includeDeployCommand, String targetName)
     This method is used to verify if the application variables and application configuration objects used in the given application are available in JBI runtime in the specified target.

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
ConfigurationServiceMBeanImpl
public ConfigurationServiceMBeanImpl(EnvironmentContext anEnvContext)(Code)
Constructor - Constructs a new instance of ConfigurationServiceMBeanImpl
Parameters:
  anEnvContext -




Method Detail
addApplicationConfiguration
public String addApplicationConfiguration(String componentName, String targetName, String name, Properties config) throws ManagementRemoteException(Code)
Add a named application configuration to a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  name - application configuration name
Parameters:
  config - application configuration represented as a set of properties. a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.addApplicationConfiguration(java.lang.Stringjava.lang.Stringjava.lang.Stringjava.util.Properties)



addApplicationConfiguration
public String addApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException(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:
  componentName -
Parameters:
  targetName -
Parameters:
  name - -configuration name, must match the value of the field "name"in the namedConfig
Parameters:
  appConfig - -application configuration composite management message string which gives the status of theoperation. For target=cluster, instance specific details areincluded.
throws:
  ManagementRemoteException - if the application configuration cannot be added.



addApplicationVariable
public String addApplicationVariable(String componentName, String targetName, String name, CompositeData appVar) throws ManagementRemoteException(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:
  componentName -
Parameters:
  targetName -
Parameters:
  name - -name of the application variable
Parameters:
  appVar - -this is the application variable composite management message string which gives the status of theoperation. For target=cluster, instance specific details areincluded.
throws:
  ManagementRemoteException - if an error occurs in adding the application variables to thecomponent.



addApplicationVariables
public String addApplicationVariables(String componentName, String targetName, Properties appVariables) throws ManagementRemoteException(Code)
Add application variables to a component installed on a given target. If even a variable from the set is already set on the component, this operation fails.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  appVariables - -set of application variables to add. The values of theapplication variables have the application variable type andvalue and the format is "[type]value" a JBI Management message indicating the status of the operation.In case a variable is not added the management message has aERROR task status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.addApplicationVariables(java.lang.Stringjava.lang.Stringjava.util.Properties)



convertToString
protected String convertToString(Collection colxn)(Code)
Convert the objects in the collection to a printable string.
Parameters:
  set - a non-empty set



deleteApplicationConfiguration
public String deleteApplicationConfiguration(String componentName, String targetName, String name) throws ManagementRemoteException(Code)
Delete a named application configuration in a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  name - name of application configuration to be deleted a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.deleteApplicationConfiguration(java.lang.Stringjava.lang.Stringjava.lang.String)



deleteApplicationVariables
public String deleteApplicationVariables(String componentName, String targetName, String[] appVariableNames) throws ManagementRemoteException(Code)
Delete application variables from a component installed on a given target. If even a variable from the set has not been added to the component, this operation fails.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  appVariableNames - -names of application variables to delete. a JBI Management message indicating the status of the operation.In case a variable is not deleted the management message has aERROR task status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance *
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.deleteApplicationVariables(java.lang.Stringjava.lang.Stringjava.lang.String[])



exportApplicationConfiguration
public String exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws ManagementRemoteException(Code)
This method is used to export the application variables and application configuration objects used by the given application in the specified target.
Parameters:
  applicationName - the name of the application
Parameters:
  targetName - the target whose configuration has to be exported
Parameters:
  configDir - the dir to store the configurations
throws:
  ManagementRemoteException - if the application configuration could not be exportedNote: param configDir is used between ant/cli and common client client.The return value is used between common client server and common clientclient.
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.exportApplicationConfiguration(java.lang.Stringjava.lang.Stringjava.lang.String)



getApplicationConfiguration
public Properties getApplicationConfiguration(String componentName, String name, String targetName) throws ManagementRemoteException(Code)
Get a specific named configuration. If the named configuration does not exist in the component the returned properties is an empty set.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. the application configuration represented as a set of properties.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getApplicationConfiguration(java.lang.Stringjava.lang.Stringjava.lang.String)



getApplicationConfigurations
public Map<String, Properties> getApplicationConfigurations(String componentName, String targetName) throws ManagementRemoteException(Code)
Get all the application configurations set on a component.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. a map of all the application configurations keyed by theconfiguration name.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getApplicationConfigurations(java.lang.Stringjava.lang.String)



getApplicationConfigurationsAsTabularData
public TabularData getApplicationConfigurationsAsTabularData(String componentName, String targetName) throws ManagementRemoteException(Code)
Get a Map of all application configurations for the component.
Parameters:
  componentName -
Parameters:
  targetName - a TabularData of all the application configurations for acomponent keyed by the configuration name.
throws:
  ManagementRemoteException - if there are errors encountered when updating theconfiguration.



getApplicationConfigurationsMap
protected Map<String, Properties> getApplicationConfigurationsMap(TabularData td)(Code)
Convert a application configuration TabularData to a Map keyed by the "configurationName". The value is the application configuration represented as properties. a Map of application configuration properties



getApplicationVariables
public Properties getApplicationVariables(String componentName, String targetName) throws ManagementRemoteException(Code)
Get all the application variables set on a component. all the application variables et on the component. The returnproerties set has the name="[type]value" pairs for theapplication variables. a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getApplicationVariables(java.lang.Stringjava.lang.String)



getApplicationVariablesAsTabularData
public TabularData getApplicationVariablesAsTabularData(String componentName, String targetName) throws ManagementRemoteException(Code)
Get the Application Variable set for a component.
Parameters:
  componentName -
Parameters:
  targetName - a TabularData which has all the application variables set on thecomponent.
throws:
  ManagementRemoteException -



getComponentConfiguration
public Properties getComponentConfiguration(String componentName, String targetName) throws ManagementRemoteException(Code)
Retrieve component configuration
Parameters:
  componentName -
Parameters:
  targetName - the targetName as key and the name/value pairs as properties
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getComponentConfiguration(java.lang.Stringjava.lang.String)



getComponentConfigurationAsMap
public Map<String /*attributeName*/, Object getComponentConfigurationAsMap(String componentName, String targetName) throws ManagementRemoteException(Code)
Retrieve component configuration
Parameters:
  componentName -
Parameters:
  targetName - the targetName as key and the name/value pairs as Map
throws:
  ManagementRemoteException - on error



getComponentConfigurationFacadeMBeanName
protected ObjectName getComponentConfigurationFacadeMBeanName(String componentName, String targetName) throws ManagementRemoteException(Code)
Get the component configuration facade MBean name for the target. If the component is not installed on the target, this returns a null.
Parameters:
  componentName - -component id
Parameters:
  targetName - -target name the ObjectName of the components facade Configuration MBean for atarget.



getComponentConfigurationForClusteredServer
protected Properties getComponentConfigurationForClusteredServer(String componentName, String targetName) throws ManagementRemoteException(Code)
Retrieve component configuration for a clustered server (that is up)
Parameters:
  componentName -
Parameters:
  targetName - the targetName as key and the name/value pairs as properties



getComponentExtensionMBeanObjectNames
public Map<String, ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException(Code)
Gets the extension MBean object names
Parameters:
  componentName - name of the component
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getComponentExtensionMBeanObjectNames(java.lang.Stringjava.lang.Stringjava.lang.String)



getComponentExtensionMBeanObjectNames
public ObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets the extension MBean object names
Parameters:
  componentName - name of the component
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) an array of ObjectName(s)
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getComponentExtensionMBeanObjectNames(java.lang.Stringjava.lang.Stringjava.lang.Stringjava.lang.String)



getComponentLoggerDisplayNames
public Map<String, String> getComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets the component custom loggers and their display names.
Parameters:
  componentName - name of the component
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) a Map of loggerName to their display names
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getComponentLoggerDisplayNames(java.lang.Stringjava.lang.Stringjava.lang.String)



getComponentLoggerLevels
public Map<String, Level> getComponentLoggerLevels(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets the component custom loggers and their levels
Parameters:
  componentName - name of the component
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) a Map of loggerName to their log levels
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getComponentLoggerLevels(java.lang.Stringjava.lang.Stringjava.lang.String)



getConfigMBeanName
protected ObjectName getConfigMBeanName(String componentName, String targetName) throws ManagementRemoteException(Code)
Find the actual object config MBean Name -- used by both g/setting component configuations for clustered servers
Parameters:
  componentName -
Parameters:
  targetName - the actual component's config MBean name



getConfigurationAttributeValues
protected Properties getConfigurationAttributeValues(ObjectName objectName) throws ManagementRemoteException(Code)
Get the config extension MBean attribute values
Parameters:
  objectName -
throws:
  ManagementRemoteException -



getConfigurationAttributeValuesAsMap
protected Map<String /*attributeName*/, Object getConfigurationAttributeValuesAsMap(ObjectName objectName) throws ManagementRemoteException(Code)
Get the config extension MBean attribute values
Parameters:
  objectName -
throws:
  ManagementRemoteException -



getConfigurationMBeanObjectName
public ObjectName getConfigurationMBeanObjectName(String targetName, String configurationType) throws ManagementRemoteException(Code)
Get the JBI Runtime Configuration Service MBean Object Name
Parameters:
  targetName -
Parameters:
  configurationType -
throws:
  ManagementRemoteException -



getDefaultRuntimeConfiguration
public Properties getDefaultRuntimeConfiguration() throws ManagementRemoteException(Code)
This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor. The parameter descriptor should contain the following data that represents the parameter. name : name of the parameter value : value of the parameter as a String type. type : type of the parameter. Basic data types only. description: (optional) description of the parameter. displayName: (optional) display name of the parameter readOnly : true/false validValues : (optional) list of string values with ',' as delimiter. or a range value with - with a '-' as delimiter. min and max strings will be converted to the parameter type and then used to validate the value of the parameter.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server Properties that represents the list of configuration parameterdescriptors.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getDefaultRuntimeConfiguration



getDefaultRuntimeConfigurationAsMap
public Map<String /*attributeName*/, Object getDefaultRuntimeConfigurationAsMap() throws ManagementRemoteException(Code)
This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor. The parameter descriptor should contain the following data that represents the parameter. name : name of the parameter value : value of the parameter as a String type. type : type of the parameter. Basic data types only. description: (optional) description of the parameter. displayName: (optional) display name of the parameter readOnly : true/false validValues : (optional) list of string values with ',' as delimiter. or a range value with - with a '-' as delimiter. min and max strings will be converted to the parameter type and then used to validate the value of the parameter. Map that represents the list of configuration parameterdescriptors.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



getDefaultRuntimeConfigurationAsMapInternal
public Map<String /*attributeName*/, Object getDefaultRuntimeConfigurationAsMapInternal(String targetName) throws ManagementRemoteException(Code)
This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor. The parameter descriptor should contain the following data that represents the parameter. name : name of the parameter value : value of the parameter as a String type. type : type of the parameter. Basic data types only. description: (optional) description of the parameter. displayName: (optional) display name of the parameter readOnly : true/false validValues : (optional) list of string values with ',' as delimiter. or a range value with - with a '-' as delimiter. min and max strings will be converted to the parameter type and then used to validate the value of the parameter.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server Map that represents the list of configuration parameterdescriptors.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



getDefaultRuntimeConfigurationInternal
protected Properties getDefaultRuntimeConfigurationInternal(String targetName) throws ManagementRemoteException(Code)
Get the default JBI runtime configuration
Parameters:
  targetName -
throws:
  ManagementRemoteException -



getExistingAppVarType
protected String getExistingAppVarType(String compName, String targetName, String appVarName)(Code)
the type of the actual application variable



getExtensionMBeanObjectName
protected ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code)
returns the ObjectName for the Extension Mbean of this component.
Parameters:
  componentName -
Parameters:
  targetName - the ObjectName of the Extension MBean or null.



getLoggingServiceMBeanObjectName
public ObjectName getLoggingServiceMBeanObjectName(String targetName)(Code)
returns the ObjectName for the LoggingService Mbean of this target.
Parameters:
  targetName - the ObjectName of the LoggingService MBean or null.



getRuntimeConfiguration
public Properties getRuntimeConfiguration(String targetName) throws ManagementRemoteException(Code)
This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor. The parameter descriptor should contain the following data that represents the parameter. name : name of the parameter value : value of the parameter as a String type. type : type of the parameter. Basic data types only. description: (optional) description of the parameter. displayName: (optional) display name of the parameter readOnly : true/false validValues : (optional) list of string values with ',' as delimiter. or a range value with - with a '-' as delimiter. min and max strings will be converted to the parameter type and then used to validate the value of the parameter.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server Properties that represents the list of configuration parameterdescriptors.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getRuntimeConfiguration(java.lang.String)



getRuntimeConfigurationAsMap
public Map<String /*attributeName*/, Object getRuntimeConfigurationAsMap(String targetName) throws ManagementRemoteException(Code)
This method returns a tabular data of a complex open data objects that represent the runtime configuration parameter descriptor. The parameter descriptor should contain the following data that represents the parameter. name : name of the parameter value : value of the parameter as a String type. type : type of the parameter. Basic data types only. description: (optional) description of the parameter. displayName: (optional) display name of the parameter readOnly : true/false validValues : (optional) list of string values with ',' as delimiter. or a range value with - with a '-' as delimiter. min and max strings will be converted to the parameter type and then used to validate the value of the parameter.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server Map that represents the list of configuration parameterdescriptors.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



getRuntimeConfigurationInternal
Properties getRuntimeConfigurationInternal(String targetName) throws ManagementRemoteException(Code)
Get the JBI Runtime Configuration
Parameters:
  targetName -
throws:
  ManagementRemoteException -



getRuntimeConfigurationMetaData
public Properties getRuntimeConfigurationMetaData(String propertyKeyName) throws ManagementRemoteException(Code)
This method returns the runtime configuration metadata associated with the specified property. The metadata contain name-value pairs like: default, descriptionID, descriptorType, displayName, displayNameId, isStatic, name, resourceBundleName, tooltip, tooltipId, etc.
Parameters:
  propertyKeyName - Properties that represent runtime configuration metadata
throws:
  ManagementRemoteException -
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getRuntimeConfigurationMetaData(java.lang.String)



getRuntimeConfigurationMetadataInternal
Map<String /* propertyKeyName */, Properties> getRuntimeConfigurationMetadataInternal(String targetName) throws ManagementRemoteException(Code)
Get JBI Runtime Configuration Metadata
Parameters:
  targetName -
throws:
  ManagementRemoteException -



getRuntimeLoggerConfigFacadeMBeanName
protected ObjectName getRuntimeLoggerConfigFacadeMBeanName(String target)(Code)
the runtime logger configuration facade MBean Name for the specific target.



getRuntimeLoggerDisplayName
public String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName) throws ManagementRemoteException(Code)
Return the display name for a runtime logger
Parameters:
  runtimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.) the display name for the given logger
throws:
  ManagementRemoteException - on error



getRuntimeLoggerDisplayName
public String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Return the display name for a runtime logger
Parameters:
  runtimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) the display name for the given logger
throws:
  ManagementRemoteException - on error



getRuntimeLoggerLevel
public Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Lookup the level of one runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.framework
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) the matching Log Level.
throws:
  ManagementRemoteException -
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getRuntimeLoggerLevel(java.lang.Stringjava.lang.Stringjava.lang.String)



getRuntimeLoggerLevel
public Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName) throws ManagementRemoteException(Code)
Lookup the level of one runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.framework
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) the matching Log Level.
throws:
  ManagementRemoteException - on error



getRuntimeLoggerLevels
public Map<String /* runtimeLoggerName */, Level getRuntimeLoggerLevels(String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets all the runtime loggers and their levels
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) a Map of runtimeLoggerName to their log levels
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.getRuntimeLoggerLevels(java.lang.Stringjava.lang.String)



getRuntimeLoggerLevels
public Map<String /* runtimeLoggerName */, Level getRuntimeLoggerLevels(String targetName) throws ManagementRemoteException(Code)
Gets all the runtime loggers and their levels.
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.) a Map of runtimeLoggerName to their log levels
throws:
  ManagementRemoteException - on error



getRuntimeLoggerNames
public Map<String /* display name */, String getRuntimeLoggerNames(String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets all the runtime loggers and their display names
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) a Map of display names to their logger MBeans
throws:
  ManagementRemoteException - on error



getRuntimeLoggerNames
public Map<String /* display name */, String getRuntimeLoggerNames(String targetName) throws ManagementRemoteException(Code)
Gets all the runtime loggers and their display names
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) a Map of display names to their logger MBeans
throws:
  ManagementRemoteException - on error



invokeExtensionMBeanOperation
public Object invokeExtensionMBeanOperation(String componentName, String extensionName, String operationName, Object[] parameters, String[] signature, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Invokes an operation on an Extension MBean.
Parameters:
  componentName -
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  operationName - The name of the operation to be invoked.
Parameters:
  parameters - An array containing the parameters to be set when the operation is invoked
Parameters:
  signature - An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the MBean on which the operation was invoked.
Parameters:
  targetName - name of the target (e.g., server, Cluster1, StandloneServer2, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., Cluster1-Instance1, Cluster2-Instance10, etc.) The object returned by the operation, which represents the result of invoking the operation on the Extension MBean specified.
throws:
  ManagementRemoteException -



isAppConfigSupported
public boolean isAppConfigSupported(String componentName, String targetName) throws ManagementRemoteException(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.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. true if the components configuration MBean implements all theoperations for application configuration.
throws:
  ManagementRemoteException - if the component is not installed or is not in the Started state.



isAppVarsSupported
public boolean isAppVarsSupported(String componentName, String targetName) throws ManagementRemoteException(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.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. true if the components configuration MBean implements all theoperations for application variables.
throws:
  ManagementRemoteException - if the component is not installed or is not in the Started state.



isComponentConfigSupported
public boolean isComponentConfigSupported(String componentName, String targetName) throws ManagementRemoteException(Code)
Detect the components support for component configuration. This method returns true if the component has a configuration MBean with configurable attributes
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. true if the components configuration MBean has configuration attributes
throws:
  ManagementRemoteException - if the component is not installed or is not in the Started state.



isServerRestartRequired
public boolean isServerRestartRequired() throws ManagementRemoteException(Code)
checks if the server need to be restarted to apply the changes made to some of the configuration parameters. true if server need to be restarted for updated configuration totake effect. false if no server restart is needed.
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.isServerRestartRequired



listApplicationConfigurationNames
public String[] listApplicationConfigurationNames(String componentName, String targetName) throws ManagementRemoteException(Code)
List all the application configurations in a component.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. an array of names of all the application configurations.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.listApplicationConfigurationNames(java.lang.Stringjava.lang.String)



queryApplicationConfigurationType
public CompositeType queryApplicationConfigurationType(String componentName, String targetName) throws ManagementRemoteException(Code)
Get the CompositeType definition for the components application configuration
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. the CompositeType for the components application configuration.



retrieveConfigurationDisplayData
public String retrieveConfigurationDisplayData(String componentName, String targetName) throws ManagementRemoteException(Code)
Retrieves the component configuration metadata. The XML data conforms to the component configuration schema.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. a String containing the configuration metadata.
throws:
  ManagementRemoteException - on errors



retrieveConfigurationDisplaySchema
public String retrieveConfigurationDisplaySchema(String componentName, String targetName) throws ManagementRemoteException(Code)
Retrieves the component specific configuration schema.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance. a String containing the configuration schema.
throws:
  ManagementRemoteException - on errors.



setApplicationConfiguration
public String setApplicationConfiguration(String componentName, String name, Properties config, String targetName) throws ManagementRemoteException(Code)
Update a named application configuration in a component installed on a given target.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  name - application configuration name
Parameters:
  config - application configuration represented as a set of properties. a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setApplicationConfiguration(java.lang.Stringjava.lang.Stringjava.util.Propertiesjava.lang.String)



setApplicationConfiguration
public String setApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException(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:
  componentName -
Parameters:
  targetName -
Parameters:
  name - -configuration name, must match the value of the field"configurationName" in the appConfig
Parameters:
  appConfig - -application configuration composite management message string which gives the status of theoperation. For target=cluster, instance specific details areincluded.
throws:
  ManagementRemoteException - if there are errors encountered when updating theconfiguration.



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



setApplicationVariables
public String setApplicationVariables(String componentName, Properties appVariables, String targetName) throws ManagementRemoteException(Code)
Set application variables on a component installed on a given target. If even a variable from the set has not been added to the component, this operation fails.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.
Parameters:
  appVariables - -set of application variables to update. The values of theapplication variables have the application variable type andvalue and the format is "[type]value" a JBI Management message indicating the status of the operation.In case a variable is not set the management message has a ERRORtask status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setApplicationVariables(java.lang.Stringjava.lang.Stringjava.util.Properties)



setComponentConfiguration
public String setComponentConfiguration(String componentName, Properties configurationValues, String targetName) throws ManagementRemoteException(Code)
Set the component static configuration. This operation uses the facade component configuration MBean to set the component properties.
Parameters:
  componentName -
Parameters:
  targetName -
Parameters:
  configurationValues - a management message indicating the status of the operation. Ifthe operation fails a JBIException ( encapsulated in theManagementRemoteException ) is thrown, the exception message is amanagement XML message and gives the failure details.
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setComponentConfiguration(java.lang.Stringjava.util.Propertiesjava.lang.String)



setComponentConfiguration
public String setComponentConfiguration(String componentName, Map<String /*attributeName*/, Object configurationValues, String targetName) throws ManagementRemoteException(Code)
Will return jbi mgmt message with success, failure, or partial success per instance. The entry per instance will have value as part of the management message (XML) String.
Parameters:
  componentName -
Parameters:
  configurationValues -
Parameters:
  targetName - value as part of the management message (XML) String.
throws:
  ManagementRemoteException - on error



setComponentConfigurationForClusteredServer
String setComponentConfigurationForClusteredServer(String componentName, String targetName, Properties configurationValues) throws ManagementRemoteException(Code)
Set component configuration for a clustered server (that is up)
Parameters:
  componentName -
Parameters:
  targetName -
Parameters:
  configurationValues - a management message indicating the status of the operation. Ifthe operation fails a JBIException ( encapsulated in theManagementRemoteException ) is thrown, the exception message is amanagement XML message and gives the failure details.



setComponentLoggerLevel
public void setComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Sets the component log level for a given logger
Parameters:
  componentName - name of the component
Parameters:
  loggerName - the component logger name
Parameters:
  logLevel - the level to set the logger; when null, reverts the logger toinherit its level from its parent logger
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setComponentLoggerLevel(java.lang.Stringjava.lang.Stringjava.util.logging.Leveljava.lang.Stringjava.lang.String)



setLevel
protected String setLevel(Level logLevel)(Code)
Return the "verb" (the setXXX MBean operation) for the given log level
Parameters:
  logLevel - log level to set logger to a MBean operation to set the logger to that level



setRuntimeConfiguration
public boolean setRuntimeConfiguration(Properties parameters, String targetName) throws ManagementRemoteException(Code)
This method sets one or more configuration parameters on the runtime with a list of name/value pairs passed as a properties object. The property name in the properties object should be an existing configuration parameter name. If user try to set the parameter that is not in the configuration parameters list, this method will throw an exception. The value of the property can be any object. If the value is non string object, its string value (Object.toString()) will be used as a value that will be set on the configuration. This method first validates whether all the paramters passed in properties object exist in the runtime configuration or not. If any one the parameters passed is not existing, it will return an error without settings the parameters that are passed in the properties including a valid parameters. If there is an error in setting a paramter, this method throws an exception with the list of parameters that were not set.
Parameters:
  Properties - params Properties object that contains name/value pairscorresponding to the configuration parameters to be set on theruntime.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server true if server restart is required, false if not
throws:
  ManagementRemoteException - if there is a jmx error or a invalid parameter is passed inthe params properties object. In case of an error setting thea particular parameter, the error message should list theinvalid parameters.
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setRuntimeConfiguration(java.util.Propertiesjava.lang.String)



setRuntimeConfiguration
public boolean setRuntimeConfiguration(Map<String /*attributeName*/, Object properties, String targetName) throws ManagementRemoteException(Code)
This method sets one or more configuration parameters on the runtime with a list of name/value pairs passed as a properties object. The property name in the properties object should be an existing configuration parameter name. If user try to set the parameter that is not in the configuration parameters list, this method will throw an exception. The value of the property can be any object. If the value is non string object, its string value (Object.toString()) will be used as a value that will be set on the configuration. This method first validates whether all the paramters passed in properties object exist in the runtime configuration or not. If any one the parameters passed is not existing, it will return an error without settings the parameters that are passed in the properties including a valid parameters. If there is an error in setting a paramter, this method throws an exception with the list of parameters that were not set.
Parameters:
  params - Map object that contains name/value pairs correspondingto the configuration parameters to be set on the runtime.
Parameters:
  targetName - cluster or instance name ( e.g. cluster1, instance1 ) on whichconfiguration parameters will be set. null to represent thedefault instance which is admin server true if server restart is required, false if not
throws:
  ManagementRemoteException - if there is a jmx error or a invalid parameter is passed inthe params properties object. In case of an error setting thea particular parameter, the error message should list theinvalid parameters.



setRuntimeConfigurationInternal
protected boolean setRuntimeConfigurationInternal(Properties properties, String targetName) throws ManagementRemoteException(Code)
Set JBI Runtime Configuration
Parameters:
  properties -
Parameters:
  targetName -
throws:
  ManagementRemoteException -



setRuntimeLoggerLevel
public void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Sets the log level for a given runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger
Parameters:
  logLevel - the level to set the logger
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)
throws:
  ManagementRemoteException - on error
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.setRuntimeLoggerLevel(java.lang.Stringjava.util.logging.Leveljava.lang.Stringjava.lang.String)



setRuntimeLoggerLevel
public void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName) throws ManagementRemoteException(Code)
Sets the log level for a given runtime logger
Parameters:
  runtimeLoggerName - name of the runtime logger
Parameters:
  logLevel - the level to set the logger
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
throws:
  ManagementRemoteException - on error



verifyApplication
public String verifyApplication(String applicationURL, boolean generateTemplates, String templateDir, boolean includeDeployCommand, String targetName) throws ManagementRemoteException(Code)
This method is used to verify if the application variables and application configuration objects used in the given application are available in JBI runtime in the specified target. Also this method verifies if all necessary components are installed. If generateTemplates is true templates for missing application variables and application configurations are generated. A command script that uses the template files to set configuration objects is generated.
Parameters:
  applicationURL - the URL for the application zip file
Parameters:
  generateTemplates - true if templates have to be generated
Parameters:
  templateDir - the dir to store the generated templates
Parameters:
  includeDeployCommand - true if the generated script should include deploy command
Parameters:
  targetName - the target on which the application has to be verified
throws:
  ManagementRemoteException - if the application could not be verifiedNote: param templateDir is used between ant/cli and common client clientTemplateZIPID is used between common client server and common clientclient
See Also:   com.sun.esb.management.api.configuration.ConfigurationService.verifyApplication(java.lang.Stringjava.lang.Stringbooleanjava.lang.Stringboolean)



Fields inherited from com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl
final protected static int ANY_FRAMEWORK_COMPONENT_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SA_ANY_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SA_SHUTDOWN_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SA_STARTED_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SA_STOPPED_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SU_SHUTDOWN_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SU_STARTED_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SU_STOPPED_STATE(Code)(Java Doc)
final protected static String FRAMEWORK_SU_UNKNOWN_STATE(Code)(Java Doc)

Methods inherited from com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl
protected void componentStartedOnTargetCheck(String componentName, String target) throws ManagementRemoteException(Code)(Java Doc)
protected ObjectName getComponentLifeCycleMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected Collection getComponentNamesDependentOnServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String saName, String targetName)(Code)(Java Doc)
protected Collection getComponentNamesDependentOnServiceAssembly(String saId, String targetName)(Code)(Java Doc)
protected Collection getComponentNamesDependentOnSharedLibrary(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String targetName)(Code)(Java Doc)
protected Collection getComponentNamesDependentOnSharedLibrary(String slibName, String targetName)(Code)(Java Doc)
protected Collection getComponentNamesDependentOnSharedLibraryAndServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String saName, String targetName)(Code)(Java Doc)
protected Set getComponentNamesWithStatus(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String targetName)(Code)(Java Doc)
protected String getComponentState(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected Map<String, Descriptor> getConfigurationDescriptors(ObjectName objectName) throws ManagementRemoteException(Code)(Java Doc)
protected List getFrameworkComponentInfoList(Collection compNameList, String targetName)(Code)(Java Doc)
protected List getFrameworkComponentInfoListForEnginesAndBindings(ComponentType frameworkCompType, ComponentState frameworkCompState, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected List getFrameworkComponentInfoListForSharedLibraries(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected List getFrameworkComponentInfoListForSharedLibraryNames(Collection slibNameList, String targetName)(Code)(Java Doc)
protected ComponentQuery getFrameworkComponentQuery(String targetName)(Code)(Java Doc)
protected List getServiceAssemblyInfoList(String frameworkState, String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected ObjectName[] getSystemLoggerMBeans(String instanceName)(Code)(Java Doc)
protected List getUiComponentInfoList(ComponentType frameworkCompType, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected boolean isExistingComponent(String componentName, String targetName)(Code)(Java Doc)
protected boolean isExistingSharedLibrary(String sharedLibraryName, String targetName)(Code)(Java Doc)
protected String listComponents(ComponentType type, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected static ComponentState toFrameworkComponentInfoState(String uiCompState)(Code)(Java Doc)
protected static ComponentType toFrameworkComponentInfoType(String uiCompType)(Code)(Java Doc)
protected static String toFrameworkServiceAssemblyState(String uiState)(Code)(Java Doc)
protected JBIComponentInfo toUiComponentInfo(ComponentInfo frameworkCompInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected List toUiComponentInfoList(List frameworkCompList, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected static String toUiComponentInfoState(ComponentState frameworkCompState)(Code)(Java Doc)
protected static String toUiComponentInfoType(ComponentType frameworkCompType)(Code)(Java Doc)
protected static String toUiServiceAssemblyState(String frameworkState)(Code)(Java Doc)
protected static String toUiServiceUnitState(String frameworkState)(Code)(Java Doc)
protected void updateEachServiceUnitInfoStateInServiceAssemblyInfo(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected void updateServiceAssemblyInfoState(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc)
protected void updateServiceUnitInfoState(ServiceUnitInfo suInfo, ObjectName deploymentServiceMBean)(Code)(Java Doc)
protected void validateUiJBIComponentInfoState(String state) throws ManagementRemoteException(Code)(Java Doc)
protected void validateUiServiceAssemblyInfoState(String state) throws ManagementRemoteException(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.