org.ow2.petals.jbi.management.deployment
Interface DeploymentServiceMBean

All Superinterfaces:
javax.jbi.management.DeploymentServiceMBean
All Known Subinterfaces:
DeploymentService
All Known Implementing Classes:
DeploymentServiceImpl

public interface DeploymentServiceMBean
extends javax.jbi.management.DeploymentServiceMBean

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

Author:
ofabre

Field Summary
 
Fields inherited from interface javax.jbi.management.DeploymentServiceMBean
SHUTDOWN, STARTED, STOPPED
 
Method Summary
 boolean forceUndeploy(java.lang.String name)
          Try to undeploy a service assembly.
 java.lang.String[] getServiceUnitForServiceAssembly(java.lang.String saName)
          Get all the service unit names for the given service assembly
 java.lang.String[] shutdownAllServiceAssemblies()
          Try to shutdown all service assemblies.
 java.lang.String[] startAllServiceAssemblies()
          Try to start all service assemblies.
 java.lang.String[] stopAllServiceAssemblies()
          Try to stop all service assemblies.
 java.lang.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(java.lang.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

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

Parameters:
saName -
Returns:
Throws:
java.lang.Exception

shutdownAllServiceAssemblies

java.lang.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

java.lang.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

java.lang.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

java.lang.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-2011 Petals Link (EBM Websourcing). All Rights Reserved.