Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for dynamically reading cloud platform configuration files

A configuration file and cloud platform technology, applied in the field of Java and database, can solve the problem of error-prone yml file, etc., and achieve the effect of flexible reading

Active Publication Date: 2020-05-29
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for dynamically reading cloud platform configuration files aimed at the current needs and the shortcomings of the existing technology development. The present invention uses a combination of Java and database to complete the reading of Cloud Foundry configuration files , realize the reconstruction of the Service Broker interface, which can effectively solve the problems such as error-prone yml files

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for dynamically reading cloud platform configuration files
  • Method and device for dynamically reading cloud platform configuration files
  • Method and device for dynamically reading cloud platform configuration files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Such as figure 1 As shown, a method for dynamically reading cloud platform configuration files of the present invention comprises the following steps:

[0041] Step S101: Store the data in the Cloud Foundry configuration file settings.yml in the original format into the database.

[0042] Step S102: Read data in the database.

[0043]Step S103: Reorganize the data format in the database according to the data format requirements of the interface provided by Cloud Foundry.

[0044] Step S104: Dynamically read the Cloud Foundry configuration file by calling the Service Broker interface provided by the reconstructed Cloud Foundry.

[0045] It is worth noting that the cloud platform refers to Cloud Foundry, and the configuration file refers to the yml type configuration file. The configuration file contains the creation information of the Service Broker interface provided by Cloud Foundry. The original format of the data includes list format and map format.

Embodiment 2

[0047] Such as figure 2 As shown, a device for dynamically reading cloud platform configuration files of the present invention includes: a storage module 201, a reading module 202 in a reconstruction module, a reorganization module 203 in a reconstruction module, and a dynamic reading module 204, which are stored in The module 201 is sequentially connected to the reading module 202 in the reconstruction module, the recombination module 203 in the reconstruction module and the dynamic reading module 204 .

[0048] Store in module 201, be used for storing the data in the Cloud Foundry configuration file in the original format into the database; The reading module 202 in the reconstruction module is used to read the data in the database; The reorganization module 203 in the reconstruction module, It is used to reorganize the data format in the database according to the requirements of the interface provided by Cloud Foundry for the data format; the dynamic reading module 204 is ...

Embodiment 3

[0050] Such as image 3 As shown, another kind of method of dynamically reading cloud platform configuration file of the present invention comprises the following steps:

[0051] Step S301: storing the data in the Cloud Foundry configuration file in the original format into the database.

[0052] Step S302: rebuild the interface provided by Cloud Foundry.

[0053] Step S303: Dynamically read the Cloud Foundry configuration file by calling the interface provided by Cloud Foundry.

[0054] It is worth noting that the cloud platform refers to Cloud Foundry, and the configuration file refers to the yml type configuration file. The configuration file contains the creation information of the Service Broker interface provided by Cloud Foundry. The original format of the data includes list format and map format. In addition, rebuilding the interface provided by Cloud Foundry refers to rewriting the methods in the Service Broker interface provided by Cloud Foundry through Java techno...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to the technical field of Java and databases, and discloses a method for dynamically reading a cloud platform configuration file. The method comprises the following steps: storing data in a Cloud Foundry configuration file into a database, wherein an original format of the data is maintained; reconstructing an interface provided by Cloud Foundry; by calling the interface provided by Cloud Foundry, dynamically reading the Cloud Foundry configuration file. Further disclosed is a device for dynamically reading a cloud platform configuration file. The device comprises: a storage module; a reconstruction module; and a dynamic reading module. According to the method and device provided by the present invention, with Java and database combined, the Cloud Foundry configuration file is read, reconstruction of the ServiceBroker interface is realized, and problems such as error-proneness of yml files can be effectively solved.

Description

technical field [0001] The invention relates to the technical fields of Java and databases, in particular to a method and device for dynamically reading cloud platform configuration files. Background technique [0002] Cloud Foundry is the industry's first open source PaaS cloud platform launched by VMware. It supports multiple frameworks, languages, runtime environments, cloud platforms and application services, enabling developers to deploy and expand applications in seconds. No need to worry about any infrastructure issues. At the same time, it itself is a distributed system based on Ruby on Rails and composed of multiple relatively independent subsystems through the message mechanism, so that the platform can be horizontally expanded at all levels, and can run in large data centers as well as On a desktop computer, both use the same codebase. As a new generation cloud application platform, Cloud Foundry is specially designed for private cloud computing environments, en...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445G06F9/54
CPCG06F9/44521G06F9/547G06F2209/549
Inventor 王阳高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More