public class InstallationServiceMBeanImpl extends AbstractServiceMBeansImpl implements InstallationService, Serializable
COLON, COMMA, COMPONENT_CONFIG_INSTANCE_ERROR_KEY, componentConfigurationHelper, CUSTOM_ADMINISTRATION_NAME_KEY, CUSTOM_CONFIGURATION_NAME_KEY, CUSTOM_LOGGER_NAME_KEY, CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY, CUSTOM_STATISTICS_NAME_KEY, DOMAIN_TARGET_KEY, EBIJMXDOMAIN, environmentContext, EQUAL, IDENTIFICATION_NAME_KEY, JMX_EBI_DOMAIN, PASSWORD_MASK_CHARACTER, RUNNING_STATE, SERVER_TARGET_KEY, SERVICE_TYPE_KEY, STARTED_STATE| Constructor and Description |
|---|
InstallationServiceMBeanImpl(EnvironmentContext anEnvContext)
Constructor - Constructs a new instance of InstallationServiceMBeanImpl
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureComponentInstaller(ObjectName installerObjectName,
Properties paramProps)
set the installer configuration parameters
|
protected String |
getComponentNameFromJmxObjectName(ObjectName jmxObjectName)
finds the component id property in the object name
|
String |
installComponent(String zipFilePath,
Properties paramProps,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponent(String zipFilePath,
Properties paramProps,
String[] targetNames)
installs component ( service engine, binding component)
|
String |
installComponent(String zipFilePath,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponent(String zipFilePath,
String[] targetNames)
installs component ( service engine, binding component)
|
String |
installComponentFromDomain(String componentName,
Properties properties,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponentFromDomain(String componentName,
Properties properties,
String[] targetNames)
installs component from Domain( service engine, binding component)
|
String |
installComponentFromDomain(String componentName,
String targetName)
installs component ( service engine, binding component)
|
Map<String,String> |
installComponentFromDomain(String componentName,
String[] targetNames)
installs component from Domain( service engine, binding component)
|
String |
installSharedLibrary(String zipFilePath,
String targetName)
installs shared library
|
Map<String,String> |
installSharedLibrary(String zipFilePath,
String[] targetNames)
installs shared library
|
String |
installSharedLibraryFromDomain(String libraryName,
String targetName)
installs shared library
|
Map<String,String> |
installSharedLibraryFromDomain(String libraryName,
String[] targetNames)
installs shared library
|
String |
uninstallComponent(String componentName,
boolean forceDelete,
boolean retainInDomain,
String targetName)
uninstalls component ( service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
boolean forceDelete,
boolean retainInDomain,
String[] targetNames)
uninstalls component ( service engine, binding component)
|
String |
uninstallComponent(String componentName,
boolean forceDelete,
String targetName)
uninstalls component ( service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
boolean forceDelete,
String[] targetNames)
uninstalls component ( service engine, binding component)
|
String |
uninstallComponent(String componentName,
String targetName)
uninstalls component ( service engine, binding component)
|
Map<String,String> |
uninstallComponent(String componentName,
String[] targetNames)
uninstalls component ( service engine, binding component)
|
protected String |
uninstallComponentInternal(String componentName,
boolean force,
boolean retainInDomain,
String targetName)
uninstalls component ( service engine, binding component)
|
protected String |
uninstallComponentInternal(String componentName,
boolean force,
String targetName)
uninstalls component ( service engine, binding component)
|
String |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
boolean retainInDomain,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
boolean retainInDomain,
String[] targetNames)
uninstalls shared library
|
String |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
boolean forceDelete,
String[] targetNames)
uninstalls shared library
|
String |
uninstallSharedLibrary(String sharedLibraryName,
String targetName)
uninstalls shared library
|
Map<String,String> |
uninstallSharedLibrary(String sharedLibraryName,
String[] targetNames)
uninstalls shared library
|
protected String |
uninstallSharedLibraryInternal(String sharedLibraryName,
boolean forceDelete,
String targetName)
uninstalls shared library
|
protected boolean |
unloadComponentInstaller(ObjectName installerObjectName,
boolean isRemoveComponent,
boolean isIgnoreExceptions,
String targetName)
unloads the installer from memory and removes the component optionally
|
protected boolean |
unloadComponentInstaller(String componentName,
boolean isRemoveComponent,
boolean isIgnoreExceptions,
String targetName)
Unloads the installer from memory and removes the component optionally
|
protected boolean |
unloadComponentInstallerInternal(String componentName,
boolean isRemoveComponent,
boolean isIgnoreExceptions,
String targetName)
Unloads the installer from memory and removes the component optionally
|
String |
upgradeComponent(String componentName,
String zipFilePath)
updates component ( service engine, binding component)
|
checkForValidTarget, checkForValidTarget, checkTargetType, constructMBeanAttributes, constructMBeanAttributes, constructMBeanAttributes, createManagementException, createManagementMessage, domainTargetCheck, findLiveExtensionMBeanObjectNames, getAdminServiceMBeanObjectName, getAdminServiceMBeanObjectName, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getComponentExtensionMBeanObjectNames, getComponentExtensionMBeanObjectNames, getDeploymentServiceMBeanObjectName, getEbiJmxDomain, getEbiStatusMBeanObjectName, getEnvironmentContext, getExtensionMBeanObjectName, getI18NBundle, getI18NBundle, getInstallationServiceMBeanObjectName, getMBeanAttribute, getMBeanAttributeValues, getMBeanAttributeValuesAsMap, getMBeanServerConnection, getPlatformContext, getPlatformContextAdminServerName, getPlatformContextClusteredServerNames, getPlatformContextClusterNames, getPlatformContextInstallRoot, getPlatformContextInstanceName, getPlatformContextInstanceRoot, getPlatformContextJmxRmiPort, getPlatformContextMBeanServer, getPlatformContextServersInCluster, getPlatformContextStandaloneServerNames, getPlatformContextTargetName, getPlatformContextTargetName, getStackTrace, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, isMBeanRegistered, isPlatformContextAdminServer, isPlatformContextCluster, isPlatformContextClusteredServer, isPlatformContextInstanceClustered, isPlatformContextInstanceUp, isPlatformContextStandaloneServer, isPlatformContextValidTarget, isTargetUp, isValidTarget, isValidTarget, listTargetNames, log, logDebug, logDebug, logError, logWarning, platformContextSupportsMultipleServers, setAttributeValue, setAttributeValue, setAttributeValue, setLevel, setMBeanAttribute, setMBeanAttributes, setMBeanAttributes, setMBeanConfigAttributes, setMBeanConfigAttributespublic InstallationServiceMBeanImpl(EnvironmentContext anEnvContext)
anEnvContext - public String installComponent(String zipFilePath, Properties paramProps, String targetName) throws ManagementRemoteException
installComponent in interface InstallationServiceparamProps - Properties object contains name/value pair.zipFilePath - archive file in a zip formattargetName - ManagementRemoteException - on errorInstallationService.installComponent(java.lang.String,
java.util.Properties, java.lang.String)public String installComponent(String zipFilePath, String targetName) throws ManagementRemoteException
installComponent in interface InstallationServicezipFilePath - archive file in a zip formattargetName - ManagementRemoteException - on errorInstallationService.installComponent(java.lang.String,
java.lang.String)public String installComponentFromDomain(String componentName, Properties properties, String targetName) throws ManagementRemoteException
installComponentFromDomain in interface InstallationServicecomponentName - name of the component.component - configuration propertiestargetName - name of the target for this operationManagementRemoteException - on errorInstallationService.installComponentFromDomain(java.lang.String,
java.util.Properties, java.lang.String)public String installComponentFromDomain(String componentName, String targetName) throws ManagementRemoteException
installComponentFromDomain in interface InstallationServicecomponentName - name of the component.targetName - name of the target for this operationManagementRemoteException - on errorInstallationService.installComponentFromDomain(java.lang.String,
java.lang.String)public String installSharedLibrary(String zipFilePath, String targetName) throws ManagementRemoteException
installSharedLibrary in interface InstallationServicezipFilePath - archive file in a zip formattargetName - ManagementRemoteException - on errorInstallationService.installSharedLibrary(java.lang.String,
java.lang.String)public String installSharedLibraryFromDomain(String libraryName, String targetName) throws ManagementRemoteException
installSharedLibraryFromDomain in interface InstallationServicelibraryName - Shared Library NametargetName - name of the target for this operationManagementRemoteException - on errorInstallationService.installSharedLibraryFromDomain(java.lang.String,
java.lang.String)public String uninstallComponent(String componentName, boolean forceDelete, boolean retainInDomain, String targetName) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componentforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetName - name of the target for this operationManagementRemoteException - on errorInstallationService.uninstallComponent(java.lang.String,
boolean, boolean, java.lang.String)public String uninstallComponent(String componentName, boolean forceDelete, String targetName) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componentforceDelete - true to delete, false to nottargetName - name of the target for this operationManagementRemoteException - on errorInstallationService.uninstallComponent(java.lang.String,
boolean, java.lang.String)public String uninstallComponent(String componentName, String targetName) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componenttargetName - ManagementRemoteException - on errorInstallationService.uninstallComponent(java.lang.String,
java.lang.String)public String uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, boolean retainInDomain, String targetName) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared libraryforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetName - name of the target for this operationManagementRemoteException - on errorInstallationService.uninstallSharedLibrary(java.lang.String,
boolean, boolean, java.lang.String)public String uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, String targetName) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared libraryforceDelete - true to delete, false to nottargetName - name of the target for this operationManagementRemoteException - on errorInstallationService.uninstallSharedLibrary(java.lang.String,
boolean, java.lang.String)public String uninstallSharedLibrary(String sharedLibraryName, String targetName) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared librarytargetName - ManagementRemoteException - on errorInstallationService.uninstallSharedLibrary(java.lang.String,
java.lang.String)public String upgradeComponent(String componentName, String zipFilePath) throws ManagementRemoteException
upgradeComponent in interface InstallationServicecomponentName - Name of the component to update.zipFilePath - archive file in a zip formatManagementRemoteException - on errorInstallationService.upgradeComponent(java.lang.String,
java.lang.String)public Map<String,String> installComponent(String zipFilePath, Properties paramProps, String[] targetNames) throws ManagementRemoteException
installComponent in interface InstallationServiceparamProps - Properties object contains name/value pair.zipFilePath - archive file in a zip formattargetNames - ManagementRemoteException - on errorpublic Map<String,String> installComponent(String zipFilePath, String[] targetNames) throws ManagementRemoteException
installComponent in interface InstallationServiceparamProps - Properties object contains name/value pair.zipFilePath - archive file in a zip formattargetNames - ManagementRemoteException - on errorpublic Map<String,String> installSharedLibrary(String zipFilePath, String[] targetNames) throws ManagementRemoteException
installSharedLibrary in interface InstallationServicezipFilePath - archive file in a zip formattargetNames - ManagementRemoteException - on errorpublic Map<String,String> uninstallComponent(String componentName, String[] targetNames) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componenttargetNames - ManagementRemoteException - on errorpublic Map<String,String> uninstallSharedLibrary(String sharedLibraryName, String[] targetNames) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared librarytargetNames - ManagementRemoteException - on errorpublic Map<String,String> installComponentFromDomain(String componentName, String[] targetNames) throws ManagementRemoteException
installComponentFromDomain in interface InstallationServicecomponentName - name of the componenttargetNames - array of targets for this operationManagementRemoteException - on errorpublic Map<String,String> installComponentFromDomain(String componentName, Properties properties, String[] targetNames) throws ManagementRemoteException
installComponentFromDomain in interface InstallationServicecomponentName - name of the componentcomponent - configuration propertiestargetNames - array of targets for this operationManagementRemoteException - on errorpublic Map<String,String> uninstallComponent(String componentName, boolean forceDelete, String[] targetNames) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componentforceDelete - true to delete, false to nottargetName - name of the target for this operationManagementRemoteException - on errorpublic Map<String,String> installSharedLibraryFromDomain(String libraryName, String[] targetNames) throws ManagementRemoteException
installSharedLibraryFromDomain in interface InstallationServicelibraryName - name of the librarytargetName - name of the target for this operationManagementRemoteException - on errorpublic Map<String,String> uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, String[] targetNames) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared libraryforceDelete - true to delete, false to nottargetName - name of the target for this operationManagementRemoteException - on errorpublic Map<String,String> uninstallComponent(String componentName, boolean forceDelete, boolean retainInDomain, String[] targetNames) throws ManagementRemoteException
uninstallComponent in interface InstallationServicecomponentName - name of the componentforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetNames - array of targets for this operationManagementRemoteException - on errorpublic Map<String,String> uninstallSharedLibrary(String sharedLibraryName, boolean forceDelete, boolean retainInDomain, String[] targetNames) throws ManagementRemoteException
uninstallSharedLibrary in interface InstallationServicesharedLibraryName - name of the shared libraryforceDelete - true to delete, false to notretainInDomain - true to not delete it from the domain target, false to also
delete it from the domain target.targetNames - array of targets for this operationManagementRemoteException - on errorprotected void configureComponentInstaller(ObjectName installerObjectName, Properties paramProps) throws ManagementRemoteException
installerObjectName - objectnameparamProps - name,value pair listManagementRemoteException - on error.protected String getComponentNameFromJmxObjectName(ObjectName jmxObjectName)
jmxObjectName - jmx obj nameprotected boolean unloadComponentInstaller(ObjectName installerObjectName, boolean isRemoveComponent, boolean isIgnoreExceptions, String targetName) throws ManagementRemoteException
installerObjectName - installerObjectName.isIgnoreExceptions - true or false.isRemoveComponent - true if this should cleanup disk or false. true is usded in
uninstall processtargetName - ManagementRemoteException - on errorprotected boolean unloadComponentInstaller(String componentName, boolean isRemoveComponent, boolean isIgnoreExceptions, String targetName) throws ManagementRemoteException
componentName - componentName.isIgnoreExceptions - true or false.isRemoveComponent - true if this should cleanup disk or false. true istargetName - usded in uninstall processManagementRemoteException - on error.protected boolean unloadComponentInstallerInternal(String componentName, boolean isRemoveComponent, boolean isIgnoreExceptions, String targetName) throws ManagementRemoteException
componentName - componentName.isRemoveComponent - true if this should cleanup disk or false. true isretainInDomain - true if this should be kept in domain target, false if notisIgnoreExceptions - true or false.targetName - used in uninstall processManagementRemoteException - on error.protected String uninstallComponentInternal(String componentName, boolean force, String targetName) throws ManagementRemoteException
componentName - name of the componenttargetName - ManagementRemoteException - on errorprotected String uninstallComponentInternal(String componentName, boolean force, boolean retainInDomain, String targetName) throws ManagementRemoteException
componentName - name of the componentforce - retainInDomain - targetName - ManagementRemoteException - on errorprotected String uninstallSharedLibraryInternal(String sharedLibraryName, boolean forceDelete, String targetName) throws ManagementRemoteException
sharedLibraryName - name of the shared libraryforceDelete - true to delete, false to nottargetName - name of the target for this operationManagementRemoteException - on errorCopyright © 2011-2016 OpenESB Community. All Rights Reserved.