org.ow2.petals.jbi.management.task.deployment.deploy
Class RenameSUsTask

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

public class RenameSUsTask
extends java.lang.Object
implements Task

This task renames service unit packages into the repository to fits with service unit ids in the JBI descriptor of the service assembly
Inputs : Jbi, parent service assembly install root URI
Outputs : SU install roots Map

Author:
ofabre - EBM Websourcing

Field Summary
protected  org.ow2.petals.util.LoggingUtil log
          logger wrapper
 
Constructor Summary
RenameSUsTask(RepositoryService repositoryService, org.ow2.petals.util.LoggingUtil log)
           
 
Method Summary
 void execute(Context context)
          Launch the task with the given context.
protected  java.util.Map<java.lang.String,java.net.URL> renameSUS(java.net.URL saInstallUrl, org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
          Explode service unit packages into the repository
 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

log

protected org.ow2.petals.util.LoggingUtil log
logger wrapper

Constructor Detail

RenameSUsTask

public RenameSUsTask(RepositoryService repositoryService,
                     org.ow2.petals.util.LoggingUtil log)
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

renameSUS

protected java.util.Map<java.lang.String,java.net.URL> renameSUS(java.net.URL saInstallUrl,
                                                                 org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
                                                          throws ManagementException,
                                                                 java.net.MalformedURLException
Explode service unit packages into the repository

Parameters:
saInstallRoot - the root URI of the service assembly
descriptor - the service assembly descriptor
Returns:
the map containing all SU install roots
Throws:
ManagementException - if the repository service doesn't manage to expend su archive
java.net.MalformedURLException

undo

public void undo(Context context)
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


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.