org.ow2.petals.jbi.management.task.deployment.undeploy
Class RetrieveSALifeCycleTask

java.lang.Object
  extended by org.ow2.petals.jbi.management.task.deployment.undeploy.RetrieveSALifeCycleTask
All Implemented Interfaces:
Task

public class RetrieveSALifeCycleTask
extends java.lang.Object
implements Task

Retrieve service assembly lifecycle.
Inputs : entity name String
Outputs : ServiceAssemblyLifeCycle
The task has got a robust approach: it tries to do all the subtasks
and have the undo capability.

Author:
ofabre - EBM Websourcing, Frederic Gardes - eBM Websourcing

Field Summary
protected  AdminService adminService
          JBI Container :: JMX Agent Admin
 
Constructor Summary
RetrieveSALifeCycleTask(AdminService adminService)
           
 
Method Summary
 void execute(Context context)
          Launch the task with the given context.
protected  ServiceAssemblyLifeCycle retrieveServiceAssemblyLifeCycle(java.lang.String saName)
          Retrieve the ServiceAssemblyLifeCycle matching the given service assembly name.
 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
 

Field Detail

adminService

protected AdminService adminService
JBI Container :: JMX Agent Admin

Constructor Detail

RetrieveSALifeCycleTask

public RetrieveSALifeCycleTask(AdminService adminService)
Method Detail

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.

Specified by:
execute in interface Task
Parameters:
context - the execution context handling input and output information
Throws:
java.lang.Exception - if an error occurs during Task processing

retrieveServiceAssemblyLifeCycle

protected ServiceAssemblyLifeCycle retrieveServiceAssemblyLifeCycle(java.lang.String saName)
Retrieve the ServiceAssemblyLifeCycle matching the given service assembly name.

Parameters:
saName - the service assembly name
Returns:
the retrieved ServiceAssemblyLifeCycle
Throws:
java.lang.Exception - if no service assembly can be retrieved

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.

Specified by:
undo in interface 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.