org.ow2.petals.jbi.management
Interface Task

All Known Implementing Classes:
AbstractCheckPackageTask, AbstractCopyPackageToRepositoryTask, AbstractCreateStateHolderTask, AbstractFileManipulationTask, AbstractLoggableTask, ComponentCheckPackageTask, CopyArchiveToInstalledDirTask, CopyArchiveToWorkDirTask, CreateAndRegisterInstallerMBeanTask, CreateAndRegisterSULifeCycleTask, CreateComponentRepositoryTask, CreateComponentStateHolderTask, CreateSARepositoryTask, CreateSAStateHolderTask, CreateSLClassloaderTask, CreateSLRepositoryTask, CreateSLStateHolderTask, CreateXMLDeploymentResultTask, CreateXMLUndeploymentResultTask, DeployAllSUTask, DeploySUToComponentTask, DownloadTask, ExtractSUsTask, ExtractTask, RegisterAllConnectionTask, RegisterComponentInSLTask, RegisterSALifeCycleTask, RemoveAllConnectionsTask, RemoveComponentArchiveTask, RemoveComponentRepositoryTask, RemoveComponentStateHolderTask, RemoveSAArchiveTask, RemoveSADirectoryTask, RemoveSAStateHolderTask, RemoveSLArchiveTask, RemoveSLClassloaderTask, RemoveSLRepositoryTask, RemoveSLStateHolderTask, RenameSUsTask, RetrieveSAAndSUInstallRootsTask, RetrieveSALifeCycleTask, SACheckPackageTask, SLCheckPackageTask, UndeployAllSUsTask, UnregisterComponentFromSLTask, UnregisterInstallerTask, UnregisterSALifeCycleTask

public interface Task

A Task is an execution unit, that can be executed or undo. Tasks can be used by a processor that will execute them and reverse execution in case of fault.

Author:
ofabre - 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.
 

Method Detail

execute

void execute(Context context)
             throws java.lang.Exception
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

undo

void undo(Context context)
          throws java.lang.Exception
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.