|
||||||||||
| 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.DeploySUToComponentTask
public class DeploySUToComponentTask
This task deploys service unit to the targeted component.
This task MUST be executed with a Context containing:
ServiceUnit),URL,Context:
String.The task has got a non-robust approach : it stops at the first subtask failed and have the undo capability.
| Field Summary | |
|---|---|
protected AdminService |
adminService
JBI Container :: JMX Agent Admin |
| Fields inherited from class org.ow2.petals.jbi.management.task.AbstractLoggableTask |
|---|
log |
| Constructor Summary | |
|---|---|
DeploySUToComponentTask(org.ow2.petals.util.LoggingUtil log,
AdminService adminService)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
deploySUtoComponent(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit)
Deploy the given service unit to the targeted component. |
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 |
| Field Detail |
|---|
protected AdminService adminService
| Constructor Detail |
|---|
public DeploySUToComponentTask(org.ow2.petals.util.LoggingUtil log,
AdminService adminService)
| 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.lang.String deploySUtoComponent(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit)
throws java.lang.Exception
installationRoot - the SU installation URLserviceUnit - the service unit production element
String xml result of the service unit deployment on the
targeted component (see section 6.9 of the JSR 208)
ManagementException - if component and related object are missing, if the call of
the service unit manager method "deploy" fails or if the
component isn't in the STARTED state
java.lang.Exception
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 | |||||||||