org.apache.servicemix.common
Class BaseServiceUnitManager
java.lang.Object
org.apache.servicemix.common.BaseServiceUnitManager
- All Implemented Interfaces:
- javax.jbi.component.ServiceUnitManager
public class BaseServiceUnitManager
- extends Object
- implements javax.jbi.component.ServiceUnitManager
A simple service unit manager.
This service unit manager uses Deployer objects
to handle different type of service units.
- Since:
- 3.0
- Version:
- $Revision: 452064 $
- Author:
- Guillaume Nodet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient Log logger
component
protected ServiceMixComponent component
deployers
protected Deployer[] deployers
persistent
protected boolean persistent
BaseServiceUnitManager
public BaseServiceUnitManager(ServiceMixComponent component,
Deployer[] deployers)
BaseServiceUnitManager
public BaseServiceUnitManager(ServiceMixComponent component,
Deployer[] deployers,
boolean persistent)
deploy
public String deploy(String serviceUnitName,
String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
- Specified by:
deploy in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
doDeploy
protected ServiceUnit doDeploy(String serviceUnitName,
String serviceUnitRootPath)
throws Exception
- Throws:
Exception
init
public void init(String serviceUnitName,
String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
- Specified by:
init in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
doInit
protected void doInit(String serviceUnitName,
String serviceUnitRootPath)
throws Exception
- Throws:
Exception
start
public void start(String serviceUnitName)
throws javax.jbi.management.DeploymentException
- Specified by:
start in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
stop
public void stop(String serviceUnitName)
throws javax.jbi.management.DeploymentException
- Specified by:
stop in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
shutDown
public void shutDown(String serviceUnitName)
throws javax.jbi.management.DeploymentException
- Specified by:
shutDown in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
undeploy
public String undeploy(String serviceUnitName,
String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
- Specified by:
undeploy in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
doUndeploy
protected void doUndeploy(ServiceUnit su)
throws Exception
- Throws:
Exception
failure
protected javax.jbi.management.DeploymentException failure(String task,
String info,
Exception e)
throws javax.jbi.management.DeploymentException
- Throws:
javax.jbi.management.DeploymentException
createSuccessMessage
protected String createSuccessMessage(String task)
getServiceUnit
protected ServiceUnit getServiceUnit(String name)
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.