org.ow2.petals.jbi.management.task.deployment.deploy
Class RegisterSALifeCycleTask
java.lang.Object
org.ow2.petals.jbi.management.task.AbstractLoggableTask
org.ow2.petals.jbi.management.task.deployment.deploy.RegisterSALifeCycleTask
- All Implemented Interfaces:
- Task
public class RegisterSALifeCycleTask
- extends AbstractLoggableTask
This task registers ServiceAssemblyLifeCycle into manager service map
Inputs : Jbi, ServiceAssemblyLifeCycle
The task has got a non-robust approach : it stops at the first subtask failed
and have the undo capability.
- Author:
- ofabre - EBM Websourcing, Frederic Gardes - eBM Websourcing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adminService
protected AdminService adminService
- JBI Container :: JMX Agent Admin
containerService
protected ContainerService containerService
RegisterSALifeCycleTask
public RegisterSALifeCycleTask(org.ow2.petals.util.LoggingUtil log,
AdminService adminService,
ContainerService containerService)
execute
public void execute(Context context)
throws java.lang.Exception
- Description copied from interface:
Task
- Launch the task with the given context. Task can modify information
included in this context during execution.
- Parameters:
context - the execution context handling input and output information
- Throws:
java.lang.Exception - if an error occurs during Task processing
createSALifeCycle
protected ServiceAssemblyLifeCycle createSALifeCycle(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
throws org.ow2.petals.kernel.api.server.PetalsException,
org.objectweb.fractal.api.NoSuchInterfaceException,
org.objectweb.fractal.api.control.IllegalLifeCycleException,
org.objectweb.fractal.adl.ADLException,
javax.jbi.JBIException
- Creates a new
ServiceAssemblyLifeCycle
- Parameters:
installationRoot - the root URI of the service assembly into the
repositorydescriptor - the service assembly jbi descriptor
- Returns:
- a new
ServiceAssemblyLifeCycle
- Throws:
org.ow2.petals.kernel.api.server.PetalsException
org.objectweb.fractal.adl.ADLException
org.objectweb.fractal.api.control.IllegalLifeCycleException
org.objectweb.fractal.api.NoSuchInterfaceException
javax.jbi.JBIException
undo
public void undo(Context context)
throws java.lang.Exception
- Description copied from interface:
Task
- Reverse the task in order to retrieve the environ state before execution
of this task.
- Parameters:
context - the execution context handling input and output information
- Throws:
java.lang.Exception - if an error occurs during Task unprocessing
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.