public class Installer extends Facade implements InstallerMBean
InstallationServiceMBean. The InstallerMBean offers controls to
allow an administrative tool to:
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 |
|---|
Installer(EnvironmentContext ctx,
String target,
String compName) |
Installer(EnvironmentContext ctx,
String target,
String compName,
Map instanceInstallers) |
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
getInstallerConfigurationMBean()
Get the installer configuration MBean name for this component.
|
String |
getInstallRoot()
Get the installation root directory path for this component.
|
ObjectName |
install()
Install a component.
|
boolean |
isInstalled()
Determine whether or not the component is installed.
|
void |
uninstall()
Uninstall the component.
|
void |
uninstall(boolean force)
Uninstall the 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 Installer(EnvironmentContext ctx, String target, String compName, Map instanceInstallers) throws ManagementException
instanceInstallers - - a map of instance names and their Installer ObjectNamesManagementExceptionpublic Installer(EnvironmentContext ctx, String target, String compName) throws ManagementException
ManagementExceptionpublic ObjectName getInstallerConfigurationMBean() throws JBIException
getInstallerConfigurationMBean in interface InstallerMBeannull if none is provided by this componentJBIException - if the component is not in the
appropriate state (after install() but before life cycle
initialization), or if any error occurs during processingpublic String getInstallRoot()
getInstallRoot in interface InstallerMBeanpublic ObjectName install() throws JBIException
Note that the implementation must leave the component in its installed, shutdown state. Automatic starting of components during installation by implementations is not allowed. For the domain target this will only install the component to the domain, the return value would be null, since there is no LifeCycle MBean for the installed component.
install in interface InstallerMBeannull if the installation did not
completeJBIException - if the installation failspublic boolean isInstalled()
isInstalled in interface InstallerMBeantrue if this component is currently installed,
otherwise falsepublic void uninstall()
throws JBIException
uninstall in interface InstallerMBeanJBIException - if the uninstallation failspublic void uninstall(boolean force)
throws JBIException
force flag is set to true,
the uninstall operation succeeds regardless of any exception thrown by
the component itself.force - set to true to ignore any failures and proceed with the
uninstall.JBIException - if some other failure occurs.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.