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 java.lang.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$
- Author:
- Guillaume Nodet
|
Method Summary |
protected java.lang.String |
createSuccessMessage(java.lang.String task)
|
java.lang.String |
deploy(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
|
protected ServiceUnit |
doDeploy(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
|
protected void |
doUndeploy(ServiceUnit su)
|
protected javax.jbi.management.DeploymentException |
failure(java.lang.String task,
java.lang.String info,
java.lang.Exception e)
|
protected ServiceUnit |
getServiceUnit(java.lang.String name)
|
void |
init(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
|
void |
shutDown(java.lang.String serviceUnitName)
|
void |
start(java.lang.String serviceUnitName)
|
void |
stop(java.lang.String serviceUnitName)
|
java.lang.String |
undeploy(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 java.lang.String deploy(java.lang.String serviceUnitName,
java.lang.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(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
throws java.lang.Exception
- Throws:
java.lang.Exception
init
public void init(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
- Specified by:
init in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
start
public void start(java.lang.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(java.lang.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(java.lang.String serviceUnitName)
throws javax.jbi.management.DeploymentException
- Specified by:
shutDown in interface javax.jbi.component.ServiceUnitManager
- Throws:
javax.jbi.management.DeploymentException
undeploy
public java.lang.String undeploy(java.lang.String serviceUnitName,
java.lang.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 java.lang.Exception
- Throws:
java.lang.Exception
failure
protected javax.jbi.management.DeploymentException failure(java.lang.String task,
java.lang.String info,
java.lang.Exception e)
throws javax.jbi.management.DeploymentException
- Throws:
javax.jbi.management.DeploymentException
createSuccessMessage
protected java.lang.String createSuccessMessage(java.lang.String task)
getServiceUnit
protected ServiceUnit getServiceUnit(java.lang.String name)
Copyright © 2005-2012 FuseSource. All Rights Reserved.