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.
| Modifier and Type | Field and Description |
|---|---|
protected ServiceMixComponent |
component |
protected Deployer[] |
deployers |
protected boolean |
persistent |
| Constructor and Description |
|---|
BaseServiceUnitManager(ServiceMixComponent component,
Deployer[] deployers) |
BaseServiceUnitManager(ServiceMixComponent component,
Deployer[] deployers,
boolean persistent) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected ServiceMixComponent component
protected Deployer[] deployers
protected boolean persistent
public BaseServiceUnitManager(ServiceMixComponent component, Deployer[] deployers)
public BaseServiceUnitManager(ServiceMixComponent component, Deployer[] deployers, boolean persistent)
public java.lang.String deploy(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
deploy in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionprotected ServiceUnit doDeploy(java.lang.String serviceUnitName, java.lang.String serviceUnitRootPath) throws java.lang.Exception
java.lang.Exceptionpublic void init(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
init in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionpublic void start(java.lang.String serviceUnitName)
throws javax.jbi.management.DeploymentException
start in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionpublic void stop(java.lang.String serviceUnitName)
throws javax.jbi.management.DeploymentException
stop in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionpublic void shutDown(java.lang.String serviceUnitName)
throws javax.jbi.management.DeploymentException
shutDown in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionpublic java.lang.String undeploy(java.lang.String serviceUnitName,
java.lang.String serviceUnitRootPath)
throws javax.jbi.management.DeploymentException
undeploy in interface javax.jbi.component.ServiceUnitManagerjavax.jbi.management.DeploymentExceptionprotected void doUndeploy(ServiceUnit su) throws java.lang.Exception
java.lang.Exceptionprotected javax.jbi.management.DeploymentException failure(java.lang.String task,
java.lang.String info,
java.lang.Exception e)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentExceptionprotected java.lang.String createSuccessMessage(java.lang.String task)
protected ServiceUnit getServiceUnit(java.lang.String name)
Copyright © 2005-2014 FuseSource. All Rights Reserved.