org.ow2.petals.jbi.management.task
Class AbstractCreateStateHolderTask
java.lang.Object
org.ow2.petals.jbi.management.task.AbstractLoggableTask
org.ow2.petals.jbi.management.task.AbstractFileManipulationTask
org.ow2.petals.jbi.management.task.AbstractCreateStateHolderTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- CreateComponentStateHolderTask, CreateSAStateHolderTask, CreateSLStateHolderTask
public abstract class AbstractCreateStateHolderTask
- extends AbstractFileManipulationTask
This task creates state holder entry for component, service assembly or
shared lib
The task has got a non-robust approach : it stops at the first subtask failed
and have the undo capability.
Inputs : Jbi, archive URI
- Author:
- ofabre - EBM Websourcing, fgardes - EBM Websourcing
|
Method Summary |
protected abstract void |
createEntityStateHolder(java.lang.String name,
java.lang.String version,
java.net.URL installUrl,
java.lang.String archiveName)
|
protected abstract void |
deleteEntityStateHolder(java.lang.String name,
java.lang.String version)
|
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 |
systemStateService
protected SystemStateService systemStateService
- JBI Container :: Recovery Service
AbstractCreateStateHolderTask
public AbstractCreateStateHolderTask(org.ow2.petals.util.LoggingUtil log,
SystemStateService systemStateSrv,
java.lang.String petalsInstallDirectory)
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
createEntityStateHolder
protected abstract void createEntityStateHolder(java.lang.String name,
java.lang.String version,
java.net.URL installUrl,
java.lang.String archiveName)
throws org.ow2.petals.systemstate.SystemStateException
- Throws:
org.ow2.petals.systemstate.SystemStateException
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
deleteEntityStateHolder
protected abstract void deleteEntityStateHolder(java.lang.String name,
java.lang.String version)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.