public class InstallationService extends ModelSystemService 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.mAdminServiceMBeanName, mConfigServiceMBeanName, mDeployServiceMBeanName, mDisplayName, mEnv, mInitialMBeans, mInstallServiceMBeanName, mLifeCycleMBeanName, mLogger, mLoggerImpl, mLoggerMBeanName, mLoggingServiceMBeanName, mMBeanNames, mMBeanServer, mMessageServiceMBeanName, mModelName, mStartMBeans, mStatisticsMBeanName, mTranslatorSHUTDOWN, STARTED, STOPPED, UNKNOWN| Constructor and Description |
|---|
InstallationService(ManagementContext anEnv)
Constructs a InstallationService.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
initModelSystemService(EnvironmentContext anEnv)
local model init - called by constructor - create custom mbeans.
|
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.
|
void |
upgradeComponent(String componentName,
long upgradeNumber)
Set a component's upgrade number.
|
String |
upgradeComponent(String componentName,
String installZipPath)
Upgrade a component.
|
addNotificationListener, bootstrap, getComponentQuery, getCurrentState, getNotificationBroadcaster, getNotificationInfo, getRegistry, initModelSystemService, initModelSystemService, removeNotificationListener, removeNotificationListener, shutDown, start, stoppublic InstallationService(ManagementContext anEnv) throws JBIException
anEnv - is the ManagementContext.JBIExceptionprotected void initModelSystemService(EnvironmentContext anEnv)
anEnv - is the ManagementContextpublic 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 when this is being called as part
of a forced uninstall, causing a failure to load the component's
bootstrap class to be ignored.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 installZipPath) throws JBIException
componentName - The name of the component.installZipURL - The URL to the component archive.JBIException - if there is a problem with the upgrade.public void upgradeComponent(String componentName, long upgradeNumber) throws JBIException
componentName - The name of the component.JBIException - if there is a problem with the upgrade.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.