org.apache.servicemix.jbi.deployer.impl
Class InstallationService

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.impl.InstallationService
All Implemented Interfaces:
javax.jbi.management.InstallationServiceMBean

public class InstallationService
extends java.lang.Object
implements javax.jbi.management.InstallationServiceMBean


Constructor Summary
InstallationService()
           
 
Method Summary
 java.lang.String doInstallSharedLibrary(java.lang.String location)
           
protected  ComponentInstaller doLoadNewInstaller(java.lang.String location, boolean autoStart)
           
 void doUninstallSharedLibrary(java.lang.String aSharedLibName)
           
protected  ComponentInstaller getComponentInstaller(java.lang.String name)
           
 Deployer getDeployer()
           
 void install(java.lang.String location, java.util.Properties props, boolean autoStart)
          Install an archive
 java.lang.String installSharedLibrary(java.lang.String location)
          Install a shared library jar.
 javax.management.ObjectName loadInstaller(java.lang.String componentName)
          Load the InstallerMBean for a previously installed component.
 javax.management.ObjectName loadNewInstaller(java.lang.String installJarURL)
          Load the installer for a new component from a component installation package.
 void setDeployer(Deployer deployer)
           
 boolean uninstallSharedLibrary(java.lang.String aSharedLibName)
          Uninstall a shared library.
 boolean unloadInstaller(java.lang.String componentName, boolean isToBeDeleted)
          Unload a JBI Installable Component installer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallationService

public InstallationService()
Method Detail

loadNewInstaller

public javax.management.ObjectName loadNewInstaller(java.lang.String installJarURL)
Load the installer for a new component from a component installation package.

Specified by:
loadNewInstaller in interface javax.jbi.management.InstallationServiceMBean
Parameters:
installJarURL - - URL locating a jar file containing a JBI Installable Component.
Returns:
- the JMX ObjectName of the InstallerMBean loaded from installJarURL.

loadInstaller

public javax.management.ObjectName loadInstaller(java.lang.String componentName)
Load the InstallerMBean for a previously installed component.

Specified by:
loadInstaller in interface javax.jbi.management.InstallationServiceMBean
Parameters:
componentName - - the component name identifying the installer to load.
Returns:
- the JMX ObjectName of the InstallerMBean loaded from an existing installation context.

unloadInstaller

public boolean unloadInstaller(java.lang.String componentName,
                               boolean isToBeDeleted)
Unload a JBI Installable Component installer.

Specified by:
unloadInstaller in interface javax.jbi.management.InstallationServiceMBean
Parameters:
componentName - - the component name identifying the installer to unload.
isToBeDeleted - - true if the component is to be deleted as well.
Returns:
- true if the operation was successful, otherwise false.

getComponentInstaller

protected ComponentInstaller getComponentInstaller(java.lang.String name)

installSharedLibrary

public java.lang.String installSharedLibrary(java.lang.String location)
Install a shared library jar.

Specified by:
installSharedLibrary in interface javax.jbi.management.InstallationServiceMBean
Parameters:
location - URI locating a jar file containing a shared library.
Returns:
the name of the shared library loaded from aSharedLibURI.

uninstallSharedLibrary

public boolean uninstallSharedLibrary(java.lang.String aSharedLibName)
Uninstall a shared library.

Specified by:
uninstallSharedLibrary in interface javax.jbi.management.InstallationServiceMBean
Parameters:
aSharedLibName - - the name of the shared library to uninstall.
Returns:
- true iff the uninstall was successful.

install

public void install(java.lang.String location,
                    java.util.Properties props,
                    boolean autoStart)
             throws java.lang.Exception
Install an archive

Parameters:
location -
props -
autoStart -
Throws:
javax.jbi.management.DeploymentException
java.lang.Exception

doInstallSharedLibrary

public java.lang.String doInstallSharedLibrary(java.lang.String location)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

doUninstallSharedLibrary

public void doUninstallSharedLibrary(java.lang.String aSharedLibName)
                              throws java.lang.Exception
Throws:
java.lang.Exception

doLoadNewInstaller

protected ComponentInstaller doLoadNewInstaller(java.lang.String location,
                                                boolean autoStart)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getDeployer

public Deployer getDeployer()

setDeployer

public void setDeployer(Deployer deployer)


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.