[
https://issues.apache.org/jira/browse/STRATOS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13859825#comment-13859825
]
Imesh Gunaratne commented on STRATOS-326:
-----------------------------------------
The following extension points implemented:
- $CA_HOME/extensions/instance-started.sh
- $CA_HOME/extensions/artifacts-updated.sh
- $CA_HOME/extensions/start-servers.sh
- $CA_HOME/extensions/instance-activated.sh
Changes committed with commit revision:
b7db600f9f915f5e64a77071fc4c180bda7f1dc7
> Implement Cartridge Agent Extension Points
> ------------------------------------------
>
> Key: STRATOS-326
> URL: https://issues.apache.org/jira/browse/STRATOS-326
> Project: Stratos
> Issue Type: Task
> Components: Cartridge Instance Agent
> Affects Versions: 4.0.0 Alpha
> Reporter: Imesh Gunaratne
> Assignee: Imesh Gunaratne
>
> This is a suggestion made by Lakmal. In Cartridge Agent it would be great if
> we could keep extension points to allow users to capture events and execute
> any cartridge specific logic.
> Cartridge Agent Work Flow:
> 1. Start VM Instance.
> 2. Start Cartridge Agent.
> 3. Publish Instance Started event to Instance Status topic.
> 4. Execute extension script to start the server(s). May be this could be
> called extensions/instance-started.sh
> 5. If no artifact Git repository found wait for the application ports to be
> active.
> 6. Once ports are active publish Instance Activated event to Instance Status
> topic.
> 7. Execute extension script to notify Instance Activated event. May be this
> could be called extensions/instance-activated.sh
> 6. If artifact Git repository found, wait for the Update Artifacts event on
> Instance Notifier topic.
> 7. Once Artifact Update event received checkout artifacts.
> 8. Copy artifacts to the given application path.
> 9. Execute extension script to notify Artifacts Updated event. May be this
> could be called extensions/artifacts-updated.sh
> 10. Wait for the application ports to be active.
> 11. Repeat from step 6 until stopped.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)