org.apache.servicemix.jbi.framework
Class ServiceAssemblyRegistry

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.ServiceAssemblyRegistry

public class ServiceAssemblyRegistry
extends Object

Registry for Components

Version:
$Revision: 564607 $

Constructor Summary
ServiceAssemblyRegistry(Registry registry)
          Constructor
 
Method Summary
 String[] getComponentsForDeployedServiceAssembly(String saName)
          Returns a list of components(to which SUs are targeted for) in a Service Assembly.
 String[] getDeployedServiceAssemblies()
          Returns a list of Service Assemblies deployed to the JBI enviroment.
 String[] getDeployedServiceAssembliesForComponent(String componentName)
          Returns a list of Service Assemblies that contain SUs for the given component.
 Collection<ServiceAssemblyLifeCycle> getServiceAssemblies()
          Returns a list of service assemblies.
 ServiceAssemblyLifeCycle getServiceAssembly(String saName)
          Get a named ServiceAssembly
 boolean isDeployedServiceUnit(String componentName, String suName)
          Returns a boolean value indicating whether the SU is currently deployed.
 ServiceAssemblyLifeCycle register(ServiceAssembly sa, ServiceAssemblyEnvironment env)
           
 ServiceAssemblyLifeCycle register(ServiceAssembly sa, String[] suKeys, ServiceAssemblyEnvironment env)
           
 void shutDown()
          shutDown the service
 void start()
          Start all registered service assemblies
 void stop()
          Stop service assembilies
 boolean unregister(String name)
          unregister a service assembly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAssemblyRegistry

public ServiceAssemblyRegistry(Registry registry)
Constructor

Parameters:
registry -
Method Detail

start

public void start()
Start all registered service assemblies


stop

public void stop()
Stop service assembilies


shutDown

public void shutDown()
shutDown the service


register

public ServiceAssemblyLifeCycle register(ServiceAssembly sa,
                                         String[] suKeys,
                                         ServiceAssemblyEnvironment env)
                                  throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

register

public ServiceAssemblyLifeCycle register(ServiceAssembly sa,
                                         ServiceAssemblyEnvironment env)
                                  throws javax.jbi.management.DeploymentException
Throws:
javax.jbi.management.DeploymentException

unregister

public boolean unregister(String name)
unregister a service assembly

Parameters:
name -
Returns:
true if successful

getServiceAssembly

public ServiceAssemblyLifeCycle getServiceAssembly(String saName)
Get a named ServiceAssembly

Parameters:
name -
Returns:
the ServiceAssembly or null if it doesn't exist

getDeployedServiceAssemblies

public String[] getDeployedServiceAssemblies()
Returns a list of Service Assemblies deployed to the JBI enviroment.

Returns:
list of Service Assembly Name's.

getDeployedServiceAssembliesForComponent

public String[] getDeployedServiceAssembliesForComponent(String componentName)
Returns a list of Service Assemblies that contain SUs for the given component.

Parameters:
componentName - name of the component.
Returns:
list of Service Assembly names.

getComponentsForDeployedServiceAssembly

public String[] getComponentsForDeployedServiceAssembly(String saName)
Returns a list of components(to which SUs are targeted for) in a Service Assembly.

Parameters:
saName - name of the service assembly.
Returns:
list of component names.

isDeployedServiceUnit

public boolean isDeployedServiceUnit(String componentName,
                                     String suName)
Returns a boolean value indicating whether the SU is currently deployed.

Parameters:
componentName - - name of component.
suName - - name of the Service Unit.
Returns:
boolean value indicating whether the SU is currently deployed.

getServiceAssemblies

public Collection<ServiceAssemblyLifeCycle> getServiceAssemblies()
Returns a list of service assemblies.

Returns:
list of service assemblies


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