org.ow2.petals.jbi.management.task.installation.uninstall.sl
Class RemoveSLStateHolderTask
java.lang.Object
org.ow2.petals.jbi.management.task.AbstractLoggableTask
org.ow2.petals.jbi.management.task.installation.uninstall.sl.RemoveSLStateHolderTask
- All Implemented Interfaces:
- Task
public class RemoveSLStateHolderTask
- extends AbstractLoggableTask
This task removes the shared lib from the state holder file.
This task MUST be executed with a Context containing:
- component name as entity name,
and returns following data in the Context:
- the shared library state holder (
SharedLibrary).
The task has got a robust approach : it tries to do all the subtasks and
doesn't have the undo capability.
- Author:
- ofabre - EBM Websourcing, fgardes - EBM Websourcing
|
Method Summary |
void |
execute(Context context)
Launch the task with the given context. |
void |
undo(Context context)
Reverse the task in order to retrieve the environ state before execution
of this task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveSLStateHolderTask
public RemoveSLStateHolderTask(org.ow2.petals.util.LoggingUtil log,
SystemStateService recoveryService)
execute
public void execute(Context context)
- 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
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.