org.apache.servicemix.jbi.deployer.impl
Class DeploymentService
java.lang.Object
org.apache.servicemix.jbi.deployer.impl.DeploymentService
- All Implemented Interfaces:
- javax.jbi.management.DeploymentServiceMBean
public class DeploymentService
- extends Object
- implements javax.jbi.management.DeploymentServiceMBean
| Fields inherited from interface javax.jbi.management.DeploymentServiceMBean |
SHUTDOWN, STARTED, STOPPED |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeploymentService
public DeploymentService()
getDeployer
public Deployer getDeployer()
setDeployer
public void setDeployer(Deployer deployer)
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
deploy
public String deploy(String saZipURL)
throws Exception
- Specified by:
deploy in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
deploy
public String deploy(String saZipURL,
boolean autoStart)
throws Exception
- Throws:
Exception
undeploy
public String undeploy(String saName)
throws Exception
- Specified by:
undeploy in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
getDeployedServiceUnitList
public String[] getDeployedServiceUnitList(String componentName)
throws Exception
- Specified by:
getDeployedServiceUnitList in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
getDeployedServiceAssemblies
public String[] getDeployedServiceAssemblies()
throws Exception
- Specified by:
getDeployedServiceAssemblies in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
getServiceAssemblyDescriptor
public String getServiceAssemblyDescriptor(String saName)
throws Exception
- Specified by:
getServiceAssemblyDescriptor in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
canDeployToComponent
public boolean canDeployToComponent(String componentName)
- Specified by:
canDeployToComponent in interface javax.jbi.management.DeploymentServiceMBean
start
public String start(String serviceAssemblyName)
throws Exception
- Specified by:
start in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
stop
public String stop(String serviceAssemblyName)
throws Exception
- Specified by:
stop in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
shutDown
public String shutDown(String serviceAssemblyName)
throws Exception
- Specified by:
shutDown in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
getState
public String getState(String serviceAssemblyName)
throws Exception
- Specified by:
getState in interface javax.jbi.management.DeploymentServiceMBean
- Throws:
Exception
getDeployedServiceAssembliesForComponent
public String[] getDeployedServiceAssembliesForComponent(String componentName)
- Returns a list of Service Assemblies that contain SUs for the given component.
- Specified by:
getDeployedServiceAssembliesForComponent in interface javax.jbi.management.DeploymentServiceMBean
- Parameters:
componentName - name of the component.
- Returns:
- list of Service Assembly names.
getDeployedServiceUnitsForComponent
public String[] getDeployedServiceUnitsForComponent(String componentName)
getComponentsForDeployedServiceAssembly
public String[] getComponentsForDeployedServiceAssembly(String saName)
- Specified by:
getComponentsForDeployedServiceAssembly in interface javax.jbi.management.DeploymentServiceMBean
isDeployedServiceUnit
public boolean isDeployedServiceUnit(String componentName,
String suName)
- Returns a boolean value indicating whether the SU is currently deployed.
- Specified by:
isDeployedServiceUnit in interface javax.jbi.management.DeploymentServiceMBean
- Parameters:
componentName - - name of component.suName - - name of the Service Unit.
- Returns:
- boolean value indicating whether the SU is currently deployed.
Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.