org.ow2.petals.microkernel.api.jbi.management
Interface DeploymentServiceMBean

All Superinterfaces:
javax.jbi.management.DeploymentServiceMBean
All Known Subinterfaces:
DeploymentService

public interface DeploymentServiceMBean
extends javax.jbi.management.DeploymentServiceMBean

This custom interface add methods used by redeployment tasks of the SystemStateService service.

Author:
Olivier Fabre - EBM WebSourcing

Field Summary
 
Fields inherited from interface javax.jbi.management.DeploymentServiceMBean
SHUTDOWN, STARTED, STOPPED
 
Method Summary
 boolean forceUndeploy(String name)
          Try to undeploy a service assembly.
 String[] getServiceUnitForServiceAssembly(String saName)
          Get all the service unit names for the given service assembly
 String[] shutdownAllServiceAssemblies()
          Try to shutdown all service assemblies.
 String[] startAllServiceAssemblies()
          Try to start all service assemblies.
 String[] stopAllServiceAssemblies()
          Try to stop all service assemblies.
 String[] undeployAllServiceAssemblies(boolean force)
          Try to undeploy all service assemblies.
 
Methods inherited from interface javax.jbi.management.DeploymentServiceMBean
canDeployToComponent, deploy, getComponentsForDeployedServiceAssembly, getDeployedServiceAssemblies, getDeployedServiceAssembliesForComponent, getDeployedServiceUnitList, getServiceAssemblyDescriptor, getState, isDeployedServiceUnit, shutDown, start, stop, undeploy
 

Method Detail

forceUndeploy

boolean forceUndeploy(String name)
Try to undeploy a service assembly. If the SA is in the STARTED state, it will be previously stopped and shut down. If the SA is in the STOPPED state, it will be previously shut down.

Returns:
true if the SA is undeployed, false otherwise.

getServiceUnitForServiceAssembly

String[] getServiceUnitForServiceAssembly(String saName)
                                          throws Exception
Get all the service unit names for the given service assembly

Parameters:
saName -
Returns:
Throws:
Exception

shutdownAllServiceAssemblies

String[] shutdownAllServiceAssemblies()
Try to shutdown all service assemblies. If a service assembly can't be shut down, the shutting down process isn't aborted. It returns the list of all shutdown service assemblies.

Returns:
an array of successfully shutdown service assembly names.

startAllServiceAssemblies

String[] startAllServiceAssemblies()
Try to start all service assemblies. If a service assembly can't be started, the starting process isn't aborted. It returns the list of all started service assemblies.

Returns:
an array of successfully started service assembly names.

stopAllServiceAssemblies

String[] stopAllServiceAssemblies()
Try to stop all service assemblies. If a service assembly can't be stopped, the stopping process isn't aborted. It returns the list of all stopped service assemblies.

Returns:
an array of successfully stopped service assembly names.

undeployAllServiceAssemblies

String[] undeployAllServiceAssemblies(boolean force)
Try to undeploy all service assemblies. The undeployment can be forced; in this case, the deployment process is completed as this : if the SA is in the STARTED state, it will be stopped and shutdown. If the SA is in the STOPPED state, it will be shutdown. If a service assembly can't be undeployed, the undeploying process isn't aborted. It returns the list of all undeployed service assemblies.

Parameters:
force - true if you want to force undeployment, ignoring assembly state. Default is false
Returns:
an array of successfully undeployed service assembly names.


Copyright © 2005-2015 Linagora. All Rights Reserved.