org.apache.servicemix.jbi.framework
Class InstallerMBeanImpl

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.InstallerMBeanImpl
All Implemented Interfaces:
javax.jbi.management.InstallerMBean

public class InstallerMBeanImpl
extends Object
implements javax.jbi.management.InstallerMBean

InstallerMBean defines standard installation and uninstallation controls for Binding Components and Service Engines. Binding Components and Service Engines.

Version:
$Revision: 564900 $

Constructor Summary
InstallerMBeanImpl(JBIContainer container, InstallationContextImpl ic)
          Constructor for the InstallerMBean
 
Method Summary
 ObjectName activateComponent()
           
protected  void cleanUpBootstrap()
           
 ObjectName getInstallerConfigurationMBean()
          Get the installer configuration MBean name for this component.
 String getInstallRoot()
          Get the installation root directory path for this BC or SE.
 ObjectName getObjectName()
           
 ObjectName install()
          Install a BC or SE.
 boolean isInstalled()
          Determine whether or not the component is installed.
 void setObjectName(ObjectName objectName)
           
 void uninstall()
          Uninstall a BC or SE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallerMBeanImpl

public InstallerMBeanImpl(JBIContainer container,
                          InstallationContextImpl ic)
                   throws javax.jbi.management.DeploymentException
Constructor for the InstallerMBean

Parameters:
container -
ic -
Throws:
javax.jbi.management.DeploymentException
Method Detail

cleanUpBootstrap

protected void cleanUpBootstrap()
                         throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

getInstallRoot

public String getInstallRoot()
Get the installation root directory path for this BC or SE.

Specified by:
getInstallRoot in interface javax.jbi.management.InstallerMBean
Returns:
the full installation path of this component.

install

public ObjectName install()
                   throws javax.jbi.JBIException
Install a BC or SE.

Specified by:
install in interface javax.jbi.management.InstallerMBean
Returns:
JMX ObjectName representing the ComponentLifeCycle for the installed component, or null if the installation did not complete.
Throws:
javax.jbi.JBIException - if the installation fails.

activateComponent

public ObjectName activateComponent()
                             throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

isInstalled

public boolean isInstalled()
Determine whether or not the component is installed.

Specified by:
isInstalled in interface javax.jbi.management.InstallerMBean
Returns:
true if this component is currently installed, false if not.

uninstall

public void uninstall()
               throws javax.jbi.JBIException
Uninstall a BC or SE. This completely removes the component from the JBI system.

Specified by:
uninstall in interface javax.jbi.management.InstallerMBean
Throws:
javax.jbi.JBIException - if the uninstallation fails.

getInstallerConfigurationMBean

public ObjectName getInstallerConfigurationMBean()
                                          throws javax.jbi.JBIException
Get the installer configuration MBean name for this component.

Specified by:
getInstallerConfigurationMBean in interface javax.jbi.management.InstallerMBean
Returns:
the MBean object name of the Installer Configuration MBean.
Throws:
javax.jbi.JBIException - if the component is not in the LOADED state or any error occurs during processing.

getObjectName

public ObjectName getObjectName()
Returns:
Returns the objectName.

setObjectName

public void setObjectName(ObjectName objectName)
Parameters:
objectName - The objectName to set.


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.