public class ConfigurationServiceImpl extends BaseServiceImpl implements Serializable, ConfigurationService
mLastUploadIdCANNED_RESPONSE, I18NBUNDLE, isRemoteConnection, remoteConnection| Constructor and Description |
|---|
ConfigurationServiceImpl()
Constructor - Constructs a new instance of ConfigurationServiceImpl
|
ConfigurationServiceImpl(MBeanServerConnection serverConnection)
Constructor - Constructs a new instance of ConfigurationServiceImpl
|
ConfigurationServiceImpl(MBeanServerConnection serverConnection,
boolean isRemoteConnection)
Constructor - Constructs a new instance of ConfigurationServiceImpl
|
| 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.
|
protected void |
downloadAndExtractZip(String filePath,
String templateDir)
This method is used to download the template zip from the server and
extract it in the specified dir
|
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)
Gets all the runtime loggers and their levels
|
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.
|
static void |
main(String[] args) |
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.
|
downloadFile, removeUploadedFile, uploadFilegetAdministrationServiceMBeanObjectName, getConfigurationServiceMBeanObjectName, getDeploymentServiceMBeanObjectName, getI18NBundle, getInstallationServiceMBeanObjectName, getMBeanServerConnection, getNotificationServiceMBeanObjectName, getPerformanceMeasurementServiceMBeanObjectName, getRuntimeManagementServiceMBeanObjectName, invokeMBeanOperation, invokeMBeanOperation, isRegistered, isRemoteConnection, listTargetNames, queryNamespublic ConfigurationServiceImpl()
public ConfigurationServiceImpl(MBeanServerConnection serverConnection)
serverConnection - public ConfigurationServiceImpl(MBeanServerConnection serverConnection, boolean isRemoteConnection)
serverConnection - isRemoteConnection - public boolean isComponentConfigSupported(String componentName, String targetName) throws ManagementRemoteException
isComponentConfigSupported in interface ConfigurationServicecomponentName - 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.public boolean isAppConfigSupported(String componentName, String targetName) throws ManagementRemoteException
isAppConfigSupported in interface ConfigurationServicecomponentName - 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.public boolean isAppVarsSupported(String componentName, String targetName) throws ManagementRemoteException
isAppVarsSupported in interface ConfigurationServicecomponentName - 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.public String addApplicationConfiguration(String componentName, String targetName, String name, Properties config) throws ManagementRemoteException
addApplicationConfiguration in interface ConfigurationServicecomponentName - 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 instanceConfigurationService.addApplicationConfiguration(java.lang.String,
java.lang.String, java.lang.String, java.util.Properties)public String addApplicationVariables(String componentName, String targetName, Properties appVariables) throws ManagementRemoteException
addApplicationVariables in interface ConfigurationServicecomponentName - 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"ManagementRemoteExceptionConfigurationService.addApplicationVariables(java.lang.String,
java.lang.String, java.util.Properties)public String deleteApplicationConfiguration(String componentName, String targetName, String name) throws ManagementRemoteException
deleteApplicationConfiguration in interface ConfigurationServicecomponentName - 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 instanceConfigurationService.deleteApplicationConfiguration(java.lang.String,
java.lang.String, java.lang.String)public String deleteApplicationVariables(String componentName, String targetName, String[] appVariableNames) throws ManagementRemoteException
deleteApplicationVariables in interface ConfigurationServicecomponentName - 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 instanceConfigurationService.deleteApplicationVariables(java.lang.String,
java.lang.String, java.lang.String[])public String exportApplicationConfiguration(String applicationName, String targetName, String configDir) throws ManagementRemoteException
exportApplicationConfiguration in interface ConfigurationServiceapplicationName - 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.ConfigurationService.exportApplicationConfiguration(java.lang.String,
java.lang.String, java.lang.String)public Properties getApplicationConfiguration(String componentName, String name, String targetName) throws ManagementRemoteException
getApplicationConfiguration in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.getApplicationConfiguration(java.lang.String,
java.lang.String, java.lang.String)public Map<String,Properties> getApplicationConfigurations(String componentName, String targetName) throws ManagementRemoteException
getApplicationConfigurations in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.getApplicationConfigurations(java.lang.String,
java.lang.String)public Properties getApplicationVariables(String componentName, String targetName) throws ManagementRemoteException
getApplicationVariables in interface ConfigurationServicea - JBI Management message indicating the status of the
operation.ManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.getApplicationVariables(java.lang.String,
java.lang.String)public Properties getComponentConfiguration(String componentName, String targetName) throws ManagementRemoteException
getComponentConfiguration in interface ConfigurationServicecomponentName - targetName - ManagementRemoteException - on errorConfigurationService.getComponentConfiguration(java.lang.String,
java.lang.String)public Map<String,ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException
getComponentExtensionMBeanObjectNames in interface ConfigurationServicecomponentName - 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 errorConfigurationService.getComponentExtensionMBeanObjectNames(java.lang.String,
java.lang.String, java.lang.String)public ObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws ManagementRemoteException
getComponentExtensionMBeanObjectNames in interface ConfigurationServicecomponentName - 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 errorConfigurationService.getComponentExtensionMBeanObjectNames(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public Map<String,Level> getComponentLoggerLevels(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException
getComponentLoggerLevels in interface ConfigurationServicecomponentName - 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 errorConfigurationService.getComponentLoggerLevels(java.lang.String,
java.lang.String, java.lang.String)public Map<String,String> getComponentLoggerDisplayNames(String componentName, String targetName, String targetInstanceName) throws ManagementRemoteException
getComponentLoggerDisplayNames in interface ConfigurationServicecomponentName - 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 errorConfigurationService.getComponentLoggerDisplayNames(java.lang.String,
java.lang.String, java.lang.String)public Properties getDefaultRuntimeConfiguration() throws ManagementRemoteException
getDefaultRuntimeConfiguration in interface ConfigurationServicetargetName - 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 instanceConfigurationService.getDefaultRuntimeConfiguration()public Properties getRuntimeConfiguration(String targetName) throws ManagementRemoteException
getRuntimeConfiguration in interface ConfigurationServicetargetName - 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 instanceConfigurationService.getRuntimeConfiguration(java.lang.String)public Properties getRuntimeConfigurationMetaData(String propertyKeyName) throws ManagementRemoteException
getRuntimeConfigurationMetaData in interface ConfigurationServicepropertyKeyName - ManagementRemoteExceptionConfigurationService.getRuntimeConfigurationMetaData(java.lang.String)public Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException
getRuntimeLoggerLevel in interface ConfigurationServiceruntimeLoggerName - 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 errorConfigurationService.getRuntimeLoggerLevel(java.lang.String,
java.lang.String, java.lang.String)public Level getRuntimeLoggerLevel(String runtimeLoggerName, String targetName) throws ManagementRemoteException
getRuntimeLoggerLevel in interface ConfigurationServiceruntimeLoggerName - name of the runtime logger (e.g. com.sun.jbi.frameworktargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorConfigurationService.getRuntimeLoggerLevel(java.lang.String,
java.lang.String)public Map<String,Level> getRuntimeLoggerLevels(String targetName, String targetInstanceName) throws ManagementRemoteException
getRuntimeLoggerLevels in interface ConfigurationServicetargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorConfigurationService.getRuntimeLoggerLevels(java.lang.String,
java.lang.String)public Map<String,Level> getRuntimeLoggerLevels(String targetName) throws ManagementRemoteException
getRuntimeLoggerLevels in interface ConfigurationServicetargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorConfigurationService.getRuntimeLoggerLevels(java.lang.String)public boolean isServerRestartRequired()
throws ManagementRemoteException
isServerRestartRequired in interface ConfigurationServiceManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.isServerRestartRequired()public String[] listApplicationConfigurationNames(String componentName, String targetName) throws ManagementRemoteException
listApplicationConfigurationNames in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.listApplicationConfigurationNames(java.lang.String,
java.lang.String)public String setApplicationConfiguration(String componentName, String name, Properties config, String targetName) throws ManagementRemoteException
setApplicationConfiguration in interface ConfigurationServicecomponentName - 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 instanceConfigurationService.setApplicationConfiguration(java.lang.String,
java.lang.String, java.util.Properties, java.lang.String)public String setApplicationVariables(String componentName, Properties appVariables, String targetName) throws ManagementRemoteException
setApplicationVariables in interface ConfigurationServicecomponentName - 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 instanceConfigurationService.setApplicationVariables(java.lang.String,
java.util.Properties, java.lang.String)public String setComponentConfiguration(String componentName, Properties configurationValues, String targetName) throws ManagementRemoteException
setComponentConfiguration in interface ConfigurationServicetargetName - the name of the JBI targetcomponentName - the component nameconfigurationValues - the configuration propertiesManagementRemoteException - on errorConfigurationService.setComponentConfiguration(java.lang.String,
java.util.Properties, java.lang.String)public void setComponentLoggerLevel(String componentName, String loggerCustomName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException
setComponentLoggerLevel in interface ConfigurationServicecomponentName - 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 errorConfigurationService.setComponentLoggerLevel(java.lang.String,
java.lang.String, java.util.logging.Level, java.lang.String,
java.lang.String)public boolean setRuntimeConfiguration(Properties parameters, String targetName) throws ManagementRemoteException
setRuntimeConfiguration in interface ConfigurationServiceMap - 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.ConfigurationService.setRuntimeConfiguration(java.util.Properties,
java.lang.String)public void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName, String targetInstanceName) throws ManagementRemoteException
setRuntimeLoggerLevel in interface ConfigurationServiceruntimeLoggerName - 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 errorConfigurationService.setRuntimeLoggerLevel(java.lang.String,
java.util.logging.Level, java.lang.String, java.lang.String)public void setRuntimeLoggerLevel(String runtimeLoggerName, Level logLevel, String targetName) throws ManagementRemoteException
setRuntimeLoggerLevel in interface ConfigurationServiceruntimeLoggerName - name of the runtime loggerlogLevel - the level to set the loggertargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorConfigurationService.setRuntimeLoggerLevel(java.lang.String,
java.util.logging.Level, java.lang.String)public Map<String,String> getRuntimeLoggerNames(String targetName, String targetInstanceName) throws ManagementRemoteException
getRuntimeLoggerNames in interface ConfigurationServicetargetName - name of the target (e.g., cluster1, server, etc.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorpublic Map<String,String> getRuntimeLoggerNames(String targetName) throws ManagementRemoteException
getRuntimeLoggerNames in interface ConfigurationServicetargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorpublic String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName, String targetInstanceName) throws ManagementRemoteException
getRuntimeLoggerDisplayName in interface ConfigurationServiceruntimeLoggerName - 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 errorManagementRemoteExceptionpublic String getRuntimeLoggerDisplayName(String runtimeLoggerName, String targetName) throws ManagementRemoteException
getRuntimeLoggerDisplayName in interface ConfigurationServiceruntimeLoggerName - name of the logger (e.g. com.sun.jbi.framework)targetName - name of the target (e.g., cluster1, server, etc.)JBIRemoteException - on errorManagementRemoteExceptionpublic String verifyApplication(String applicationURL, boolean generateTemplates, String templateDir, boolean includeDeployCommand, String targetName, String clientSAFilePath) throws ManagementRemoteException
verifyApplication in interface ConfigurationServiceapplicationURL - 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 - the path to the SA in the client file schemaorg_apache_xmlbeans.systemManagementRemoteException - 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
clientcom.sun.esb.management.api.configuration.ConfigurationService#verifyApplication(java.lang.String,
boolean, java.lang.String, boolean, java.lang.String)protected void downloadAndExtractZip(String filePath, String templateDir) throws ManagementRemoteException
filePath - the path to the template zip in the servertemplateDir - the dir to extract the zip intoManagementRemoteExceptionpublic CompositeType queryApplicationConfigurationType(String componentName, String targetName) throws ManagementRemoteException
queryApplicationConfigurationType in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteExceptionpublic String retrieveConfigurationDisplaySchema(String componentName, String targetName) throws ManagementRemoteException
retrieveConfigurationDisplaySchema in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - on errors.public String retrieveConfigurationDisplayData(String componentName, String targetName) throws ManagementRemoteException
retrieveConfigurationDisplayData in interface ConfigurationServicecomponentName - component identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.ManagementRemoteException - on errorspublic String addApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException
addApplicationConfiguration in interface ConfigurationServicecomponentName - 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.public String setApplicationConfiguration(String componentName, String targetName, String name, CompositeData appConfig) throws ManagementRemoteException
setApplicationConfiguration in interface ConfigurationServicecomponentName - 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.public TabularData getApplicationConfigurationsAsTabularData(String componentName, String targetName) throws ManagementRemoteException
getApplicationConfigurationsAsTabularData in interface ConfigurationServicecomponentName - targetName - ManagementRemoteException - if there are errors encountered when updating the
configuration.public TabularData getApplicationVariablesAsTabularData(String componentName, String targetName) throws ManagementRemoteException
getApplicationVariablesAsTabularData in interface ConfigurationServicecomponentName - targetName - ManagementRemoteExceptionpublic String addApplicationVariable(String componentName, String targetName, String name, CompositeData appVar) throws ManagementRemoteException
addApplicationVariable in interface ConfigurationServicecomponentName - 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.public String setApplicationVariable(String componentName, String targetName, String name, CompositeData appVar) throws ManagementRemoteException
setApplicationVariable in interface ConfigurationServicecomponentName - 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 deletedpublic Map<String,Object> getDefaultRuntimeConfigurationAsMap() throws ManagementRemoteException
getDefaultRuntimeConfigurationAsMap in interface ConfigurationServicetargetName - 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 instancepublic Map<String,Object> getRuntimeConfigurationAsMap(String targetName) throws ManagementRemoteException
getRuntimeConfigurationAsMap in interface ConfigurationServicetargetName - 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 instancepublic boolean setRuntimeConfiguration(Map<String,Object> parameters, String targetName) throws ManagementRemoteException
setRuntimeConfiguration in interface ConfigurationServiceparams - 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.public Map<String,Object> getComponentConfigurationAsMap(String componentName, String targetName) throws ManagementRemoteException
getComponentConfigurationAsMap in interface ConfigurationServicecomponentName - targetName - ManagementRemoteException - on errorpublic String setComponentConfiguration(String componentName, Map<String,Object> configurationValues, String targetName) throws ManagementRemoteException
setComponentConfiguration in interface ConfigurationServicecomponentName - configurationValues - targetName - ManagementRemoteException - on errorpublic Object invokeExtensionMBeanOperation(String componentName, String extensionName, String operationName, Object[] parameters, String[] signature, String targetName, String targetInstanceName) throws ManagementRemoteException
invokeExtensionMBeanOperation in interface ConfigurationServicecomponentName - 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.)ManagementRemoteExceptionpublic static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.