org.apache.servicemix.jbi.deployer.impl
Class DeploymentService

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.impl.DeploymentService
All Implemented Interfaces:
javax.jbi.management.DeploymentServiceMBean

public class DeploymentService
extends java.lang.Object
implements javax.jbi.management.DeploymentServiceMBean


Field Summary
 
Fields inherited from interface javax.jbi.management.DeploymentServiceMBean
SHUTDOWN, STARTED, STOPPED
 
Constructor Summary
DeploymentService()
           
 
Method Summary
 boolean canDeployToComponent(java.lang.String componentName)
           
 java.lang.String deploy(java.lang.String saZipURL)
           
 java.lang.String deploy(java.lang.String saZipURL, boolean autoStart)
           
 org.osgi.framework.BundleContext getBundleContext()
           
 java.lang.String[] getComponentsForDeployedServiceAssembly(java.lang.String saName)
           
 java.lang.String[] getDeployedServiceAssemblies()
           
 java.lang.String[] getDeployedServiceAssembliesForComponent(java.lang.String componentName)
          Returns a list of Service Assemblies that contain SUs for the given component.
 java.lang.String[] getDeployedServiceUnitList(java.lang.String componentName)
           
 java.lang.String[] getDeployedServiceUnitsForComponent(java.lang.String componentName)
           
 Deployer getDeployer()
           
 java.lang.String getServiceAssemblyDescriptor(java.lang.String saName)
           
 java.lang.String getState(java.lang.String serviceAssemblyName)
           
 boolean isDeployedServiceUnit(java.lang.String componentName, java.lang.String suName)
          Returns a boolean value indicating whether the SU is currently deployed.
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setDeployer(Deployer deployer)
           
 java.lang.String shutDown(java.lang.String serviceAssemblyName)
           
 java.lang.String start(java.lang.String serviceAssemblyName)
           
 java.lang.String stop(java.lang.String serviceAssemblyName)
           
 java.lang.String undeploy(java.lang.String saName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentService

public DeploymentService()
Method Detail

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 java.lang.String deploy(java.lang.String saZipURL)
                        throws java.lang.Exception
Specified by:
deploy in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

deploy

public java.lang.String deploy(java.lang.String saZipURL,
                               boolean autoStart)
                        throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public java.lang.String undeploy(java.lang.String saName)
                          throws java.lang.Exception
Specified by:
undeploy in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

getDeployedServiceUnitList

public java.lang.String[] getDeployedServiceUnitList(java.lang.String componentName)
                                              throws java.lang.Exception
Specified by:
getDeployedServiceUnitList in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

getDeployedServiceAssemblies

public java.lang.String[] getDeployedServiceAssemblies()
                                                throws java.lang.Exception
Specified by:
getDeployedServiceAssemblies in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

getServiceAssemblyDescriptor

public java.lang.String getServiceAssemblyDescriptor(java.lang.String saName)
                                              throws java.lang.Exception
Specified by:
getServiceAssemblyDescriptor in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

canDeployToComponent

public boolean canDeployToComponent(java.lang.String componentName)
Specified by:
canDeployToComponent in interface javax.jbi.management.DeploymentServiceMBean

start

public java.lang.String start(java.lang.String serviceAssemblyName)
                       throws java.lang.Exception
Specified by:
start in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

stop

public java.lang.String stop(java.lang.String serviceAssemblyName)
                      throws java.lang.Exception
Specified by:
stop in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

shutDown

public java.lang.String shutDown(java.lang.String serviceAssemblyName)
                          throws java.lang.Exception
Specified by:
shutDown in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

getState

public java.lang.String getState(java.lang.String serviceAssemblyName)
                          throws java.lang.Exception
Specified by:
getState in interface javax.jbi.management.DeploymentServiceMBean
Throws:
java.lang.Exception

getDeployedServiceAssembliesForComponent

public java.lang.String[] getDeployedServiceAssembliesForComponent(java.lang.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 java.lang.String[] getDeployedServiceUnitsForComponent(java.lang.String componentName)

getComponentsForDeployedServiceAssembly

public java.lang.String[] getComponentsForDeployedServiceAssembly(java.lang.String saName)
Specified by:
getComponentsForDeployedServiceAssembly in interface javax.jbi.management.DeploymentServiceMBean

isDeployedServiceUnit

public boolean isDeployedServiceUnit(java.lang.String componentName,
                                     java.lang.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-2010 The Apache Software Foundation. All Rights Reserved.