| Constructor and Description |
|---|
UpdaterImpl(Jbi jbi,
ManagementContext mgtCtx,
boolean validate,
RegistryImpl registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCluster(String clusterNameRef) |
void |
addComponent(ComponentInfo componentInfo)
Add a component to the runtime target
|
void |
addComponent(String targetName,
ComponentInfo componentInfo)
Add a component to a given target.
|
void |
addComponent(String componentName,
String fileName,
Calendar timestamp)
Add a domain component
|
void |
addComponentApplicationConfiguration(String componentName,
Properties appConfig)
Add a named application configuration to the registry for the component for the
implicit runtime target.
|
void |
addComponentApplicationConfiguration(String componentName,
String targetName,
Properties appConfig)
Add a named application configuration to the registry for the component for the
specified runtime target.
|
void |
addComponentApplicationVariables(String componentName,
ComponentInfo.Variable[] appVars)
Add a set of application variables to the registry for the runtime target.
|
void |
addComponentApplicationVariables(String componentName,
String targetName,
ComponentInfo.Variable[] appVars)
Add a set of application variables to the registry for the specified target.
|
void |
addServer(String serverNameRef) |
void |
addServiceAssembly(String saName)
Add a service assembly to the runtime's target
|
void |
addServiceAssembly(String targetName,
String saName)
Add a service assembly to a given target.
|
void |
addServiceAssembly(String saName,
String fileName,
Calendar timestamp)
Add a service assembly to the domain.
|
void |
addServiceUnitToComponent(String componentName,
ServiceUnitInfo suInfo)
Add a ServiceUnit to a Component for the runtime target
|
void |
addServiceUnitToComponent(String targetName,
String componentName,
ServiceUnitInfo suInfo)
Add a ServiceUnit to a Component
|
void |
addSharedLibrary(ComponentInfo sharedLibraryInfo)
Add a shared library to he runtime's target
|
void |
addSharedLibrary(String targetName,
ComponentInfo sharedLibraryInfo)
Add a shared library to a given target.
|
void |
addSharedLibrary(String slName,
String fileName,
Calendar timestamp)
Add a domain shared library
|
void |
correctTimestamps()
This method is used to correct timestamps on schemaorg_apache_xmlbeans.system components on the DAS if they
are not already set.
|
void |
deleteAttribute(ConfigurationCategory type,
String name)
Delete the named attribute from the category if it exists, for the implicit target
The attribute is deleted only if it is overriden for the target, if target is "domain"
the attribute is not deleted.
|
void |
deleteAttribute(String targetName,
ConfigurationCategory type,
String name)
Delete the named attribute from the category if it exists.
|
void |
deleteComponentApplicationConfiguration(String componentName,
String appConfigName)
Delete a named application configuration
|
void |
deleteComponentApplicationConfiguration(String componentName,
String targetName,
String appConfigName)
Delete a named application configuration
|
void |
deleteComponentApplicationVariables(String componentName,
String[] names)
Delete a set of application variables from the registry for the runtime target.
|
void |
deleteComponentApplicationVariables(String componentName,
String targetName,
String[] names)
Add a set of application variables to the registry for the specified target.
|
void |
removeCluster(String clusterNameRef) |
void |
removeComponent(String componentName)
Remove a component from the runtime's target
|
void |
removeComponent(String targetName,
String componentName)
Remove a component from a given target.
|
void |
removeServer(String serverNameRef) |
void |
removeServiceAssembly(String saName)
Remove a service assembly from the runtime target
|
void |
removeServiceAssembly(String targetName,
String saName)
Remove a service assembly from a given target.
|
void |
removeServiceUnitFromComponent(String componentName,
String suName)
Remove a ServiceUnit from a Component for the runtime target
|
void |
removeServiceUnitFromComponent(String targetName,
String componentName,
String suName)
Remove a ServiceUnit from a Component
|
void |
removeSharedLibrary(String sharedLibraryName)
Remove a shared library from the runtimes target
|
void |
removeSharedLibrary(String targetName,
String sharedLibraryName)
Remove a shared library from a given target.
|
void |
setAttribute(ConfigurationCategory type,
String name,
String value)
Set the value of a configuration attribute belonging to the
specified category, for the runtime target.
|
void |
setAttribute(String targetName,
ConfigurationCategory type,
String name,
String value)
Get the value of a configuration attribute belonging to the
specified category, for the runtime target.
|
void |
setComponentAttribute(String componentName,
String name,
String value)
Set the value of a configuration attribute for a component installed on a target
for the runtime target.
|
void |
setComponentAttribute(String componentName,
String targetName,
String name,
String value)
Set the value of a configuration attribute for a component installed on a target,
|
void |
setComponentAttributes(String componentName,
Properties props)
Set the value of a configuration attribute for a component installed on a target
for the runtime target.
|
void |
setComponentAttributes(String componentName,
String targetName,
Properties props)
Set the value of a configuration attribute for a component installed on a target,
|
void |
setComponentFileName(String fileName,
String componentName)
Set the file name for the domain component.
|
void |
setComponentProperties(String targetName,
Map<String,String> props,
String componentName)
Set the properties of a component in a server/cluster.
|
void |
setComponentState(ComponentState state,
String componentName)
Set the state of a component for the target at runtime.
|
void |
setComponentState(String targetName,
ComponentState state,
String componentName)
Set the state of a component in a server/cluster.
|
void |
setComponentUpgradeNumber(String componentName,
BigInteger upgradeNumber)
This method is used to set the upgrade-number attribute in the domain
level entry for a component
|
void |
setServiceAssemblyFileName(String fileName,
String saName)
Set the file name for the domain service assembly
|
void |
setServiceAssemblyState(ServiceAssemblyState state,
String saName)
Set the state of a ServiceAssembly for the runtime target.
|
void |
setServiceAssemblyState(String targetName,
ServiceAssemblyState state,
String saName)
Set the state of a ServiceAssembly in a server / cluster.
|
void |
setServiceUnitState(ServiceUnitState state,
String componentName,
String suName)
Set the state of a ServiceUnit for the runtime target.
|
void |
setServiceUnitState(String targetName,
ServiceUnitState state,
String componentName,
String suName)
Set the state of a ServiceUnit in a server / cluster.
|
void |
setSharedLibraryFileName(String fileName,
String slName)
Set the file name for the domain service assembly.
|
void |
updateComponentApplicationConfiguration(String componentName,
Properties appConfig)
Update a named application configuration set on a component
for the implicit runtime target.
|
void |
updateComponentApplicationConfiguration(String componentName,
String targetName,
Properties appConfig)
Update a named application configuration set on a component
for the specified runtime target.
|
void |
updateComponentApplicationVariables(String componentName,
ComponentInfo.Variable[] appVars)
Update a set of application variables to the registry for the runtime target.
|
void |
updateComponentApplicationVariables(String componentName,
String targetName,
ComponentInfo.Variable[] appVars)
Updated a set of application variables to the registry for the specified target.
|
public UpdaterImpl(Jbi jbi, ManagementContext mgtCtx, boolean validate, RegistryImpl registry) throws RegistryException
RegistryExceptionpublic void addComponent(ComponentInfo componentInfo) throws RegistryException
addComponent in interface UpdatercomponentInfo - - component instanceRegistryException - on errorspublic void addComponent(String componentName, String fileName, Calendar timestamp) throws RegistryException
addComponent in interface UpdatercomponentName - - name of the componentfileName - - component file nameRegistryExceptionpublic void addComponent(String targetName, ComponentInfo componentInfo) throws RegistryException
addComponent in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}
not considered when targetType = DOMAIN.componentInfo - - component instanceRegistryException - on errorspublic void removeComponent(String componentName) throws RegistryException
removeComponent in interface UpdatercomponentName - - component nameRegistryException - on errorspublic void removeComponent(String targetName, String componentName) throws RegistryException
removeComponent in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}componentName - - component nameRegistryException - on errorspublic void addSharedLibrary(ComponentInfo sharedLibraryInfo) throws RegistryException
addSharedLibrary in interface UpdaterComponentInfo - - shared library infoRegistryException - on errorspublic void addSharedLibrary(String slName, String fileName, Calendar timestamp) throws RegistryException
addSharedLibrary in interface UpdaterslName - - name of the shared libraryfileName - - component file nameRegistryExceptionpublic void addSharedLibrary(String targetName, ComponentInfo sharedLibraryInfo) throws RegistryException
addSharedLibrary in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}ComponentInfo - - shared library infoRegistryException - on errorspublic void removeSharedLibrary(String sharedLibraryName) throws RegistryException
removeSharedLibrary in interface UpdatersharedLibraryName - - shared library nameRegistryException - on errorspublic void removeSharedLibrary(String targetName, String sharedLibraryName) throws RegistryException
removeSharedLibrary in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}sharedLibraryName - - shared library nameRegistryException - on errorspublic void addServiceAssembly(String saName) throws RegistryException
addServiceAssembly in interface UpdatersaName - - service assembly nameRegistryException - on errorspublic void addServiceAssembly(String saName, String fileName, Calendar timestamp) throws RegistryException
addServiceAssembly in interface UpdatersaName - - service assembly namefileName - - service assembly archive nameRegistryException - on errorspublic void addServiceAssembly(String targetName, String saName) throws RegistryException
addServiceAssembly in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}saName - - service assembly nameRegistryException - on errorspublic void removeServiceAssembly(String saName) throws RegistryException
removeServiceAssembly in interface UpdatersaName - - service assembly nameRegistryException - on errorspublic void removeServiceAssembly(String targetName, String saName) throws RegistryException
removeServiceAssembly in interface UpdatertargetName - - {'domain', 'server', "instance-name", "cluster-name"}saName - - service assembly nameRegistryException - on errorspublic void addServer(String serverNameRef) throws RegistryException
addServer in interface UpdaterserverNameRef - - server name to be addedRegistryExceptionpublic void removeServer(String serverNameRef) throws RegistryException
removeServer in interface UpdaterserverNameRef - - server name to be removedRegistryExceptionpublic void addCluster(String clusterNameRef) throws RegistryException
addCluster in interface UpdaterclusterNameRef - - cluster name to be addedRegistryExceptionpublic void removeCluster(String clusterNameRef) throws RegistryException
removeCluster in interface UpdaterclusterNameRef - - cluster name to be removedRegistryExceptionpublic void setComponentFileName(String fileName, String componentName) throws RegistryException
setComponentFileName in interface UpdaterfileName - - name of the component archivecomponentName - - component nameRegistryExceptionpublic void setSharedLibraryFileName(String fileName, String slName) throws RegistryException
setSharedLibraryFileName in interface UpdaterfileName - - name of the shared library archiveslName - - shared library nameRegistryExceptionpublic void setServiceAssemblyFileName(String fileName, String saName) throws RegistryException
setServiceAssemblyFileName in interface UpdaterfileName - - name of the service assembly archivesaName - - service assembly nameRegistryExceptionpublic void setComponentState(ComponentState state, String componentName) throws RegistryException
setComponentState in interface UpdatercomponentName - - component namestate - - the state to set.RegistryException - on errorspublic void setComponentState(String targetName, ComponentState state, String componentName) throws RegistryException
setComponentState in interface UpdatertargetName - - either the server-name or cluster-namecomponentName - - component namestate - - the state to set.RegistryException - on errorspublic void setComponentProperties(String targetName, Map<String,String> props, String componentName) throws RegistryException
setComponentProperties in interface UpdatertargetName - - either the server-name or cluster-name, this operation is
a no-op when target = domain.componentName - - component nameprops - - the properties to set.RegistryException - on errorspublic void setServiceUnitState(ServiceUnitState state, String componentName, String suName) throws RegistryException
setServiceUnitState in interface UpdatercomponentName - - component namesuName - - service unit namestate - - the state to set.RegistryException - on errorspublic void setServiceUnitState(String targetName, ServiceUnitState state, String componentName, String suName) throws RegistryException
setServiceUnitState in interface UpdatertargetName - - either the value 'domain', 'server' or the
server-name or cluster-name.componentName - - component namesuName - - service unit namestate - - the state to set.RegistryException - on errorspublic void setServiceAssemblyState(ServiceAssemblyState state, String saName) throws RegistryException
setServiceAssemblyState in interface Updaterstate - - the state to set.saName - - the service assembly nameRegistryException - on errorspublic void setServiceAssemblyState(String targetName, ServiceAssemblyState state, String saName) throws RegistryException
setServiceAssemblyState in interface UpdatertargetName - - either the value 'domain', 'server' or the
server-name or cluster-name.saName - - service assembly namestate - - the state to set.RegistryException - on errorspublic void addServiceUnitToComponent(String componentName, ServiceUnitInfo suInfo) throws RegistryException
addServiceUnitToComponent in interface UpdatersuInfo - - ServiceUnitInfocomponentName - - component nameRegistryException - on errorspublic void addServiceUnitToComponent(String targetName, String componentName, ServiceUnitInfo suInfo) throws RegistryException
addServiceUnitToComponent in interface UpdatersuInfo - - ServiceUnitInfotargetName - - either the value 'domain', 'server' or the
server-name or cluster-name.componentName - - component nameRegistryException - on errorspublic void removeServiceUnitFromComponent(String componentName, String suName) throws RegistryException
removeServiceUnitFromComponent in interface UpdatersuName - - ServiceUnitInfo namecomponentName - - component nameRegistryException - on errorspublic void removeServiceUnitFromComponent(String targetName, String componentName, String suName) throws RegistryException
removeServiceUnitFromComponent in interface UpdatersuName - - ServiceUnitInfo nametargetName - - the server-name or cluster-name.componentName - - component nameRegistryException - on errorspublic void setAttribute(ConfigurationCategory type, String name, String value) throws RegistryException
setAttribute in interface Updatertype - - configuration categoryname - - identification for the attributevalue - - string representation of the attribute valueRegistryException - on errors in getting the attribute valuepublic void setAttribute(String targetName, ConfigurationCategory type, String name, String value) throws RegistryException
setAttribute in interface UpdatertargetName - - target instance/cluster name.type - - configuration categoryname - - identification for the attributevalue - - string representation of the attribute valueRegistryException - on errors in getting the attribute valuepublic void deleteAttribute(ConfigurationCategory type, String name) throws RegistryException
deleteAttribute in interface Updatertype - - configuration categoryname - - identification for the attributeRegistryException - on errors in getting the attribute valuepublic void deleteAttribute(String targetName, ConfigurationCategory type, String name) throws RegistryException
deleteAttribute in interface UpdatertargetName - - target instance/cluster name.type - - configuration categoryname - - identification for the attributeRegistryException - on errors in getting the attribute valuepublic void setComponentUpgradeNumber(String componentName, BigInteger upgradeNumber) throws RegistryException
setComponentUpgradeNumber in interface UpdatercomponentName - the component nameupgradeNumber - the update numberRegistryException - if the update number could not be setpublic void correctTimestamps()
throws RegistryException
RegistryExceptionpublic void setComponentAttribute(String componentName, String name, String value) throws RegistryException
setComponentAttribute in interface Updatername - - identification for the attributevalue - - string representation of the attribute valuecomponentName - - identification for the componentRegistryException - on errors in getting the attribute valuepublic void setComponentAttribute(String componentName, String targetName, String name, String value) throws RegistryException
setComponentAttribute in interface UpdatertargetName - - target instance/cluster name.name - - identification for the attributevalue - - string representation of the attribute valuecomponentName - - identification for the componentRegistryException - on errors in getting the attribute valuepublic void setComponentAttributes(String componentName, Properties props) throws RegistryException
setComponentAttributes in interface Updatername - - identification for the attributevalue - - string representation of the attribute valuecomponentName - - identification for the componentRegistryException - on errors in getting the attribute valuepublic void setComponentAttributes(String componentName, String targetName, Properties props) throws RegistryException
setComponentAttributes in interface UpdatertargetName - - target instance/cluster name.properties - - the properties to setcomponentName - - identification for the componentRegistryException - on errors in getting the attribute valuepublic void addComponentApplicationVariables(String componentName, ComponentInfo.Variable[] appVars) throws RegistryException
addComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be added to the registryRegistryException - on errors in adding the application variables.public void addComponentApplicationVariables(String componentName, String targetName, ComponentInfo.Variable[] appVars) throws RegistryException
addComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be added to the registrytargetName - - target to be updatedRegistryException - on errors in adding the application variables.public void updateComponentApplicationVariables(String componentName, ComponentInfo.Variable[] appVars) throws RegistryException
updateComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be updatedRegistryException - on errors in updating the application variables.public void updateComponentApplicationVariables(String componentName, String targetName, ComponentInfo.Variable[] appVars) throws RegistryException
updateComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be updatedtargetName - - target to be updatedRegistryException - on errors in updating the application variables.public void deleteComponentApplicationVariables(String componentName, String[] names) throws RegistryException
deleteComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be deleted from the registrynames - - the names of the variables to be deleted.RegistryException - on errors in deleting the application variables.public void deleteComponentApplicationVariables(String componentName, String targetName, String[] names) throws RegistryException
deleteComponentApplicationVariables in interface UpdaterappVars - - list of application variables to be deleted from the registrytargetName - - target to be updatednames - - the names of the variables to be deleted.RegistryException - on errors in deleting the application variables.public void addComponentApplicationConfiguration(String componentName, Properties appConfig) throws RegistryException
addComponentApplicationConfiguration in interface UpdatercomponentName - component identificationappConfig - named application configuration represented as propertiesRegistryException - on errors in adding the application configuration.public void addComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig) throws RegistryException
addComponentApplicationConfiguration in interface UpdatercomponentName - component identificationappConfig - named application configuration represented as propertiestargetName - target nameRegistryException - on errors in adding the application configuration.public void updateComponentApplicationConfiguration(String componentName, Properties appConfig) throws RegistryException
updateComponentApplicationConfiguration in interface UpdatercomponentName - component identificationappConfig - named application configuration represented as propertiesRegistryException - on errors in updating the application configuration.public void updateComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig) throws RegistryException
updateComponentApplicationConfiguration in interface UpdatercomponentName - component identificationappConfig - named application configuration represented as propertiestargetName - target nameRegistryException - on errors in updating the application configuration.public void deleteComponentApplicationConfiguration(String componentName, String appConfigName) throws RegistryException
deleteComponentApplicationConfiguration in interface UpdaterappConfigName - name of the application configuration to delete.componentName - component identificationRegistryException - on errors in deleting the application configuration.public void deleteComponentApplicationConfiguration(String componentName, String targetName, String appConfigName) throws RegistryException
deleteComponentApplicationConfiguration in interface UpdatercomponentName - component identificationtargetName - target nameappConfigName - the name of the configuration to be deleted.RegistryException - on errors in deleting the application configuration.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.