org.apache.servicemix.components.util
Class ServiceUnitManagerSupport

java.lang.Object
  extended by org.apache.servicemix.components.util.ServiceUnitManagerSupport
All Implemented Interfaces:
javax.jbi.component.ServiceUnitManager

public class ServiceUnitManagerSupport
extends Object
implements javax.jbi.component.ServiceUnitManager

component-supplied methods for managing Service Unit deployments

Version:
$Revision: 426415 $

Constructor Summary
ServiceUnitManagerSupport()
           
 
Method Summary
 String deploy(String serviceUnitName, String serviceUnitRootPath)
          Deploy a Service Unit to the Component
 void init(String serviceUnitName, String serviceUnitRootPath)
          Initialize Deployment
 void shutDown(String saerviceUnitName)
          shutdown
 void start(String serviceUnitName)
          start the deployment
 void stop(String serviceUnitName)
          stop the deployment
 String undeploy(String serviceUnitName, String serviceUnitRootPath)
          Undeploy a Service Unit form the Component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceUnitManagerSupport

public ServiceUnitManagerSupport()
Method Detail

deploy

public String deploy(String serviceUnitName,
                     String serviceUnitRootPath)
              throws javax.jbi.management.DeploymentException
Deploy a Service Unit to the Component

Specified by:
deploy in interface javax.jbi.component.ServiceUnitManager
Parameters:
serviceUnitName -
serviceUnitRootPath -
Returns:
a deployment status message
Throws:
javax.jbi.management.DeploymentException

init

public void init(String serviceUnitName,
                 String serviceUnitRootPath)
          throws javax.jbi.management.DeploymentException
Initialize Deployment

Specified by:
init in interface javax.jbi.component.ServiceUnitManager
Parameters:
serviceUnitName -
serviceUnitRootPath -
Throws:
javax.jbi.management.DeploymentException

shutDown

public void shutDown(String saerviceUnitName)
              throws javax.jbi.management.DeploymentException
shutdown

Specified by:
shutDown in interface javax.jbi.component.ServiceUnitManager
Parameters:
saerviceUnitName -
Throws:
javax.jbi.management.DeploymentException

start

public void start(String serviceUnitName)
           throws javax.jbi.management.DeploymentException
start the deployment

Specified by:
start in interface javax.jbi.component.ServiceUnitManager
Parameters:
serviceUnitName -
Throws:
javax.jbi.management.DeploymentException

stop

public void stop(String serviceUnitName)
          throws javax.jbi.management.DeploymentException
stop the deployment

Specified by:
stop in interface javax.jbi.component.ServiceUnitManager
Parameters:
serviceUnitName -
Throws:
javax.jbi.management.DeploymentException

undeploy

public String undeploy(String serviceUnitName,
                       String serviceUnitRootPath)
                throws javax.jbi.management.DeploymentException
Undeploy a Service Unit form the Component

Specified by:
undeploy in interface javax.jbi.component.ServiceUnitManager
Parameters:
serviceUnitName -
serviceUnitRootPath -
Returns:
a status message
Throws:
javax.jbi.management.DeploymentException


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