public class ClusterInstanceComponentConfiguration extends ComponentConfiguration implements ComponentConfiguration
ComponentConfiguration.ComponentConfigurationResponsemCfgHlpr, mComponentName, mComponentType, mConfigDocCONFIG_SCHEMA_PATH, DOMAIN, MASKED_FIELD_VALUE, mComponentConfigSchema, mEnvCtx, mLog, mMBeanNames, mMBeanSvr, mMgtCtx, mMsgBuilder, mPlatform, mTarget, mTranslator, PASSWORD, SERVER, sTypeMap, WORKSPACE_ROOTADMIN_RUNNING_FILE, ADMIN_STOPPED_FILE, CONFIG_NAME_KEY, LOG_LEVEL_DEFAULT, TMP_FOLDER| Constructor and Description |
|---|
ClusterInstanceComponentConfiguration(EnvironmentContext ctx,
String instanceName,
String clusterName,
String compName,
ComponentType compType)
Create an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addApplicationConfiguration(String name,
CompositeData appConfig)
Add an application configuration.
|
String |
addApplicationConfiguration(String name,
Properties appCfgProps)
Add an application configuration.
|
String |
addApplicationVariable(String name,
CompositeData appVar)
This operation adds a new application variable.
|
protected void |
attributeCheck(String attributeName)
Check if the attribute is valid i.e. the MBeanInfo of the
ComponentConfigurationMBean has this attribute.
|
String |
deleteApplicationConfiguration(String name)
Delete an application configuration.
|
String |
deleteApplicationVariable(String name)
This operation deletes an application variable, if a variable with the specified name does
not exist, it's an error.
|
TabularData |
getApplicationConfigurations()
Get a Map of all application configurations for the component.
|
TabularData |
getApplicationVariables()
Get the Application Variable set for a component.
|
Object |
getAttribute(String attribute)
Obtain the value of a specific attribute of the Dynamic MBean.
|
AttributeList |
getAttributes(String[] attributes)
Get the values of several attributes of the Dynamic MBean.
|
protected MBeanInfo |
getComponentMBeanInfo()
Get the MBeanInfo from the actual component configuration MBean.
|
MBeanInfo |
getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using
an MBeanInfo object.
|
Object |
invoke(String actionName,
Object[] params,
String[] signature)
Allows an action to be invoked on the Dynamic MBean.
|
boolean |
isAppConfigSupported()
Detect the components support for application configuration.
|
boolean |
isAppVarsSupported()
Detect the components support for application variables.
|
boolean |
isComponentConfigSupported()
Detect the components support for component configuration.
|
CompositeType |
queryApplicationConfigurationType()
Get the CompositeType definition for the components application configuration
|
String |
retrieveConfigurationDisplayData()
Retrieves the component configuration metadata.
|
String |
retrieveConfigurationDisplaySchema()
Retrieves the component specific configuration schema.
|
String |
setApplicationConfiguration(String name,
CompositeData appConfig)
Update a application configuration.
|
String |
setApplicationConfiguration(String name,
Properties appCfgProps)
Set an application configuration.
|
String |
setApplicationVariable(String name,
CompositeData appVar)
This operation sets an application variable.
|
void |
setAttribute(Attribute attribute)
Set the value of a specific attribute of the Dynamic MBean.
|
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean.
|
String |
setConfigurationAttribute(Attribute attrib)
Set a single configuration attribute on a target.
|
String |
setConfigurationAttributes(AttributeList attribList) |
addApplicationConfigurationToInstance, addApplicationVariableToInstance, applicationConfigurationCompositeIntegrityCheck, applicationConfigurationCompositeIntegrityCheck, applicationConfigurationExistsCheck, applicationConfigurationExistsInstanceCheck, applicationVariableCompositeIntegrityCheck, applicationVariableExistsCheck, applicationVariableExistsInstanceCheck, attribListToString, attributeCheck, attributeCheck, attributeCheck, canListAppConfigCheck, checkAppVarValue, componentStartedOrStoppedOnTargetCheck, createEmptyAppConfigTable, createEmptyAppVarTable, deleteApplicationConfigurationFromInstance, deleteApplicationVariableFromInstance, getApplicationConfigurationsForInstance, getApplicationVariablesForInstance, getAttributeInfo, getConfigDoc, getRemoteInstanceComponentConfigMBeanName, isBoolean, isNumber, merge, setApplicationConfigurationOnInstance, setApplicationVariableOnInstance, setConfigurationAttributeOnInstance, setConfigurationAttributesOnInstance, supportsAppConfigCheck, supportsAppVarsCheckarchiveEqualityCheck, areAllInstancesUp, componentInstallationCheck, convertToString, fromFileURL, getAllTargets, getComponentConfigurationData, getComponentConfigurationNS, getComponentConfigurationSchema, getComponentLifeCycleMBeanName, getComponentQuery, getComponentQuery, getComponentState, getComponentStateOnInstance, getComponentType, getFacadeInstallerMBeanName, getFacadeInstallerMBeanName, getGenericQuery, getMBeanServerConnection, getRegistry, getRemoteAdminServiceObjectName, getRemoteAttribute, getRemoteAttributes, getServiceAssemblyQuery, getUpdater, handleClusteredInstanceFailures, initPrimitiveTypeMap, instanceRunningCheck, invokeLocalOperation, invokeRemoteOperation, invokeRemoteVoidOperation, isComponentInstalled, isInstanceRunning, isMBeanRegisteredOnInstance, isSharedLibraryInstalled, isTargetUp, mbeanRegistrationCheck, setRemoteAttribute, setRemoteAttributes, sharedLibraryInstallationCheck, throwNotSupportedManagementException, toFileURL, unregisterComponentConfigurationMBean, unregisterComponentConfigurationMBean, unregisterComponentExtensionMBean, unregisterComponentExtensionMBean, unregisterComponentLifeCycleMBean, unregisterComponentLifeCycleMBean, uploadFile, validateArchivepublic ClusterInstanceComponentConfiguration(EnvironmentContext ctx, String instanceName, String clusterName, String compName, ComponentType compType) throws ManagementException
ctx - - Environment ContextinstanceName - - clustered instance nameclusterName - - parent cluster namecompName - - component namecompType - - component typeManagementExceptionpublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeangetAttribute in class ComponentConfigurationattribute - The name of the attribute to be retrievedAttributeNotFoundException - if an attribute is not foundMBeanException - Wraps a java.lang.Exception
thrown by the MBean's getter.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the getter.setAttribute(javax.management.Attribute)public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeansetAttribute in class ComponentConfigurationattribute - The identification of the attribute to
be set and the value it is to be set to.AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanException - Wraps a java.lang.Exception
thrown by the MBean's setter.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the MBean's setter.getAttribute(java.lang.String)public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeaninvoke in class ComponentConfigurationactionName - The name of the action to be invoked.params - An array containing the parameters to be set when the
action is invoked.signature - An array containing the signature of the action. The
class objects will be loaded through the same class loader as the
one used for loading the MBean on which the action is invoked.MBeanException - Wraps a java.lang.Exception thrown
by the MBean's invoked method.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the methodpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeansetAttributes in class ComponentConfigurationattributes - A list of attributes: The identification of the
attributes to be set and the values they are to be set to.getAttributes(java.lang.String[])public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class ComponentConfigurationMBeanInfo allowing all attributes
and actions exposed by this Dynamic MBean to be retrieved.public AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeangetAttributes in class ComponentConfigurationattributes - A list of the attributes to be retrieved.setAttributes(javax.management.AttributeList)public String setConfigurationAttribute(Attribute attrib) throws JBIException
setConfigurationAttribute in class ComponentConfigurationattrib - - the configuration attribute to be set.JBIException - on errorspublic String setConfigurationAttributes(AttributeList attribList) throws JBIException
setConfigurationAttributes in class ComponentConfigurationattribList - List of configuration attributes to setJBIException - on errorspublic boolean isAppVarsSupported()
throws MBeanException
isAppVarsSupported in interface ComponentConfigurationisAppVarsSupported in class ComponentConfigurationMBeanException - if the component is not installed or is not
in the Started state.public String addApplicationVariable(String name, CompositeData appVar) throws MBeanException
addApplicationVariable in interface ComponentConfigurationaddApplicationVariable in class ComponentConfigurationname - - name of the application variableappVar - - this is the application variable compoisteMBeanException - if an error occurs in adding the application variables to the
component.public String setApplicationVariable(String name, CompositeData appVar) throws MBeanException
setApplicationVariable in interface ComponentConfigurationsetApplicationVariable in class ComponentConfigurationname - - name of the application variableappVar - - this is the application variable compoiste to be updated.MBeanException - if one or more application variables cannot be deletedpublic String deleteApplicationVariable(String name) throws MBeanException
deleteApplicationVariable in interface ComponentConfigurationdeleteApplicationVariable in class ComponentConfigurationname - - name of the application variableMBeanException - on errors.public TabularData getApplicationVariables()
getApplicationVariables in interface ComponentConfigurationgetApplicationVariables in class ComponentConfigurationpublic boolean isComponentConfigSupported()
throws MBeanException
isComponentConfigSupported in interface ComponentConfigurationisComponentConfigSupported in class ComponentConfigurationMBeanException - if the component is not installed or is not
in the Started state.public boolean isAppConfigSupported()
throws MBeanException
isAppConfigSupported in interface ComponentConfigurationisAppConfigSupported in class ComponentConfigurationMBeanException - if the component is not installed or is not
in the Started state.public CompositeType queryApplicationConfigurationType()
queryApplicationConfigurationType in interface ComponentConfigurationqueryApplicationConfigurationType in class ComponentConfigurationpublic String addApplicationConfiguration(String name, Properties appCfgProps) throws MBeanException
addApplicationConfiguration in interface ComponentConfigurationaddApplicationConfiguration in class ComponentConfigurationname - - configuration name, must match the value of the field "name" in the namedConfigappCfgProps - - application configuration propertiesMBeanException - if the application configuration cannot be added.public String addApplicationConfiguration(String name, CompositeData appConfig) throws MBeanException
addApplicationConfiguration in interface ComponentConfigurationaddApplicationConfiguration in class ComponentConfigurationname - - configuration name, must match the value of the field "name" in the namedConfigappConfig - - application configuration compositeMBeanException - if the application configuration cannot be added.public String deleteApplicationConfiguration(String name) throws MBeanException
deleteApplicationConfiguration in interface ComponentConfigurationdeleteApplicationConfiguration in class ComponentConfigurationname - - identification of the application configuration to be deletedMBeanException - if the configuration cannot be deleted.public String setApplicationConfiguration(String name, Properties appCfgProps) throws MBeanException
setApplicationConfiguration in interface ComponentConfigurationsetApplicationConfiguration in class ComponentConfigurationname - - configuration name, must match the value of the field "name" in the namedConfigappCfgProps - - application configuration propertiesMBeanException - if the application configuration cannot be set.public String setApplicationConfiguration(String name, CompositeData appConfig) throws MBeanException
setApplicationConfiguration in interface ComponentConfigurationsetApplicationConfiguration in class ComponentConfigurationname - - configuration name, must match the value of the field "configurationName" in the appConfigappConfig - - application configuration compositeMBeanException - if there are errors encountered when updating the configuration.public TabularData getApplicationConfigurations()
getApplicationConfigurations in interface ComponentConfigurationgetApplicationConfigurations in class ComponentConfigurationpublic String retrieveConfigurationDisplaySchema() throws MBeanException
retrieveConfigurationDisplaySchema in interface ComponentConfigurationretrieveConfigurationDisplaySchema in class ComponentConfigurationMBeanException - on errorspublic String retrieveConfigurationDisplayData() throws MBeanException
retrieveConfigurationDisplayData in interface ComponentConfigurationretrieveConfigurationDisplayData in class ComponentConfigurationMBeanException - on errorsprotected MBeanInfo getComponentMBeanInfo()
getComponentMBeanInfo in class ComponentConfigurationprotected void attributeCheck(String attributeName) throws JBIException
attributeCheck in class ComponentConfigurationattribute - - the attribute to be checkedJBIException - if the provided attribute
is not present in the AttributeInfoCopyright © 2011-2016 OpenESB Community. All Rights Reserved.