public class ConfigurationServiceMBeanImpl extends AbstractListStateServiceMBeansImpl implements ConfigurationService, Serializable, Constants
ANY_FRAMEWORK_COMPONENT_STATE, COMPONENT_VERSION_NS, COMPONENT_VERSION_NS_NEW, COMPONENT_VERSION_XPATH_QUERY, FRAMEWORK_SA_ANY_STATE, FRAMEWORK_SA_SHUTDOWN_STATE, FRAMEWORK_SA_STARTED_STATE, FRAMEWORK_SA_STOPPED_STATE, FRAMEWORK_SU_SHUTDOWN_STATE, FRAMEWORK_SU_STARTED_STATE, FRAMEWORK_SU_STOPPED_STATE, FRAMEWORK_SU_UNKNOWN_STATE, SHARED_LIBRARY_VERSION_XPATH_QUERYCOLON, COMMA, COMPONENT_CONFIG_INSTANCE_ERROR_KEY, componentConfigurationHelper, CUSTOM_ADMINISTRATION_NAME_KEY, CUSTOM_CONFIGURATION_NAME_KEY, CUSTOM_LOGGER_NAME_KEY, CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY, CUSTOM_STATISTICS_NAME_KEY, DOMAIN_TARGET_KEY, EBIJMXDOMAIN, environmentContext, EQUAL, IDENTIFICATION_NAME_KEY, JMX_EBI_DOMAIN, PASSWORD_MASK_CHARACTER, RUNNING_STATE, SERVER_TARGET_KEY, SERVICE_TYPE_KEY, STARTED_STATEADMIN_RUNNING_FILE, ADMIN_STOPPED_FILE, CONFIG_NAME_KEY, LOG_LEVEL_DEFAULT, TMP_FOLDER| Constructor and Description |
|---|
ConfigurationServiceMBeanImpl(EnvironmentContext anEnvContext)
Constructor - Constructs a new instance of ConfigurationServiceMBeanImpl
|
| 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.
|
protected String |
convertToString(Collection colxn)
Convert the objects in the collection to a printable string.
|
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.
|
protected Map<String,Properties> |
getApplicationConfigurationsMap(TabularData td)
Convert a application configuration TabularData to a Map keyed by the
"configurationName".
|
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
|
protected ObjectName |
getComponentConfigurationFacadeMBeanName(String componentName,
String targetName)
Get the component configuration facade MBean name for the target.
|
protected Properties |
getComponentConfigurationForClusteredServer(String componentName,
String targetName)
Retrieve component configuration for a clustered server (that is up)
|
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
|
protected ObjectName |
getConfigMBeanName(String componentName,
String targetName)
Find the actual object config MBean Name -- used by both g/setting
component configuations for clustered servers
|
protected Properties |
getConfigurationAttributeValues(ObjectName objectName)
Get the config extension MBean attribute values
|
protected Map<String,Object> |
getConfigurationAttributeValuesAsMap(ObjectName objectName)
Get the config extension MBean attribute values
|
ObjectName |
getConfigurationMBeanObjectName(String targetName,
String configurationType)
Get the JBI Runtime Configuration Service MBean Object Name
|
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.
|
Map<String,Object> |
getDefaultRuntimeConfigurationAsMapInternal(String targetName)
This method returns a tabular data of a complex open data objects that
represent the runtime configuration parameter descriptor.
|
protected Properties |
getDefaultRuntimeConfigurationInternal(String targetName)
Get the default JBI runtime configuration
|
protected String |
getExistingAppVarType(String compName,
String targetName,
String appVarName) |
protected ObjectName |
getExtensionMBeanObjectName(String componentName,
String targetName)
returns the ObjectName for the Extension Mbean of this component.
|
ObjectName |
getLoggingServiceMBeanObjectName(String targetName)
returns the ObjectName for the LoggingService Mbean of this target.
|
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.
|
protected ObjectName |
getRuntimeLoggerConfigFacadeMBeanName(String target) |
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName)
Return the display name for a runtime logger
|
String |
getRuntimeLoggerDisplayName(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Return the display name for a runtime logger
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName)
Lookup the level of one runtime logger
|
Level |
getRuntimeLoggerLevel(String runtimeLoggerName,
String targetName,
String targetInstanceName)
Lookup the level of one runtime logger
|
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)
Gets all the runtime loggers and their display names
|
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)
Set the component static configuration.
|
void |
setComponentLoggerLevel(String componentName,
String loggerCustomName,
Level logLevel,
String targetName,
String targetInstanceName)
Sets the component log level for a given logger
|
protected String |
setLevel(Level logLevel)
Return the "verb" (the setXXX MBean operation) for the given log level
|
boolean |
setRuntimeConfiguration(Map<String,Object> properties,
String targetName)
This method sets one or more configuration parameters on the runtime with
a list of name/value pairs passed as a properties object.
|
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.
|
protected boolean |
setRuntimeConfigurationInternal(Properties properties,
String targetName)
Set JBI Runtime Configuration
|
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)
Sets the log level for a given runtime logger
|
protected void |
validateTargetForRuntimeConfigurationSpport(String targetName)
validates targetName and throws exception if the target is a clustered instance.
|
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.
|
componentInstalledOnTargetCheck, componentStartedOnTargetCheck, getComponentLifeCycleMBeanObjectName, getComponentNamesDependentOnServiceAssembly, getComponentNamesDependentOnServiceAssembly, getComponentNamesDependentOnSharedLibrary, getComponentNamesDependentOnSharedLibrary, getComponentNamesDependentOnSharedLibraryAndServiceAssembly, getComponentNamesWithStatus, getComponentState, getConfigurationDescriptors, getFrameworkComponentInfoList, getFrameworkComponentInfoListForEnginesAndBindings, getFrameworkComponentInfoListForSharedLibraries, getFrameworkComponentInfoListForSharedLibraryNames, getFrameworkComponentQuery, getServiceAssemblyInfoList, getSystemLoggerMBeans, getUiComponentInfoList, isExistingComponent, isExistingSharedLibrary, listComponents, targetUpCheck, toFrameworkComponentInfoState, toFrameworkComponentInfoType, toFrameworkServiceAssemblyState, toUiComponentInfo, toUiComponentInfoList, toUiComponentInfoState, toUiComponentInfoType, toUiServiceAssemblyState, toUiServiceUnitState, updateEachServiceUnitInfoStateInServiceAssemblyInfo, updateServiceAssemblyInfoState, updateServiceUnitInfoState, validateUiJBIComponentInfoState, validateUiServiceAssemblyInfoStatecheckForValidTarget, checkForValidTarget, checkTargetType, constructMBeanAttributes, constructMBeanAttributes, constructMBeanAttributes, createManagementException, createManagementMessage, domainTargetCheck, findLiveExtensionMBeanObjectNames, getAdminServiceMBeanObjectName, getAdminServiceMBeanObjectName, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getDeploymentServiceMBeanObjectName, getEbiJmxDomain, getEbiStatusMBeanObjectName, getEnvironmentContext, getI18NBundle, getI18NBundle, getInstallationServiceMBeanObjectName, getMBeanAttribute, getMBeanAttributeValues, getMBeanAttributeValuesAsMap, getMBeanServerConnection, getPlatformContext, getPlatformContextAdminServerName, getPlatformContextClusteredServerNames, getPlatformContextClusterNames, getPlatformContextInstallRoot, getPlatformContextInstanceName, getPlatformContextInstanceRoot, getPlatformContextJmxRmiPort, getPlatformContextMBeanServer, getPlatformContextServersInCluster, getPlatformContextStandaloneServerNames, getPlatformContextTargetName, getPlatformContextTargetName, getStackTrace, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, isMBeanRegistered, isPlatformContextAdminServer, isPlatformContextCluster, isPlatformContextClusteredServer, isPlatformContextInstanceClustered, isPlatformContextInstanceUp, isPlatformContextStandaloneServer, isPlatformContextValidTarget, isTargetUp, isValidTarget, isValidTarget, listTargetNames, log, logDebug, logDebug, logError, logWarning, platformContextSupportsMultipleServers, setAttributeValue, setAttributeValue, setAttributeValue, setMBeanAttribute, setMBeanAttributes, setMBeanAttributes, setMBeanConfigAttributes, setMBeanConfigAttributespublic ConfigurationServiceMBeanImpl(EnvironmentContext anEnvContext)
anEnvContext - 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 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 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"ManagementRemoteException - if there is a jmx error accessing the instanceConfigurationService.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 instance *ConfigurationService.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 ConfigurationServiceManagementRemoteException - 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 - if there is a jmx error accessing the instanceConfigurationService.getComponentConfiguration(java.lang.String,
java.lang.String)public Map<String,ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException
getComponentExtensionMBeanObjectNames in interface ConfigurationServicegetComponentExtensionMBeanObjectNames in class AbstractServiceMBeansImplcomponentName - 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 ConfigurationServicegetComponentExtensionMBeanObjectNames in class AbstractServiceMBeansImplcomponentName - 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.)ManagementRemoteExceptionConfigurationService.getRuntimeLoggerLevel(java.lang.String,
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,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,Level> getRuntimeLoggerLevels(String targetName) throws ManagementRemoteException
getRuntimeLoggerLevels in interface ConfigurationServicetargetName - name of the target (e.g., cluster1, server, etc.)ManagementRemoteException - on errorpublic 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.)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.)targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.)ManagementRemoteException - on errorpublic 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.)ManagementRemoteException - on errorpublic boolean isServerRestartRequired()
throws ManagementRemoteException
isServerRestartRequired in interface ConfigurationServiceManagementRemoteExceptionConfigurationService.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 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.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 identificationtargetName - identification of the target. Can be a standalone server,
cluster or clustered instance.appVariables - -
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"ManagementRemoteException - if there is a jmx error accessing the instancecom.sun.esb.management.api.configuration.ConfigurationService#setApplicationVariables(java.lang.String,
java.lang.String, java.util.Properties)public String setComponentConfiguration(String componentName, Properties configurationValues, String targetName) throws ManagementRemoteException
setComponentConfiguration in interface ConfigurationServicecomponentName - targetName - configurationValues - ManagementRemoteExceptionConfigurationService.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 componentloggerName - the component logger namelogLevel - the level to set the logger; when null, reverts the logger to
inherit its level from its parent 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 ConfigurationServiceProperties - 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.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 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.)ManagementRemoteException - on errorpublic 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,
java.lang.String, boolean, java.lang.String, boolean)protected ObjectName getComponentConfigurationFacadeMBeanName(String componentName, String targetName) throws ManagementRemoteException
componentName - -
component idtargetName - -
target nameManagementRemoteExceptionprotected Properties getComponentConfigurationForClusteredServer(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteExceptionprotected ObjectName getConfigMBeanName(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteExceptionprotected String convertToString(Collection colxn)
set - a non-empty setprotected ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException
getExtensionMBeanObjectName in class AbstractServiceMBeansImplcomponentName - targetName - ManagementRemoteExceptionprotected Properties getConfigurationAttributeValues(ObjectName objectName) throws ManagementRemoteException
objectName - ManagementRemoteExceptionprotected Map<String,Object> getConfigurationAttributeValuesAsMap(ObjectName objectName) throws ManagementRemoteException
objectName - ManagementRemoteExceptionprotected Properties getDefaultRuntimeConfigurationInternal(String targetName) throws ManagementRemoteException
targetName - ManagementRemoteExceptionpublic ObjectName getConfigurationMBeanObjectName(String targetName, String configurationType) throws ManagementRemoteException
targetName - configurationType - ManagementRemoteExceptionpublic ObjectName getLoggingServiceMBeanObjectName(String targetName)
targetName - protected String setLevel(Level logLevel)
setLevel in class AbstractServiceMBeansImpllogLevel - log level to set logger toprotected boolean setRuntimeConfigurationInternal(Properties properties, String targetName) throws ManagementRemoteException
properties - targetName - ManagementRemoteExceptionprotected Map<String,Properties> getApplicationConfigurationsMap(TabularData td)
public 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 compositeManagementRemoteException - 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 composite to be updated.ManagementRemoteException - if one or more application variables cannot be deletedpublic Map<String,Object> getDefaultRuntimeConfigurationAsMap() throws ManagementRemoteException
getDefaultRuntimeConfigurationAsMap in interface ConfigurationServiceManagementRemoteException - if there is a jmx error accessing the instancepublic Map<String,Object> getDefaultRuntimeConfigurationAsMapInternal(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 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> properties, 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.)ManagementRemoteExceptionprotected ObjectName getRuntimeLoggerConfigFacadeMBeanName(String target)
protected String getExistingAppVarType(String compName, String targetName, String appVarName)
protected void validateTargetForRuntimeConfigurationSpport(String targetName) throws ManagementRemoteException
targetName - name of the target intance.ManagementRemoteExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.