CN104168306A - Configuration integration method based on distributed system - Google Patents
Configuration integration method based on distributed system Download PDFInfo
- Publication number
- CN104168306A CN104168306A CN201410301034.4A CN201410301034A CN104168306A CN 104168306 A CN104168306 A CN 104168306A CN 201410301034 A CN201410301034 A CN 201410301034A CN 104168306 A CN104168306 A CN 104168306A
- Authority
- CN
- China
- Prior art keywords
- client
- configuration file
- web server
- byte stream
- character string
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention relates to a configuration integrated method based on a distributed system and the method comprises: a client browser requests an access accessing a Web server through an http protocol; the Web server reads json format configuration files stored in a local disk while responding to each requesting; the Web server reads the configuration file as byte stream data, performs deserialization operation on the character string byte stream and returns to the client; and the client program converts the character string byte stream which is returned by the service port to a substantial object which can be identified by the client program and uploads to the internal storage. The invention enables the client program and the service port program which are in various operation environments to use one physic configuration file, can convert the same configuration file information to the substantial objects in various operation environments, and can reduce the redundancy of the setting information and the complexity of the configuration file maintenance.
Description
Technical field
The present invention relates to the configuration integrated approach based on distributed system.
Background technology
Due to the particularity based on browser program (serve end program logic operation is in server environment, and client-side program logic operation is in browser), therefore need to use for the programmed logic in different running environment the configuration file of different-format.Do like this information redundancy (because the configuration information that different running environment is used is the same) that not only can cause a large amount of identical configurations to set, meanwhile, also increased the complexity of configuration file maintenance work.
Summary of the invention
The technical problem solving: a kind of configuration integrated approach based on distributed system that can reduce identical configuration set information redundancy and simplify configuration file maintenance work is provided.
For realizing above goal of the invention, the invention provides following technical scheme: the configuration integrated approach based on distributed system, is characterized in that: its method comprises the following steps:
Step 1), client browser is by http agreement request path access Web server;
When step 2), web server response is asked at every turn, read the json format configuration file that leaves local disk in;
Step 3), Web server is read as bytes of stream data by configuration file, and character string byte stream is carried out to unserializing operation, then returns to client;
Step 4), the character string byte stream that client-side program returns to service end is loaded in internal memory for calling after converting the discernible entity object of client-side program to.
The technology of the present invention effect: contrast traditional configuration file processing mode, use this solution can make client-side program and the same physical configuration file of serve end program in different running environment, and identical profile information is converted to the entity object in different running environment.The present invention has reduced the redundancy of set information and the complexity of configuration file maintenance work.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the configuration integrated approach of the embodiment of the present invention based on distributed system.
Embodiment
Below in conjunction with accompanying drawing, further illustrate the specific embodiment of the invention.
With reference to figure 1, the configuration integrated approach based on distributed system, is characterized in that: its method comprises the following steps:
Step 1), client browser is by http agreement request path access Web server;
When step 2), web server response is asked at every turn, read the json format configuration file that leaves local disk in;
Step 3), Web server is read as bytes of stream data by configuration file, and character string byte stream is carried out to unserializing operation, then returns to client;
Step 4), the character string byte stream that client-side program returns to service end by javascript language eval () method is loaded in internal memory for calling after converting the discernible entity object of client-side program to.
Further, configuration file structure is as follows:
1) code sample:
Technical solution of the present invention has solved and in different running environment, has configured the inconsistent problem of style form, in service end running environment, general that use is a kind of service end language (as: C#, java, php etc.), the configuration file format that different language is used be also not quite similar (as: * .config, * .xml etc.).In client running environment (browser), by application examples, as JavaScript, by its abundant function library, identify several data form (as: xml, json etc.).
Because the actual physical location of two kinds of running environment is different, therefore, the physical file that must guarantee actual access in two running environment must be a file.The present invention is converted to Document type data the entity object of different running environment.
Configuration file format of the present invention: adopt body of an instrument part type, use json data format.Configuration file stores position: configuration file leaves service end in, can conduct interviews by http agreement.Serve end program is read as character string by configuration file, character string byte stream is carried out to unserializing operation, then after re-creating this object instance, be loaded into internal memory, the method that different service end system platforms is used is also not quite similar, but its central principle is that byte stream is carried out to unserializing operation, to re-create this object instance, be loaded into internal memory after being then translated into the discernible object of service end language.
Claims (1)
1. the configuration integrated approach based on distributed system, is characterized in that: its method comprises the following steps:
Step 1), client browser is by http agreement request path access Web server;
When step 2), web server response is asked at every turn, read the json format configuration file that leaves local disk in;
Step 3), Web server is read as bytes of stream data by configuration file, and character string byte stream is carried out to unserializing operation, then returns to client;
Step 4), the character string byte stream that client-side program returns to service end is loaded in internal memory for calling after converting the discernible entity object of client-side program to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410301034.4A CN104168306A (en) | 2014-06-26 | 2014-06-26 | Configuration integration method based on distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410301034.4A CN104168306A (en) | 2014-06-26 | 2014-06-26 | Configuration integration method based on distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104168306A true CN104168306A (en) | 2014-11-26 |
Family
ID=51911928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410301034.4A Pending CN104168306A (en) | 2014-06-26 | 2014-06-26 | Configuration integration method based on distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104168306A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101213A (en) * | 2016-06-08 | 2016-11-09 | 四川新环佳科技发展有限公司 | Information-distribution type storage method |
CN107615260A (en) * | 2015-10-22 | 2018-01-19 | 甲骨文国际公司 | System and method for providing distributed cache in transaction processing environment |
CN109408035A (en) * | 2018-09-05 | 2019-03-01 | 平安科技(深圳)有限公司 | A kind of process configuration method, storage medium and the server of operation system |
CN109522044A (en) * | 2018-10-31 | 2019-03-26 | 深圳市汇川技术股份有限公司 | Motion control card configuration file generation method, equipment and computer-readable memory |
CN109582350A (en) * | 2018-12-24 | 2019-04-05 | 广东金赋科技股份有限公司 | The method of configuration file in automated maintenance self-help tax service terminal |
CN110162441A (en) * | 2019-04-16 | 2019-08-23 | 平安普惠企业管理有限公司 | Centralized monitoring method and device, electronic equipment, the storage medium of application system |
CN111092947A (en) * | 2019-12-19 | 2020-05-01 | 北京金山云网络技术有限公司 | Data transmission method, client, intermediate server, node and electronic equipment |
CN112445674A (en) * | 2019-08-30 | 2021-03-05 | 中国石油化工股份有限公司 | Data processing method and storage medium of computer cluster |
CN116679889A (en) * | 2023-07-31 | 2023-09-01 | 苏州浪潮智能科技有限公司 | Method and device for determining RAID equipment configuration information and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852209A (en) * | 2006-05-31 | 2006-10-25 | 北京和利时系统工程股份有限公司 | Remote process transfering method and system in distribution type control system |
CN101083684A (en) * | 2007-07-24 | 2007-12-05 | 华为技术有限公司 | Communication apparatus batch configuration managerial approach and apparatus |
CN101771681A (en) * | 2008-12-30 | 2010-07-07 | 北大方正集团有限公司 | Page display control method, server and system |
CN101963944A (en) * | 2010-09-30 | 2011-02-02 | 用友软件股份有限公司 | Object storage method and system |
EP2658216A1 (en) * | 2012-04-27 | 2013-10-30 | Yamaha Corporation | Facilitating sharing of setting data in binary format for electronic device |
CN103412742A (en) * | 2013-07-01 | 2013-11-27 | 深圳Tcl新技术有限公司 | Method and device for application program to be configured with UI |
-
2014
- 2014-06-26 CN CN201410301034.4A patent/CN104168306A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852209A (en) * | 2006-05-31 | 2006-10-25 | 北京和利时系统工程股份有限公司 | Remote process transfering method and system in distribution type control system |
CN101083684A (en) * | 2007-07-24 | 2007-12-05 | 华为技术有限公司 | Communication apparatus batch configuration managerial approach and apparatus |
CN101771681A (en) * | 2008-12-30 | 2010-07-07 | 北大方正集团有限公司 | Page display control method, server and system |
CN101963944A (en) * | 2010-09-30 | 2011-02-02 | 用友软件股份有限公司 | Object storage method and system |
EP2658216A1 (en) * | 2012-04-27 | 2013-10-30 | Yamaha Corporation | Facilitating sharing of setting data in binary format for electronic device |
CN103412742A (en) * | 2013-07-01 | 2013-11-27 | 深圳Tcl新技术有限公司 | Method and device for application program to be configured with UI |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107615260B (en) * | 2015-10-22 | 2021-05-07 | 甲骨文国际公司 | System and method for providing distributed caching in a transactional processing environment |
CN107615260A (en) * | 2015-10-22 | 2018-01-19 | 甲骨文国际公司 | System and method for providing distributed cache in transaction processing environment |
CN106101213A (en) * | 2016-06-08 | 2016-11-09 | 四川新环佳科技发展有限公司 | Information-distribution type storage method |
CN109408035A (en) * | 2018-09-05 | 2019-03-01 | 平安科技(深圳)有限公司 | A kind of process configuration method, storage medium and the server of operation system |
CN109522044B (en) * | 2018-10-31 | 2022-04-19 | 深圳市汇川技术股份有限公司 | Motion control card configuration file generation method and device and computer readable memory |
CN109522044A (en) * | 2018-10-31 | 2019-03-26 | 深圳市汇川技术股份有限公司 | Motion control card configuration file generation method, equipment and computer-readable memory |
CN109582350A (en) * | 2018-12-24 | 2019-04-05 | 广东金赋科技股份有限公司 | The method of configuration file in automated maintenance self-help tax service terminal |
CN109582350B (en) * | 2018-12-24 | 2022-06-28 | 广东金赋科技股份有限公司 | Method for automatically maintaining configuration file in self-service tax terminal |
CN110162441A (en) * | 2019-04-16 | 2019-08-23 | 平安普惠企业管理有限公司 | Centralized monitoring method and device, electronic equipment, the storage medium of application system |
CN112445674A (en) * | 2019-08-30 | 2021-03-05 | 中国石油化工股份有限公司 | Data processing method and storage medium of computer cluster |
CN111092947A (en) * | 2019-12-19 | 2020-05-01 | 北京金山云网络技术有限公司 | Data transmission method, client, intermediate server, node and electronic equipment |
CN111092947B (en) * | 2019-12-19 | 2022-05-10 | 北京金山云网络技术有限公司 | Data transmission method, client, intermediate server, node and electronic equipment |
CN116679889A (en) * | 2023-07-31 | 2023-09-01 | 苏州浪潮智能科技有限公司 | Method and device for determining RAID equipment configuration information and storage medium |
CN116679889B (en) * | 2023-07-31 | 2023-11-03 | 苏州浪潮智能科技有限公司 | Method and device for determining RAID equipment configuration information and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104168306A (en) | Configuration integration method based on distributed system | |
Brown et al. | Implementation patterns for microservices architectures | |
US20190073430A1 (en) | Systems and methods for dynamic c# serialization | |
US20170192979A1 (en) | Methods and apparatuses for accessing cloud storage service by using traditional file system interface | |
US10754869B2 (en) | Managing data format of data received from devices in an internet of things network | |
US20150178292A1 (en) | Methods and systems for data serialization and deserialization | |
US10043220B2 (en) | Method, device and storage medium for data processing | |
US10193997B2 (en) | Encoded URI references in restful requests to facilitate proxy aggregation | |
US10397051B1 (en) | Configuration and testing of network-based service platform resources using a service platform specific language | |
US20160021209A1 (en) | Odata offline cache for mobile device | |
CN103488732A (en) | Generation method and device of static pages | |
US11553023B2 (en) | Abstraction layer for streaming data sources | |
WO2019153492A1 (en) | Method for realizing web and native function interaction, and electronic apparatus and readable storage medium | |
US20180102997A1 (en) | Payload description for computer messaging | |
CN104243610A (en) | Distributed file transmission service method | |
CN110020343B (en) | Method and device for determining webpage coding format | |
CN106570151A (en) | Data collection processing method and system for mass files | |
CN109460389A (en) | A kind of log recording method based on openresty | |
WO2015196899A1 (en) | Method and device for realizing ip disk file storage | |
CN106570152B (en) | Mass extraction method and system for mobile phone numbers | |
JP5535184B2 (en) | Browser execution script conversion system and browser execution script conversion program | |
US9201838B2 (en) | Systems and methods for the efficient exchange of hierarchical data | |
US20160196125A1 (en) | Application providing method, application providing server, and recording medium | |
US20150067473A1 (en) | Web application framework | |
WO2017028721A1 (en) | Data update method and device in distributed file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141126 |