org.apache.servicemix.common
Class BaseServiceUnitManager
java.lang.Object
org.apache.servicemix.common.BaseServiceUnitManager
- All Implemented Interfaces:
- ServiceUnitManager
public class BaseServiceUnitManager
- extends Object
- implements 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: 33980 $
- 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 DeploymentException
- Specified by:
deploy in interface ServiceUnitManager
- Throws:
DeploymentException
doDeploy
protected ServiceUnit doDeploy(String serviceUnitName,
String serviceUnitRootPath)
throws Exception
- Throws:
Exception
init
public void init(String serviceUnitName,
String serviceUnitRootPath)
throws DeploymentException
- Specified by:
init in interface ServiceUnitManager
- Throws:
DeploymentException
doInit
protected void doInit(String serviceUnitName,
String serviceUnitRootPath)
throws Exception
- Throws:
Exception
start
public void start(String serviceUnitName)
throws DeploymentException
- Specified by:
start in interface ServiceUnitManager
- Throws:
DeploymentException
stop
public void stop(String serviceUnitName)
throws DeploymentException
- Specified by:
stop in interface ServiceUnitManager
- Throws:
DeploymentException
shutDown
public void shutDown(String serviceUnitName)
throws DeploymentException
- Specified by:
shutDown in interface ServiceUnitManager
- Throws:
DeploymentException
undeploy
public String undeploy(String serviceUnitName,
String serviceUnitRootPath)
throws DeploymentException
- Specified by:
undeploy in interface ServiceUnitManager
- Throws:
DeploymentException
doUndeploy
protected void doUndeploy(ServiceUnit su)
throws Exception
- Throws:
Exception
failure
protected DeploymentException failure(String task,
String info,
Exception e)
throws DeploymentException
- Throws:
DeploymentException
createSuccessMessage
protected String createSuccessMessage(String task)
getServiceUnit
protected ServiceUnit getServiceUnit(String name)
Copyright © 2005-2008. All Rights Reserved.