public interface ConfigurationService
| Modifier and Type | Method and Description |
|---|---|
String |
addApplicationConfiguration(String componentName,
String targetName,
String name,
CompositeData appConfig)
Add an application configuration.
|
String |
addApplicationConfiguration(String componentName,
String targetName,
String name,
Properties config)
Add a named application configuration to a component installed on a given target.
|
String |
addApplicationVariable(String componentName,
String targetName,
String name,
CompositeData appVar)
This operation adds a new application variable.
|
String |
addApplicationVariables(String componentName,
String targetName,
Properties appVariables)
Add application variables to a component installed on a given target.
|
String |
deleteApplicationConfiguration(String componentName,
String targetName,
String name)
Delete a named application configuration in a component installed on a given target.
|
String |
deleteApplicationVariables(String componentName,
String targetName,
String[] appVariableNames)
Delete application variables from a component installed on a given target.
|
String |
exportApplicationConfiguration(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.
|
Properties |
getApplicationConfiguration(String componentName,
String name,
String targetName)
Get a specific named configuration.
|
Map<String,Properties> |
getApplicationConfigurations(String componentName,
String targetName)
Get all the application configurations set on a component.
|
TabularData |
getApplicationConfigurationsAsTabularData(String componentName,
String targetName)
Get a Map of all application configurations for the component.
|
Properties |
getApplicationVariables(String componentName,
String targetName)
Get all the application variables set on a component.
|
TabularData |
getApplicationVariablesAsTabularData(String componentName,
String targetName)
Get the Application Variable set for a component.
|
Properties |
getComponentConfiguration(String componentName,
String targetName)
Retrieve component configuration
|
Map<String,Object> |
getComponentConfigurationAsMap(String componentName,
String targetName)
Retrieve component configuration
|
Map<String,ObjectName[]> |
getComponentExtensionMBeanObjectNames(String componentName,
String extensionName,
String targetName)
Gets the extension MBean object names
|
ObjectName[] |
getComponentExtensionMBeanObjectNames(String componentName,
String extensionName,
String targetName,
String targetInstanceName)
Gets the extension MBean object names
|
Map<String,String> |
getComponentLoggerDisplayNames(String componentName,
String targetName,
String targetInstanceName)
Gets the component custom loggers and their display names.
|
Map<String,Level> |
getComponentLoggerLevels(String componentName,
String targetName,
String targetInstanceName)
Gets the component custom loggers and their levels
|
Properties |
getDefaultRuntimeConfiguration()
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
Map<String,Object> |
getDefaultRuntimeConfigurationAsMap()
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
Properties |
getRuntimeConfiguration(String targetName)
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
Map<String,Object> |
getRuntimeConfigurationAsMap(String targetName)
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
Properties |
getRuntimeConfigurationMetaData(String propertyKeyName)
This method returns the runtime configuration metadata associated with
the specified property.
|
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName)
Return the display name for a runtime logger
|
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Deprecated.
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName)
Lookup the level of one runtime logger
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Deprecated.
|
Map<String,Level> |
getRuntimeLoggerLevels(String targetName)
Gets all the runtime loggers and their levels
|
Map<String,Level> |
getRuntimeLoggerLevels(String targetName,
String targetInstanceName)
Deprecated.
|
Map<String,String> |
getRuntimeLoggerNames(String targetName)
Gets all the runtime loggers and their display names
|
Map<String,String> |
getRuntimeLoggerNames(String targetName,
String targetInstanceName)
Deprecated.
|
Object |
invokeExtensionMBeanOperation(String componentName,
String extensionName,
String operationName,
Object[] parameters,
String[] signature,
String targetName,
String targetInstanceName)
Invokes an operation on an Extension MBean.
|
boolean |
isAppConfigSupported(String componentName,
String targetName)
Detect the components support for application configuration.
|
boolean |
isAppVarsSupported(String componentName,
String targetName)
Detect the components support for application variables.
|
boolean |
isComponentConfigSupported(String componentName,
String targetName)
Detect the components support for component configuration.
|
boolean |
isServerRestartRequired()
checks if the server need to be restarted to apply the changes made to
some of the configuration parameters.
|
String[] |
listApplicationConfigurationNames(String componentName,
String targetName)
List all the application configurations in a component.
|
CompositeType |
queryApplicationConfigurationType(String componentName,
String targetName)
Get the CompositeType definition for the components application configuration
|
String |
retrieveConfigurationDisplayData(String componentName,
String targetName)
Retrieves the component configuration metadata.
|
String |
retrieveConfigurationDisplaySchema(String componentName,
String targetName)
Retrieves the component specific configuration schema.
|
String |
setApplicationConfiguration(String componentName,
String name,
Properties config,
String targetName)
Update a named application configuration in a component installed on a given target.
|
String |
setApplicationConfiguration(String componentName,
String targetName,
String name,
CompositeData appConfig)
Update a application configuration.
|
String |
setApplicationVariable(String componentName,
String targetName,
String name,
CompositeData appVar)
This operation sets an application variable.
|
String |
setApplicationVariables(String componentName,
Properties appVariables,
String targetName)
Set application variables on a component installed on a given target.
|
String |
setComponentConfiguration(String componentName,
Map<String,Object> configurationValues,
String targetName)
Will return jbi mgmt message with success, failure, or partial success
per instance.
|
String |
setComponentConfiguration(String componentName,
Properties configurationValues,
String targetName)
Will return jbi mgmt message with success, failure, or partial success
per instance.
|
void |
setComponentLoggerLevel(String componentName,
String loggerCustomName,
Level logLevel,
String targetName,
String targetInstanceName)
Sets the component log level for a given custom logger
|
boolean |
setRuntimeConfiguration(Map<String,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.
|
boolean |
setRuntimeConfiguration(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.
|
void |
setRuntimeLoggerLevel(String runtimeLoggerName,
Level logLevel,
String targetName)
Sets the log level for a given runtime logger
|
void |
setRuntimeLoggerLevel(String runtimeLoggerName,
Level logLevel,
String targetName,
String targetInstanceName)
Deprecated.
|
String |
verifyApplication(String applicationURL,
boolean generateTemplates,
String templateDir,
boolean includeDeployCommand,
String targetName,
String clientSAFilePath)
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.
|
Properties getComponentConfiguration(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteException - on errorMap<String,ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException
componentName - name of the componentextensionName - the name of the extension (e.g., Configuration, Logger, etc.)targetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws ManagementRemoteException
componentName - name of the componentextensionName - the name of the extension (e.g., Configuration, Logger, etc.)targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorMap<String,Level> getComponentLoggerLevels(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException
componentName - name of the componenttargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorMap<String,String> getComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException
componentName - name of the componenttargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorProperties getDefaultRuntimeConfiguration() throws ManagementRemoteException
targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error accessing the instanceProperties getRuntimeConfiguration(String targetName) throws ManagementRemoteException
targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error accessing the instanceProperties getRuntimeConfigurationMetaData(String propertyKeyName) throws ManagementRemoteException
propertyKeyName - ManagementRemoteExceptionLevel getRuntimeLoggerLevel(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException
runtimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.frameworktargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorMap<String,String> getRuntimeLoggerNames(String targetName, String targetInstanceName) throws ManagementRemoteException
targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorMap<String,Level> getRuntimeLoggerLevels(String targetName, String targetInstanceName) throws ManagementRemoteException
targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorLevel getRuntimeLoggerLevel(String runtimeLoggerName, String targetName) throws ManagementRemoteException
runtimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.frameworktargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorMap<String,String> getRuntimeLoggerNames(String targetName) throws ManagementRemoteException
targetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorMap<String,Level> getRuntimeLoggerLevels(String targetName) throws ManagementRemoteException
targetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorboolean isServerRestartRequired()
throws ManagementRemoteException
ManagementRemoteException - if there is a jmx error accessing the instanceString setComponentConfiguration(String componentName, Properties configurationValues, String targetName) throws ManagementRemoteException
componentName - configurationValue - targetName - ManagementRemoteException - on errorvoid setComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException
componentName - name of the componentloggerCustomName - the custom logger namelogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorboolean setRuntimeConfiguration(Properties parameters, String targetName) throws ManagementRemoteException
params - Properties object that contains name/value pairs corresponding
to the configuration parameters to be set on the runtime.targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error or a invalid parameter is passed in
the params properties object. In case of an error setting the
a particular parameter, the error message should list the
invalid parameters.void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException
runtimeLoggerName - name of the runtime loggerlogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorvoid setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName) throws ManagementRemoteException
runtimeLoggerName - name of the runtime loggerlogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorString getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException
runtimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)targetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)JBIRemoteException - on errorManagementRemoteExceptionString getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName) throws ManagementRemoteException
runtimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)targetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorManagementRemoteExceptionString verifyApplication(String applicationURL, boolean generateTemplates, String templateDir, boolean includeDeployCommand, String targetName, String clientSAFilePath) throws ManagementRemoteException
applicationURL - the URL for the application zip filegenerateTemplates - true if templates have to be generatedtemplateDir - the dir to store the generated templatesincludeDeployCommand - true if the generated script should include
deploy commandtargetName - the target on which the application has to be verifiedclientSAFilePath - is used to pass on the file path to the SA in the client side
- used in remote server use cases.ManagementRemoteException - if the application could not be verified
Note: param templateDir is used between ant/cli and common client client
TemplateZIPID is used between common client server and common client clientString exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws ManagementRemoteException
applicationName - the name of the applicationtargetName - the target whose configuration has to be exportedconfigDir - the dir to store the configurationsManagementRemoteException - if the application configuration could not be exported
Note: param configDir is used between ant/cli and common client client.
The return value is used between common client server and common client client.boolean isComponentConfigSupported(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if the component is not installed or is not
in the Started state.boolean isAppConfigSupported(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if the component is not installed or is not
in the Started state.boolean isAppVarsSupported(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if the component is not installed or is not
in the Started state.String addApplicationVariables(String componentName, String targetName, Properties appVariables) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariables - - set of application variables to add. The values of the
application variables have the application variable type and
value and the format is "[type]value"ManagementRemoteException - if there is a jmx error accessing the instanceString setApplicationVariables(String componentName, Properties appVariables, String targetName) throws ManagementRemoteException
componentName - component identificationappVariables - - set of application variables to update. The values of the
application variables have the application variable type and
value and the format is "[type]value"targetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceString deleteApplicationVariables(String componentName, String targetName, String[] appVariableNames) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariableNames - - names of application variables to delete.ManagementRemoteException - if there is a jmx error accessing the instanceProperties getApplicationVariables(String componentName, String targetName) throws ManagementRemoteException
ManagementRemoteException - if there is a jmx error accessing the instanceCompositeType queryApplicationConfigurationType(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteExceptionString addApplicationConfiguration(String componentName, String targetName, String name, Properties config) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.name - application configuration nameconfig - application configuration represented as a set of properties.ManagementRemoteException - if there is a jmx error accessing the instanceString setApplicationConfiguration(String componentName, String name, Properties config, String targetName) throws ManagementRemoteException
componentName - component identificationname - application configuration nameconfig - application configuration represented as a set of properties.targetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceString deleteApplicationConfiguration(String componentName, String targetName, String name) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.name - name of application configuration to be deletedManagementRemoteException - if there is a jmx error accessing the instanceString[] listApplicationConfigurationNames(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceProperties getApplicationConfiguration(String componentName, String name, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceMap<String,Properties> getApplicationConfigurations(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceString retrieveConfigurationDisplaySchema(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if the config schema cannot be retrieved.String retrieveConfigurationDisplayData(String componentName, String targetName) throws ManagementRemoteException
componentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if the config data cannot be retrieved.String addApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException
componentName - targetName - name - - configuration name, must match the value of the field "name" in the namedConfigappConfig - - application configuration compositeManagementRemoteException - if the application configuration cannot be added.String setApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException
componentName - targetName - name - - configuration name, must match the value of the field "configurationName" in the appConfigappConfig - - application configuration compositeManagementRemoteException - if there are errors encountered when updating the configuration.TabularData getApplicationConfigurationsAsTabularData(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteException - if there are errors encountered when updating the configuration.TabularData getApplicationVariablesAsTabularData(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteExceptionString addApplicationVariable(String componentName, String targetName, String name, CompositeData appVar) throws ManagementRemoteException
componentName - targetName - name - - name of the application variableappVar - - this is the application variable compoisteManagementRemoteException - if an error occurs in adding the application variables to the
component.String setApplicationVariable(String componentName, String targetName, String name, CompositeData appVar) throws ManagementRemoteException
componentName - targetName - name - - name of the application variableappVar - - this is the application variable compoiste to be updated.ManagementRemoteException - if one or more application variables cannot be deletedMap<String,Object> getDefaultRuntimeConfigurationAsMap() throws ManagementRemoteException
targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error accessing the instanceMap<String,Object> getRuntimeConfigurationAsMap(String targetName) throws ManagementRemoteException
targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error accessing the instanceboolean setRuntimeConfiguration(Map<String,Object> parameters, String targetName) throws ManagementRemoteException
params - Map object that contains name/value pairs corresponding
to the configuration parameters to be set on the runtime.targetName - cluster or instance name ( e.g. cluster1, instance1 ) on which
configuration parameters will be set. null to represent the
default instance which is admin serverManagementRemoteException - if there is a jmx error or a invalid parameter is passed in
the params properties object. In case of an error setting the
a particular parameter, the error message should list the
invalid parameters.Map<String,Object> getComponentConfigurationAsMap(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteException - on errorString setComponentConfiguration(String componentName, Map<String,Object> configurationValues, String targetName) throws ManagementRemoteException
componentName - configurationValues - targetName - ManagementRemoteException - on errorObject invokeExtensionMBeanOperation(String componentName, String extensionName, String operationName, Object[] parameters, String[] signature, String targetName, String targetInstanceName) throws ManagementRemoteException
componentName - extensionName - the name of the extension (e.g., Configuration, Logger, etc.)operationName - The name of the operation to be invoked.parameters - An array containing the parameters to be set when the operation is invokedsignature - 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.targetName - name of the target (e.g., server, Cluster1, StandloneServer2, etc.)targetInstanceName - name of the target instance (e.g., Cluster1-Instance1, Cluster2-Instance10, etc.)ManagementRemoteExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.