SlideShare a Scribd company logo
Apache Stratos- Meta data service 
Section 1 ­Overview 
design 
Explanation 
Section 2 ­REST 
API 
Rest API for add the cartridge details to the Governance registry 
Overview 
Sample request 
Example 
Rest API for retrieve the cartridge details from the Governance registry 
Overview 
Example 
Sample response 
Section 3 ­Stratos 
Meta data structure in Governance Registry 
Data structure template 
Section 4 ­Packaging
Section 1 -Overview design 
Explanation 
­Meta 
data service exposes REST API which responsible for meta data update and data 
retrieve ( Describe under section 2) 
­Cartridge 
agent responsible for called meta data service and subscribe his own meta 
data 
­In 
the case of grouping of cartridge,cartridge needs to retrieve meta data of his 
dependent cartridge through REST api
­Assuming 
that dependent cartridge type will be attached in the generate­params 
­Meta 
data service listening for topology 
Once instance terminated event occurred, it will delete the meta data in the G­Reg 
Section 2 - REST API 
Rest API for add the cartridge details to the Governance registry 
Overview 
Description Subscribe the cartridge details to the G­Reg 
URL metadataservice/cartridge/metadata/<APPLICATION_NAME>/ 
<CARTRIDGE_TYPE> 
HTTP Method POST 
Request/Response Format application/json 
Sample request 
{ 
“applicationName”:”app­A”, 
"displayName":"MYSQL", 
"description":"MYSQL Cartridge", 
"type":"mysql", 
"provider":"apache", 
"host":"stratos.org", 
"version":"7", 
"property":[ 
{ 
“url”:”http://mysql.stratos.org”, 
"username":"root", 
"password":"admin" 
} 
]
} 
Example 
Use case: Subscribe the meta data when installing the mysql Cartridge. The example request is 
as follows: 
curl ­X 
POST ­H 
"Content­Type: 
application/json" ­d 
@mysql­request 
­k 
­v 
­u 
admin:admin 
https://<SM_HOST>:9443/stratosmetadata/metadataservice/cartridge/metadata/app1/mysq 
l 
Sample response 
{ 
"stratosAdminResponse": { 
"message": "Successfully added the cartridge meta data details" 
} 
} 
Rest API for retrieve the cartridge details from the Governance registry 
Overview 
Description Retrieve cartridge meta data from the G­Reg 
URL metadataservice/cartridge/metadata/<APPLICATION_NAME>/ 
<CARTRIDGE_TYPE> 
HTTP Method GET 
Request/Response 
Format 
application/json 
Example 
Use case: Retrieve the meta data of the mysql cartridge. The example request is as follows: 
curl ­X 
GET ­H 
"Content­Type: 
application/json" ­k 
­v 
­u 
admin:admin
https://<SM_HOST>:9443/stratosmetadata/metadataservice/cartridge/metadata/app1/mysql 
Sample response 
{ 
“applicationName”:”app­A”, 
"displayName":"mysql", 
"description":"mysql Cartridge", 
"type":"mysql", 
"provider":"apache", 
"host":"stratos.org", 
"version":"7", 
"property":[ 
{ 
“url”:”http://mysql.stratos.org”, 
"username":"root", 
"password":"admin" 
} 
] 
}
Section 3 - Stratos Meta data structure in Governance Registry 
Data structure template 
Application 1 
­cartridge 
1 
­property 
1(key/value) 
­property 
2 
­cartridge 
2 
­property 
1 
­property 
2 
Application 2 
­cartridge 
1 
­property 
1 
­property 
2 
­cartridge 
2 
­property 
1 
­property 
2 
Section 4 - Packaging 
+Can be packed in a standalone server or single JVM 
+Proposed component name : org.apache.stratos.metadataservice

More Related Content

Similar to Meta dataservice design

Overview of RESTful web services
Overview of RESTful web servicesOverview of RESTful web services
Overview of RESTful web services
nbuddharaju
 
Library Project
Library ProjectLibrary Project
Library Project
Holly Sanders
 
Spring-training-in-bangalore
Spring-training-in-bangaloreSpring-training-in-bangalore
Spring-training-in-bangalore
TIB Academy
 
Azure Powershell Tips
Azure Powershell TipsAzure Powershell Tips
Azure Powershell Tips
Thangamani Durairaj
 
Apache Stratos Hangout VI
Apache Stratos Hangout VIApache Stratos Hangout VI
Apache Stratos Hangout VI
pradeepfn
 
AJAX
AJAXAJAX
AJAX
AJAXAJAX
API gateway setup
API gateway setupAPI gateway setup
API gateway setup
sivachandra mandalapu
 
How to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis moduleHow to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis module
Priyobroto Ghosh (Mule ESB Certified)
 
Jasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-casJasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-cas
ellentuck
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
WebStackAcademy
 
Stratos Grouping
Stratos GroupingStratos Grouping
Stratos Grouping
WSO2
 
SP Rest API Documentation
SP Rest API DocumentationSP Rest API Documentation
SP Rest API Documentation
IT Industry
 
Forge: Under the Hood
Forge: Under the HoodForge: Under the Hood
Forge: Under the Hood
Atlassian
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library Development
Synapseindiappsdevelopment
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando Rails
Fernando Kakimoto
 
SAPS - Semantic AtomPub-based Services
SAPS - Semantic AtomPub-based ServicesSAPS - Semantic AtomPub-based Services
SAPS - Semantic AtomPub-based Services
Markus Lanthaler
 
jQuery : Talk to server with Ajax
jQuery : Talk to server with AjaxjQuery : Talk to server with Ajax
jQuery : Talk to server with Ajax
Wildan Maulana
 
Rapid API development examples for Impress Application Server / Node.js (jsfw...
Rapid API development examples for Impress Application Server / Node.js (jsfw...Rapid API development examples for Impress Application Server / Node.js (jsfw...
Rapid API development examples for Impress Application Server / Node.js (jsfw...
Timur Shemsedinov
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
engcs2008
 

Similar to Meta dataservice design (20)

Overview of RESTful web services
Overview of RESTful web servicesOverview of RESTful web services
Overview of RESTful web services
 
Library Project
Library ProjectLibrary Project
Library Project
 
Spring-training-in-bangalore
Spring-training-in-bangaloreSpring-training-in-bangalore
Spring-training-in-bangalore
 
Azure Powershell Tips
Azure Powershell TipsAzure Powershell Tips
Azure Powershell Tips
 
Apache Stratos Hangout VI
Apache Stratos Hangout VIApache Stratos Hangout VI
Apache Stratos Hangout VI
 
AJAX
AJAXAJAX
AJAX
 
AJAX
AJAXAJAX
AJAX
 
API gateway setup
API gateway setupAPI gateway setup
API gateway setup
 
How to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis moduleHow to connect redis and mule esb using spring data redis module
How to connect redis and mule esb using spring data redis module
 
Jasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-casJasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-cas
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 4...
 
Stratos Grouping
Stratos GroupingStratos Grouping
Stratos Grouping
 
SP Rest API Documentation
SP Rest API DocumentationSP Rest API Documentation
SP Rest API Documentation
 
Forge: Under the Hood
Forge: Under the HoodForge: Under the Hood
Forge: Under the Hood
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library Development
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando Rails
 
SAPS - Semantic AtomPub-based Services
SAPS - Semantic AtomPub-based ServicesSAPS - Semantic AtomPub-based Services
SAPS - Semantic AtomPub-based Services
 
jQuery : Talk to server with Ajax
jQuery : Talk to server with AjaxjQuery : Talk to server with Ajax
jQuery : Talk to server with Ajax
 
Rapid API development examples for Impress Application Server / Node.js (jsfw...
Rapid API development examples for Impress Application Server / Node.js (jsfw...Rapid API development examples for Impress Application Server / Node.js (jsfw...
Rapid API development examples for Impress Application Server / Node.js (jsfw...
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 

Recently uploaded

一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENTNATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
Addu25809
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Height and depth gauge linear metrology.pdf
Height and depth gauge linear metrology.pdfHeight and depth gauge linear metrology.pdf
Height and depth gauge linear metrology.pdf
q30122000
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
vmspraneeth
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
Shiny Christobel
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
Kamal Acharya
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...
cannyengineerings
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 

Recently uploaded (20)

一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENTNATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
NATURAL DEEP EUTECTIC SOLVENTS AS ANTI-FREEZING AGENT
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Height and depth gauge linear metrology.pdf
Height and depth gauge linear metrology.pdfHeight and depth gauge linear metrology.pdf
Height and depth gauge linear metrology.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...Pressure Relief valve used in flow line to release the over pressure at our d...
Pressure Relief valve used in flow line to release the over pressure at our d...
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 

Meta dataservice design

  • 1. Apache Stratos- Meta data service Section 1 ­Overview design Explanation Section 2 ­REST API Rest API for add the cartridge details to the Governance registry Overview Sample request Example Rest API for retrieve the cartridge details from the Governance registry Overview Example Sample response Section 3 ­Stratos Meta data structure in Governance Registry Data structure template Section 4 ­Packaging
  • 2. Section 1 -Overview design Explanation ­Meta data service exposes REST API which responsible for meta data update and data retrieve ( Describe under section 2) ­Cartridge agent responsible for called meta data service and subscribe his own meta data ­In the case of grouping of cartridge,cartridge needs to retrieve meta data of his dependent cartridge through REST api
  • 3. ­Assuming that dependent cartridge type will be attached in the generate­params ­Meta data service listening for topology Once instance terminated event occurred, it will delete the meta data in the G­Reg Section 2 - REST API Rest API for add the cartridge details to the Governance registry Overview Description Subscribe the cartridge details to the G­Reg URL metadataservice/cartridge/metadata/<APPLICATION_NAME>/ <CARTRIDGE_TYPE> HTTP Method POST Request/Response Format application/json Sample request { “applicationName”:”app­A”, "displayName":"MYSQL", "description":"MYSQL Cartridge", "type":"mysql", "provider":"apache", "host":"stratos.org", "version":"7", "property":[ { “url”:”http://mysql.stratos.org”, "username":"root", "password":"admin" } ]
  • 4. } Example Use case: Subscribe the meta data when installing the mysql Cartridge. The example request is as follows: curl ­X POST ­H "Content­Type: application/json" ­d @mysql­request ­k ­v ­u admin:admin https://<SM_HOST>:9443/stratosmetadata/metadataservice/cartridge/metadata/app1/mysq l Sample response { "stratosAdminResponse": { "message": "Successfully added the cartridge meta data details" } } Rest API for retrieve the cartridge details from the Governance registry Overview Description Retrieve cartridge meta data from the G­Reg URL metadataservice/cartridge/metadata/<APPLICATION_NAME>/ <CARTRIDGE_TYPE> HTTP Method GET Request/Response Format application/json Example Use case: Retrieve the meta data of the mysql cartridge. The example request is as follows: curl ­X GET ­H "Content­Type: application/json" ­k ­v ­u admin:admin
  • 5. https://<SM_HOST>:9443/stratosmetadata/metadataservice/cartridge/metadata/app1/mysql Sample response { “applicationName”:”app­A”, "displayName":"mysql", "description":"mysql Cartridge", "type":"mysql", "provider":"apache", "host":"stratos.org", "version":"7", "property":[ { “url”:”http://mysql.stratos.org”, "username":"root", "password":"admin" } ] }
  • 6. Section 3 - Stratos Meta data structure in Governance Registry Data structure template Application 1 ­cartridge 1 ­property 1(key/value) ­property 2 ­cartridge 2 ­property 1 ­property 2 Application 2 ­cartridge 1 ­property 1 ­property 2 ­cartridge 2 ­property 1 ­property 2 Section 4 - Packaging +Can be packed in a standalone server or single JVM +Proposed component name : org.apache.stratos.metadataservice