public class InstallationService extends Facade implements InstallationServiceMBean
InstallerMBeans, loaded by this MBean. An individual installer MBean
is needed for each component installation / uninstallation. This is to support
the more complex installation process that some components require.CONFIG_SCHEMA_PATH, DOMAIN, MASKED_FIELD_VALUE, mComponentConfigSchema, mEnvCtx, mLog, mMBeanNames, mMBeanSvr, mMgtCtx, mMsgBuilder, mPlatform, mTarget, mTranslator, PASSWORD, SERVER, sTypeMap, WORKSPACE_ROOT| Constructor and Description |
|---|
InstallationService(EnvironmentContext ctx,
String target) |
| Modifier and Type | Method and Description |
|---|---|
String |
installSharedLibrary(String slZipURL)
Install a shared library installation package.
|
String |
installSharedLibraryFromRepository(String sharedLibraryName)
Install a shared library from the Repository.
|
ObjectName |
loadInstaller(String componentName)
Load the InstallerMBean for a previously installed component.
|
ObjectName |
loadInstaller(String componentName,
boolean force)
Load the InstallerMBean for a previously installed component.
|
ObjectName |
loadInstallerFromRepository(String componentName)
Load the installer for a component from the Repository.
|
ObjectName |
loadNewInstaller(String installZipURL)
Load the installer for a new component for the given component
installation package.
|
boolean |
uninstallSharedLibrary(String slName)
Uninstall a previously installed shared library.
|
boolean |
uninstallSharedLibrary(String slName,
boolean keep)
Uninstall a previously installed shared library.
|
boolean |
unloadInstaller(String componentName,
boolean isToBeDeleted)
Unload an InstallerMBean previously loaded for a component.
|
String |
upgradeComponent(String componentName,
String installZipURL)
Upgrade a component.
|
archiveEqualityCheck, 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 InstallationService(EnvironmentContext ctx, String target) throws ManagementException
ManagementExceptionpublic ObjectName loadNewInstaller(String installZipURL)
loadNewInstaller in interface InstallationServiceMBeaninstallZipURL - URL locating a ZIP file containing the
JBI Installation package to be installed; must be non-null,
non-empty, and a legal URLpublic ObjectName loadInstaller(String componentName)
The "component name" refers to the
<identification><name> element value from the
component's installation package (see loadNewInstaller(String)).
loadInstaller in interface InstallationServiceMBeancomponentName - the component name identifying the installer to
load; must be non-null and non-emptynull if the installer MBean
doesn't existpublic ObjectName loadInstaller(String componentName, boolean force)
The "component name" refers to the
<identification><name> element value from the
component's installation package (see loadNewInstaller(String)).
componentName - the component name identifying the installer to
load; must be non-null and non-emptyforce - set to true for a forced uninstall.null if the installer MBean
doesn't existpublic boolean unloadInstaller(String componentName, boolean isToBeDeleted)
unloadInstaller in interface InstallationServiceMBeancomponentName - the component name identifying the installer to
unload; must be non-null and non-emptyisToBeDeleted - true if the component is to be deleted
as wellpublic String installSharedLibrary(String slZipURL)
The return value is the unique name for the shared-library, as found
in the the value of the installation descriptor's
<identification><name> element.
installSharedLibrary in interface InstallationServiceMBeanslZipURL - URL locating a zip file containing a shared library
installation package; must be non-null, non-empty, and a legal
URLpublic boolean uninstallSharedLibrary(String slName)
uninstallSharedLibrary in interface InstallationServiceMBeanslName - the name of the shared name space to uninstall; must be
non-null and non-emptypublic ObjectName loadInstallerFromRepository(String componentName) throws JBIException
componentName - - name of the registered component.JBIException - if the component is not registered.public String installSharedLibraryFromRepository(String sharedLibraryName) throws JBIException
sharedLibraryName - - name of the registered shared library.JBIException - if the shared library is not registered or
uninstall fails.public boolean uninstallSharedLibrary(String slName, boolean keep)
slName - the name of the shared name space to uninstall; must be
non-null and non-emptykeep - if true the shared libray is not deleted from the domain.
If false, the shared library is deleted from the repository
if after this uninstall it is not installed on any targets.public String upgradeComponent(String componentName, String installZipURL) throws JBIException
componentName - The name of the component.installZipURL - The URL to the component archive.JBIException - if there is a problem with the upgrade.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.