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


com.sun.esb.management.api.configuration.ConfigurationService

All known Subclasses:   com.sun.esb.management.impl.configuration.ConfigurationServiceImpl,  com.sun.esb.management.impl.configuration.ConfigurationServiceMBeanImpl,
ConfigurationService
public interface ConfigurationService (Code)
Defines operations for common configuration services across the JBI Runtime, component containers, configuring logger levels, etc.
author:
   graj




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.
 StringaddApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig)
     Add an application configuration.
 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.
public  StringdeleteApplicationConfiguration(String componentName, String targetName, String name)
     Delete a named application configuration in a component installed on a given 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.
 TabularDatagetApplicationConfigurationsAsTabularData(String componentName, String targetName)
     Get a Map of all application configurations for the component.
Parameters:
  componentName -
Parameters:
  targetName - a TabularData of all the application configurations for a component keyed by the configuration name.
public  PropertiesgetApplicationVariables(String componentName, String targetName)
     Get all the application variables set on a component. all the application variables et on the component.
 TabularDatagetApplicationVariablesAsTabularData(String componentName, String targetName)
     Get the Application Variable set for a component.
Parameters:
  componentName -
Parameters:
  targetName - a TabularData which has all the application variables set on the component.
public  PropertiesgetComponentConfiguration(String componentName, String targetName)
    
public  Map<String /*attributeName*/, ObjectgetComponentConfigurationAsMap(String componentName, String targetName)
    
public  Map<String /* targetInstanceName */, ObjectName[]>getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName)
    
public  ObjectName[]getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName)
    
public  Map<String /* loggerCustomName */, StringgetComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName)
     Gets the component custom loggers and their display names.
public  Map<String /* loggerCustomName */, LevelgetComponentLoggerLevels(String componentName, String targetName, String targetInstanceName)
    
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  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.
 PropertiesgetRuntimeConfigurationMetaData(String propertyKeyName)
     This method returns the runtime configuration metadata associated with the specified property.
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  StringgetRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName)
     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)
    
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 needs 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  javax.management.openmbean.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. The XML data conforms to the component configuration schema.
Parameters:
  componentName - component identification
Parameters:
  targetName - identification of the target.
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.
 StringsetApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig)
     Update a application configuration.
 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)
     Will return jbi mgmt message with success, failure, or partial success per instance.
public  StringsetComponentConfiguration(String componentName, Map<String /*attributeName*/, Object configurationValues, String targetName)
     Will return jbi mgmt message with success, failure, or partial success per instance.
public  voidsetComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName)
    
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 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  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.



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



addApplicationConfiguration
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 the operation. For target=cluster, instance specific details are included.
throws:
  ManagementRemoteException - if the application configuration cannot be added.



addApplicationVariable
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 compoiste management message string which gives the status of the operation. For target=cluster, instance specific details are included.
throws:
  ManagementRemoteException - if an error occurs in adding the application variables to the component.



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 a ERROR task status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



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 deleteda JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



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 a ERROR task status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



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 client client.



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



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 the configuration name.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



getApplicationConfigurationsAsTabularData
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 a component keyed by the configuration name.
throws:
  ManagementRemoteException - if there are errors encountered when updating the configuration.



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 return proertiesset has the name="[type]value" pairs for the application variables.a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



getApplicationVariablesAsTabularData
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 the component.
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 - on error



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



getComponentExtensionMBeanObjectNames
public Map<String /* targetInstanceName */, 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



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



getComponentLoggerDisplayNames
public Map<String /* loggerCustomName */, 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 loggerCustomName to their display names
throws:
  ManagementRemoteException - on error



getComponentLoggerLevels
public Map<String /* loggerCustomName */, 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 loggerCustomName to their log levels
throws:
  ManagementRemoteException - on error



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



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.
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



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



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



getRuntimeConfigurationMetaData
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 -



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:
  JBIRemoteException - on error



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:
  JBIRemoteException - 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.) a Map of loggerCustomName to their log levels
throws:
  ManagementRemoteException - on error



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.) a Map of loggerCustomName to their log levels
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 loggerCustomName to their log levels
throws:
  ManagementRemoteException - on error



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 loggerCustomName 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 names
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.) a Map of display names to their logger names
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 needs to be restarted for updated configuration totake effect. false if no server restart is needed.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



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



queryApplicationConfigurationType
public javax.management.openmbean.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 - if the config data cannot be retrieved.



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 - if the config schema cannot be retrieved.



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:
  name - application configuration name
Parameters:
  config - application configuration represented as a set of properties.
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.a JBI Management message indicating the status of the operation.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



setApplicationConfiguration
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 the operation. For target=cluster, instance specific details are included.
throws:
  ManagementRemoteException - if there are errors encountered when updating the configuration.



setApplicationVariable
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 compoiste 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:
  appVariables - - set of application variables to update. The values of theapplication variables have the application variable type andvalue and the format is "[type]value"
Parameters:
  targetName - identification of the target. Can be a standalone server,cluster or clustered instance.a JBI Management message indicating the status of the operation.In case a variable is not set the management message has a ERROR task status message giving the details of the failure.
throws:
  ManagementRemoteException - if there is a jmx error accessing the instance



setComponentConfiguration
public String setComponentConfiguration(String componentName, Properties 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:
  configurationValue -
Parameters:
  targetName - value as part of the management message (XML) String.
throws:
  ManagementRemoteException - on error



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



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 custom logger
Parameters:
  componentName - name of the component
Parameters:
  loggerCustomName - the custom logger name
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



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:
  params - Properties 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.



setRuntimeConfiguration
public boolean setRuntimeConfiguration(Map<String /*attributeName*/, Object 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:
  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.



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



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 includedeploy 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 client client



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