|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.management.BaseSystemService
org.apache.servicemix.jbi.framework.InstallationService
public class InstallationService
Installation Service - installs/uninstalls archives
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
container |
| Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
currentState, INITIALIZED, listener |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
InstallationService()
|
|
| Method Summary | |
|---|---|
protected void |
buildComponent(File componentDirectory)
|
protected ComponentContextImpl |
buildComponentContext(File componentRoot,
File installRoot,
String name)
|
protected void |
buildComponents()
|
protected void |
buildSharedLibs()
|
protected void |
buildState()
|
protected boolean |
containsSharedLibrary(String name)
returns true if a shared library is already installed |
protected InstallerMBeanImpl |
doInstallArchive(File tmpDirectory,
Descriptor descriptor)
|
protected InstallerMBeanImpl |
doInstallComponent(File tmpDirectory,
Component descriptor)
|
protected String |
doInstallSharedLibrary(File tmpDirectory,
SharedLibrary descriptor)
|
String |
getDescription()
Get Description |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
protected Class |
getServiceMBean()
|
void |
init(JBIContainer container)
Initialize the Service |
protected void |
install(File tmpDir,
Properties props,
Descriptor root,
boolean autoStart)
Install an archive |
void |
install(String location,
Properties props,
boolean autoStart)
Install an archive |
String |
installSharedLibrary(String aSharedLibURI)
Install a shared library jar. |
ObjectName |
loadInstaller(String aComponentName)
Load the InstallerMBean for a previously installed component. |
ObjectName |
loadNewInstaller(String installJarURL)
Load the installer for a new component from a component installation package. |
boolean |
uninstallSharedLibrary(String aSharedLibName)
Uninstall a shared library. |
boolean |
unloadInstaller(String componentName,
boolean isToBeDeleted)
Unload a JBI Installable Component installer. |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
getContainer, getName, getType, shutDown |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
firePropertyChanged, getAttributeInfos, getCurrentState, getObjectToManage, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstallationService()
| Method Detail |
|---|
public String getDescription()
getDescription in interface MBeanInfoProviderpublic ObjectName loadNewInstaller(String installJarURL)
loadNewInstaller in interface javax.jbi.management.InstallationServiceMBeaninstallJarURL - -
URL locating a jar file containing a JBI Installable
Component.
public ObjectName loadInstaller(String aComponentName)
loadInstaller in interface javax.jbi.management.InstallationServiceMBeanaComponentName - -
the component name identifying the installer to load.
public boolean unloadInstaller(String componentName,
boolean isToBeDeleted)
unloadInstaller in interface javax.jbi.management.InstallationServiceMBeancomponentName - -
the component name identifying the installer to unload.isToBeDeleted - -
true if the component is to be deleted as well.
public String installSharedLibrary(String aSharedLibURI)
installSharedLibrary in interface javax.jbi.management.InstallationServiceMBeanaSharedLibURI - -
URI locating a jar file containing a shared library.
public boolean uninstallSharedLibrary(String aSharedLibName)
uninstallSharedLibrary in interface javax.jbi.management.InstallationServiceMBeanaSharedLibName - -
the name of the shared library to uninstall.
public void init(JBIContainer container)
throws javax.jbi.JBIException
init in class BaseSystemServicecontainer -
javax.jbi.JBIException
javax.jbi.management.DeploymentExceptionprotected Class getServiceMBean()
getServiceMBean in class BaseSystemService
public void install(String location,
Properties props,
boolean autoStart)
throws javax.jbi.management.DeploymentException
location - props - autoStart -
javax.jbi.management.DeploymentException
protected void install(File tmpDir,
Properties props,
Descriptor root,
boolean autoStart)
throws javax.jbi.management.DeploymentException
tmpDir - root - autoStart -
javax.jbi.management.DeploymentException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface MBeanInfoProvidergetOperationInfos in class BaseLifeCycleJMException
protected InstallerMBeanImpl doInstallArchive(File tmpDirectory,
Descriptor descriptor)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected String doInstallSharedLibrary(File tmpDirectory,
SharedLibrary descriptor)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected InstallerMBeanImpl doInstallComponent(File tmpDirectory,
Component descriptor)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentExceptionprotected void buildState()
protected boolean containsSharedLibrary(String name)
name -
protected void buildSharedLibs()
protected void buildComponents()
protected void buildComponent(File componentDirectory)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected ComponentContextImpl buildComponentContext(File componentRoot,
File installRoot,
String name)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||