|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.management.task.AbstractLoggableTask
org.ow2.petals.jbi.management.task.deployment.deploy.ExtractSUsTask
public class ExtractSUsTask
This task extracts service unit archives into the repository
Inputs : Jbi, parent service assembly install root URI
Outputs : SU install roots Map
The task has got a non-robust approach : it stops at the first subtask failed
and have the undo capability.
| Field Summary | |
|---|---|
protected RepositoryService |
repositoryService
Platform Component :: Repository Service |
| Fields inherited from class org.ow2.petals.jbi.management.task.AbstractLoggableTask |
|---|
log |
| Constructor Summary | |
|---|---|
ExtractSUsTask(org.ow2.petals.util.LoggingUtil log,
RepositoryService repositoryService)
|
|
| Method Summary | |
|---|---|
void |
execute(Context context)
Launch the task with the given context. |
protected java.net.URL |
expandSUIntoSA(java.lang.String suId,
java.net.URL suZipLocation,
java.lang.String saId)
Expand a service unit package into its service assembly installRoot. |
protected java.util.Map<java.lang.String,java.net.URL> |
expandSUs(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 |
|---|
protected RepositoryService repositoryService
| Constructor Detail |
|---|
public ExtractSUsTask(org.ow2.petals.util.LoggingUtil log,
RepositoryService repositoryService)
| Method Detail |
|---|
public void execute(Context context)
throws java.lang.Exception
Task
context - the execution context handling input and output information
java.lang.Exception - if an error occurs during Task processing
protected java.util.Map<java.lang.String,java.net.URL> expandSUs(java.net.URL saInstallUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
throws ManagementException,
org.ow2.petals.kernel.api.server.PetalsException,
java.net.MalformedURLException
saInstallRoot - the root URI of the service assemblydescriptor - the service assembly descriptor
ManagementException - if the repository service doesn't manage to expend SU archive
org.ow2.petals.kernel.api.server.PetalsException
java.net.MalformedURLException
protected java.net.URL expandSUIntoSA(java.lang.String suId,
java.net.URL suZipLocation,
java.lang.String saId)
throws ManagementException
suId - the unique identifier of the susuZipLocation - URI representing the su zip locationsaId - the unique identifier of the sa
ManagementException - if it fails to expend the su package to the repository
public void undo(Context context)
throws java.lang.Exception
Task
context - the execution context handling input and output information
java.lang.Exception - if an error occurs during Task unprocessing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||