public interface ContainerService
ContainerService
interface allow to create and handle JBI containers.Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_LIFECYCLES_ITF_PREFIX
Name of the client interface 'componentLifecycles' of the Fractal component 'ContainerService', associated to the
JBI component lifecycles.
|
static String |
COMPONENT_LOGGER_PREFIX
Prefix of logger names of Fractal components associated to JBI artifacts
|
static String |
FRACTAL_COMPONENT_LOGGER_NAME
Logger name of the container service
|
static String |
FRACTAL_SRV_ITF_NAME
Name of the server interface of the Fractal component associated to the container service
|
static String |
INSTALLERS_ITF_PREFIX
Name of the client interface 'installers' of the Fractal component 'ContainerService', associated to the JBI
component installers.
|
static String |
SA_LIFECYCLES_ITF_PREFIX
Name of the client interface 'serviceAssemblyLifecycles' of the Fractal component 'ContainerService', associated
to the JBI SA lifecycles.
|
static String |
SL_LIFECYCLES_ITF_PREFIX
Name of the client interface 'sharedLibraryLifecycles' of the Fractal component 'ContainerService', associated to
the JBI SL lifecycles.
|
Modifier and Type | Method and Description |
---|---|
ComponentLifeCycle |
createComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
Create a JBI component life cycle and its associated Fractal component, from its component description, and then
starts it.
|
Installer |
createInstaller(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription)
Create a JBI component installer and its associated Fractal component, from its component description, and then
starts it.
|
ServiceAssemblyLifeCycle |
createServiceAssemblyLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly sa)
Create a JBI service assembly life cycle and its associated Fractal component, from its description, and then
starts it
|
SharedLibraryLifeCycle |
createSharedLibraryLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl)
Create a JBI shared library life cycle and its associated Fractal component, from its description, and then
starts it.
|
Collection<String> |
getBindingComponentsNames()
Get the list of binding component
ComponentLifeCycle s |
ComponentLifeCycle |
getComponentLifecycleByName(String name)
Get a JBI component life cycle (
ComponentLifeCycle ) by its component name. |
Map<String,ComponentLifeCycle> |
getComponentLifecycles()
Get the list of
ComponentLifeCycle s |
Installer |
getInstallerByName(String name)
Get a JBI component installer (
Installer ) by its component name. |
Map<String,Installer> |
getInstallers()
Get the
Installer s, the map key is the JBI component name identifier |
org.objectweb.fractal.api.Component |
getParentContainer()
Get the container component.
|
Map<String,ServiceAssemblyLifeCycle> |
getServiceAssemblies()
Get the map of
ServiceAssemblyLifeCycle s by name |
ServiceAssemblyLifeCycle |
getServiceAssemblyByName(String saName)
Get the JBI service assembly life cycle (
ServiceAssemblyLifeCycle ) by its unique name. |
Collection<String> |
getServiceEnginesNames()
Get the list of service engine
ComponentLifeCycle s |
Collection<ServiceUnitLifeCycle> |
getServiceUnitsLifeCyclesByComponent(String component) |
Map<SharedLibraryBean,SharedLibraryLifeCycle> |
getSharedLibraries()
Get the map of
SharedLibraryLifeCycle s by names. |
SharedLibraryLifeCycle |
getSharedLibraryByName(String slName,
String slVersion)
Get the
SharedLibraryLifeCycle by its unique name. |
boolean |
isBindingComponent(String componentName)
Check if a JBI component is a binding component
|
boolean |
isServiceEngine(String componentName)
Check if a JBI component is a service engine
|
ObjectName |
registerComponentLifeCycleMBean(String name)
Register the MBean of a JBI component life cycle
|
ObjectName |
registerInstallerMBean(String name)
Register the MBean of a JBI component installer
|
void |
removeComponentLifeCycle(String name)
Remove a JBI component life cycle.
|
void |
removeInstaller(String name)
Remove an installer from the name of the component.
|
void |
removeServiceAssemblyLifeCycle(String saName)
remove a service assembly life cycle Fractal component.
|
void |
removeSharedLibraryLifeCycle(String slName,
String slVersion)
Remove a shared library life cycle, and free its associated resources.
|
void |
unregisterComponentLifeCycleMBean(String name)
Unregister the MBean of a JBI component life cycle
|
void |
unregisterInstallerMBean(String name)
Unregister the MBean of the a JBI component installer
|
static final String FRACTAL_COMPONENT_LOGGER_NAME
static final String COMPONENT_LOGGER_PREFIX
static final String FRACTAL_SRV_ITF_NAME
static final String INSTALLERS_ITF_PREFIX
static final String COMPONENT_LIFECYCLES_ITF_PREFIX
static final String SA_LIFECYCLES_ITF_PREFIX
static final String SL_LIFECYCLES_ITF_PREFIX
Installer createInstaller(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription) throws ContainerServiceException
componentDescription
- the component description of the JBI componentContainerServiceException
- An error occurs when creating the Fractal component associated to the installer of the JBI componentObjectName registerInstallerMBean(String name) throws InstallerNotFoundException, ContainerServiceException
name
- The JBI component identifierObjectName
of the MBean registered for the JBI component installer.InstallerNotFoundException
- The JBI component installer was not foundContainerServiceException
- An error occurs when registering the MBean of the JBI component installervoid unregisterInstallerMBean(String name) throws InstallerNotFoundException, ContainerServiceException
name
- The JBI component identifierInstallerNotFoundException
- The JBI component installer was not foundContainerServiceException
- An error occurs when registering the MBean of the JBI component installervoid removeInstaller(String name) throws org.ow2.petals.basisapi.exception.PetalsException
name
- the name of the componentorg.ow2.petals.basisapi.exception.PetalsException
- : occurs when it is impossible to remove an installerComponentLifeCycle createComponentLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Component componentDescription) throws ContainerServiceException
componentDescription
- the component description of the JBI componentContainerServiceException
- An error occurs when creating the Fractal component associated to the installer of the JBI componentObjectName registerComponentLifeCycleMBean(String name) throws ComponentLifecycleNotFoundException, ContainerServiceException
name
- The JBI component identifierObjectName
of the MBean registered for the JBI component life cycle.ComponentLifecycleNotFoundException
- The JBI component life cycle was not foundContainerServiceException
- An error occurs when registering the MBean of the JBI component life cyclevoid unregisterComponentLifeCycleMBean(String name) throws ComponentLifecycleNotFoundException, ContainerServiceException
name
- The JBI component identifierComponentLifecycleNotFoundException
- The JBI component life cycle was not foundContainerServiceException
- An error occurs when registering the MBean of the JBI component life cyclevoid removeComponentLifeCycle(String name) throws org.ow2.petals.basisapi.exception.PetalsException
name
- the name of the componentorg.ow2.petals.basisapi.exception.PetalsException
- : occurs when it is impossible to remove a component life cycleorg.objectweb.fractal.api.Component getParentContainer()
ServiceAssemblyLifeCycle createServiceAssemblyLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly sa) throws ContainerServiceException
sa
- the description of the JBI service assemblyContainerServiceException
- An error occurs when creating the Fractal component associated to the life cycle of the JBI service
assemblyvoid removeServiceAssemblyLifeCycle(String saName) throws org.ow2.petals.basisapi.exception.PetalsException
sa
- the service assembly nameorg.ow2.petals.basisapi.exception.PetalsException
- occurs when it is impossible to remove a service assembly life cycle Fractal componentSharedLibraryLifeCycle createSharedLibraryLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Jbi.SharedLibrary sl) throws ContainerServiceException
sl
- the description of the JBI shared libraryContainerServiceException
- An error occurs when creating the Fractal component associated to the life cycle of the JBI shared
libraryvoid removeSharedLibraryLifeCycle(String slName, String slVersion) throws org.ow2.petals.basisapi.exception.PetalsException
slName
- the shared library nameslVersion
- the shared library versionorg.ow2.petals.basisapi.exception.PetalsException
- occurs when it is impossible to remove a shared library life cycleInstaller getInstallerByName(String name)
Installer
) by its component name.name
- The JBI component installer to findInstaller
, or null
if not foundMap<String,Installer> getInstallers()
Installer
s, the map key is the JBI component name identifierMap<String,ComponentLifeCycle> getComponentLifecycles()
ComponentLifeCycle
sComponentLifeCycle
s, not null
.ComponentLifeCycle getComponentLifecycleByName(String name)
ComponentLifeCycle
) by its component name.name
- The JBI component life cycle to findComponentLifeCycle
, or null
if not foundCollection<ServiceUnitLifeCycle> getServiceUnitsLifeCyclesByComponent(String component)
Collection<String> getServiceEnginesNames()
ComponentLifeCycle
sComponentLifeCycle
s, not null
.Collection<String> getBindingComponentsNames()
ComponentLifeCycle
sComponentLifeCycle
s, not null
.boolean isServiceEngine(String componentName)
componentName
- The JBI component identifier, not null
true
if the component is a service engine, false
otherwise.boolean isBindingComponent(String componentName)
componentName
- The JBI component identifier, not null
true
if the component is a binding component, false
otherwise.ServiceAssemblyLifeCycle getServiceAssemblyByName(String saName)
ServiceAssemblyLifeCycle
) by its unique name.name
- The JBI service assembly identifierServiceAssemblyLifeCycle
, or null
if not foundMap<String,ServiceAssemblyLifeCycle> getServiceAssemblies()
ServiceAssemblyLifeCycle
s by nameServiceAssemblyLifeCycle
s, not null
.SharedLibraryLifeCycle getSharedLibraryByName(String slName, String slVersion)
SharedLibraryLifeCycle
by its unique name.slName
- The JBI shared library identifierslVersionName
- The version of the JBI shared librarySharedLibraryLifeCycle
, or null
if not foundMap<SharedLibraryBean,SharedLibraryLifeCycle> getSharedLibraries()
SharedLibraryLifeCycle
s by names.null
Copyright © 2005-2016 Linagora. All Rights Reserved.