CN102184105A - Data processing method based on modularity and data center system - Google Patents
Data processing method based on modularity and data center system Download PDFInfo
- Publication number
- CN102184105A CN102184105A CN2011101247296A CN201110124729A CN102184105A CN 102184105 A CN102184105 A CN 102184105A CN 2011101247296 A CN2011101247296 A CN 2011101247296A CN 201110124729 A CN201110124729 A CN 201110124729A CN 102184105 A CN102184105 A CN 102184105A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- module
- layer module
- entity
- 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
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention provides a data processing method based on modularity and a data center system. The method comprises the following steps: acquiring a data entity from a data entity layer module by an object packaging layer module and packaging the data entity into a data object; abstracting the data object into a data interface by a data object interface layer module; packaging the data interface into a data service component by a service component packaging layer module; and establishing an API (application program interface) for the data service component by a service component API layer module. By using the method, the data entity is converted into the data service component, thereby reducing the degree of coupling the data entity with the application and increasing the expandability. Besides, by using the open data service component, more operators can participate in the operation of developing various data service components, so as to derive various service types and overcome the defect of monotonous service. Compared with the data entity, the data service component is more easily realized and called, thereby increasing the calling efficiency.
Description
Technical field
The present invention relates to a kind of data processing method and data center systems, belong to technical field of data processing based on modularity.
Background technology
Data center is meant the server that stores mass data, and existing data center only preserves data entity, thereby has following technological deficiency:
1, the developer need set up data model earlier and directly transfer data entity then from data center when carrying out the software programming exploitation, this mode makes that the degree of coupling of data entity in the data center and application is too high, application change causes data model to change thereupon, and extendability is poor;
2, existing data center is open inadequately, only by file transfer protocol (FTP) (File Transfer Protocol, be called for short: FTP) etc. mode is for developer's development data entity, and the business personnel does not often possess the ability of utilizing the data entity Application and Development, causes professional dull;
3, data entity to call efficient lower, for example, when a plurality of concurrent call request required to call same data entity in the data center simultaneously, these call request can only serial be carried out the calling of this data entity, and have therefore influenced and have called efficient.
Summary of the invention
The invention provides a kind of data processing method and data center systems based on modularity, make data center open more, more possess extendability, to call efficient higher.
One aspect of the present invention provides a kind of data processing method based on modularity, comprising:
Data object encapsulated layer module is obtained data entity from the physical layer data module, and described data entity is encapsulated as data object;
Data object interface layer module is abstracted into data-interface with described data object;
Serviced component encapsulated layer module is packaged into the data, services assembly with described data-interface;
Serviced component api layer module is described data, services building component API.
The present invention provides a kind of data center systems based on modularity on the other hand, comprising:
The physical layer data module is used to preserve data entity;
Data object encapsulated layer module comprises:
Acquiring unit is used for obtaining data entity from the physical layer data module;
Encapsulation unit is used for the described data entity that acquiring unit obtains is encapsulated as data object;
Data object interface layer module is used for the described data object that data object encapsulated layer module package forms is abstracted into data-interface;
Serviced component encapsulated layer module, the described data-interface that data object interface layer module abstracts is gone out is packaged into the data, services assembly;
Serviced component api layer module, the described data, services building component API that is used to serviced component encapsulated layer module package to become.
The present invention is converted to the data, services assembly with data entity, has reduced the degree of coupling of data entity and application, thereby has improved extensibility; And by open data, services assembly, more business personnel can participate in developing various data, services assembly, so that derive various forms of COS, has overcome the defective of professional dullness; In addition, the data, services assembly is compared with data entity, is easy to realize parallel calling, calls efficient thereby improved.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of the data processing method embodiment based on modularity of the present invention;
Fig. 2 is the structural representation of the data center systems embodiment based on modularity of the present invention;
Fig. 3 is the inner structure synoptic diagram of data object encapsulated layer module 12 in the system shown in Figure 2.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
As shown in Figure 1, the described data processing method based on modularity of present embodiment comprises the steps:
Wherein, described physical layer data module mainly is made of customer data base, is used for the store data entity.Because the form of the data entity of depositing in the different user data storehouse there are differences, therefore, before carrying out subsequent treatment, can also start adaption function by data object encapsulated layer module.
Particularly, the configuration file of a plurality of customer data bases in the loading data physical layer module has at first been put down in writing the configuration information of data entity in this configuration file, as: minimum linking number, maximum number of connections, dish out unusual preceding maximum latency, metadata type etc.; Then, the described data entity that will obtain from a plurality of customer data bases the described physical layer data module according to described configuration file is adapted for unified format, shield the format differences of the data entity the different user data storehouse from face, allowed multiple customer data base to insert.
Table 1
Data type | Data length | Whether be major key | Whether be external key | |
User ID | Integer | 10 | Be | Be |
Address name | Character type | 10 | Not | Not |
Age | Character type | 1 | Not | Not |
Sex | Character type | 2 | Not | Not |
The address | Character type | 30 | Not | Not |
Phone | Character type | 20 | Not | Not |
Wherein, described data entity for example is a tables of data shown in the above-mentioned table 1.Concrete encapsulation process is the data, services object-oriented framework that adopts in the JAVA language, and above-mentioned tables of data is write becomes simple Java object (Plain Old Java Objects, abbreviation: the POJO) data layout of class.
Wherein, described data-interface is that data object interface layer module is the interface that external call defines, and the specific implementation of interface is invisible from the outside.Particularly, can adopt the JAVA language with the abstract data-interface of described data object definition becoming.
Alternatively, described data-interface can be divided into two classes, that is: user object local interface (IuserObjectLocal) and user object remote interface (IuserObjectRemote), realize that respectively the local and remote of object call, thereby being become, object strides Java Virtual Machine (Java Virtual Machine, be called for short: JVM) and the object of striding physical node, the other machine of far-end also can pass through user object remote interface access object, the cross-platform access problem thereby solution is known clearly.
Wherein, described data, services assembly is compared with data object, more can allow the business personnel understand; And these data, services assemblies all are open, and the developer can utilize public data, services object-oriented framework storehouse and data, services object flow engine, constructs different types of data, services assembly.
Particularly, can adopt enterprise Java beans (Enterprise JavaBean, be called for short: the entity bean EJB) (Bean) load mechanism is set up described data, services assembly, wherein, JavaBean is the reusable assembly that a kind of JAVA language is write as, and in fact this data, services assembly is exactly the specific implementation of data-interface.
Wherein, API is some predefined functions, and it has shielded the technology realization, and the style with the interfaceization represents to business personnel and INTERFACE DESIGN personnel fully, makes the business personnel can utilize described data, services assembly to organize the business of oneself under the interface of oneself.The business personnel just can utilize different data, services assemblies to work out out miscellaneous service as long as pull under graphic interface; And can also select the terminal ways of presentation of adaptation service by this step, for example: little (widget) show or mode such as IE displaying, but make business personnel's independent development go out business based on the different terminals ways of presentation.
The described method of present embodiment is converted to the data, services assembly with data entity, has reduced the degree of coupling of data entity and application, thereby has improved extensibility; And by open data, services assembly, more business personnel can participate in developing various data, services assembly, so that derive various forms of COS, has overcome the defective of professional dullness; In addition, the data, services assembly is compared with data entity, is easy to realize parallel calling, calls efficient thereby improved.
Fig. 2 is the structural representation of the data center systems embodiment based on modularity of the present invention, as shown in the figure, this system comprises: physical layer data module 11, data object encapsulated layer module 12, data object interface layer module 13, serviced component encapsulated layer module 14 and serviced component api layer module 15, and its principle of work is as follows:
Preserve data entity in the described physical layer data module 11, particularly, this physical layer data module 11 mainly is made of customer data base, is used for the store data entity.As shown in Figure 3, data object encapsulated layer module 12 is obtained data entity by acquiring unit 1201 from physical layer data module 11; By encapsulation unit 1202 the described data entity that acquiring unit 1201 obtains is encapsulated as data object then, concrete method for packing reaches for example can be referring to the related content of said method embodiment.
In addition, in order to shield the format differences of the data entity in the different user data storehouse, this data object encapsulated layer module 12 can also further load the configuration file of a plurality of customer data bases in the described physical layer data module 11 by adaptation unit 1203, and the described data entity that a plurality of customer data bases of acquiring unit 1201 from described physical layer data module 11 obtain is adapted for unified format according to described configuration file, insert to allow multiple customer data base.
After this, data object interface layer module 13 is abstracted into data-interface with the described data object that 12 encapsulation of data object encapsulated layer module form, this data-interface can comprise user object local interface and user object remote interface, calls so that realize the local and remote of object respectively.
After this, serviced component encapsulated layer module 14 is packaged into the data, services assembly with the described data-interface that data object interface layer module 13 takes out; The described data, services building component API that is packaged into for serviced component encapsulated layer module 14 by serviced component api layer module 15 then, this API can adopt little to show or mode such as IE displaying.
The described system of present embodiment is converted to the data, services assembly with data entity, has reduced the degree of coupling of data entity and application, thereby has improved extensibility; And by open data, services assembly, more business personnel can participate in developing various data, services assembly, so that derive various forms of COS, has overcome the defective of professional dullness; In addition, the data, services assembly is compared with data entity, is easy to realize parallel calling, calls efficient thereby improved.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (7)
1. the data processing method based on modularity is characterized in that, comprising:
Data object encapsulated layer module is obtained data entity from the physical layer data module, and described data entity is encapsulated as data object;
Data object interface layer module is abstracted into data-interface with described data object;
Serviced component encapsulated layer module is packaged into the data, services assembly with described data-interface;
Serviced component api layer module is described data, services building component API.
2. method according to claim 1 is characterized in that, described data object encapsulated layer module also comprises after the physical layer data module is obtained data entity:
Load the configuration file of a plurality of customer data bases in the described physical layer data module;
The described data entity that will obtain from a plurality of customer data bases the described physical layer data module according to described configuration file is adapted for unified format.
3. method according to claim 2, it is characterized in that data object interface layer module is abstracted into data-interface with described data object and comprises: described data object interface layer module is abstracted into user object local interface and user object remote interface with described data object.
4. the data center systems based on modularity is characterized in that, comprising:
The physical layer data module is used to preserve data entity;
Data object encapsulated layer module comprises:
Acquiring unit is used for obtaining data entity from the physical layer data module;
Encapsulation unit is used for the described data entity that acquiring unit obtains is encapsulated as data object;
Data object interface layer module is used for the described data object that data object encapsulated layer module package forms is abstracted into data-interface;
Serviced component encapsulated layer module, the described data-interface that data object interface layer module abstracts is gone out is packaged into the data, services assembly;
Serviced component api layer module, the described data, services building component API that is used to serviced component encapsulated layer module package to become.
5. system according to claim 4 is characterized in that, described data-interface comprises: user object local interface and user object remote interface.
6. system according to claim 4 is characterized in that, described API adopts little exhibition method or IE exhibition method.
7. system according to claim 4, it is characterized in that, described data object encapsulated layer module also comprises: adaptation unit, be used for loading the configuration file of a plurality of customer data bases of described physical layer data module, and the described data entity that a plurality of customer data bases of acquiring unit from described physical layer data module obtain be adapted for unified format according to described configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101247296A CN102184105A (en) | 2011-05-13 | 2011-05-13 | Data processing method based on modularity and data center system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101247296A CN102184105A (en) | 2011-05-13 | 2011-05-13 | Data processing method based on modularity and data center system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102184105A true CN102184105A (en) | 2011-09-14 |
Family
ID=44570286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101247296A Pending CN102184105A (en) | 2011-05-13 | 2011-05-13 | Data processing method based on modularity and data center system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102184105A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103778212A (en) * | 2014-01-16 | 2014-05-07 | 国网山东省电力公司青岛供电公司 | Data node-based parallel massive data processing method |
CN104850661A (en) * | 2015-06-08 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Embedded equipment database packaging framework and implementation method |
CN105677347A (en) * | 2016-01-05 | 2016-06-15 | 浪潮通用软件有限公司 | Method and device for processing data |
CN106227523A (en) * | 2016-07-18 | 2016-12-14 | 浪潮通用软件有限公司 | A kind of general JavaScript data source component |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
US20100185669A1 (en) * | 2009-01-09 | 2010-07-22 | Microsoft Corporation | Efficient incremental parsing of context sensitive programming languages |
-
2011
- 2011-05-13 CN CN2011101247296A patent/CN102184105A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
US20100185669A1 (en) * | 2009-01-09 | 2010-07-22 | Microsoft Corporation | Efficient incremental parsing of context sensitive programming languages |
Non-Patent Citations (3)
Title |
---|
《计算机工程与设计》 20070228 刘阳等 基于J2EE考试系统的设计与实现 第990-993页 1-7 第28卷, 第4期 * |
刘阳等: "基于J2EE考试系统的设计与实现", 《计算机工程与设计》 * |
杨兴春等: "基于轻量级J2EE构架的高校教务管理系统的设计与实现", 《计算机应用系统》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103778212A (en) * | 2014-01-16 | 2014-05-07 | 国网山东省电力公司青岛供电公司 | Data node-based parallel massive data processing method |
CN104850661A (en) * | 2015-06-08 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Embedded equipment database packaging framework and implementation method |
CN105677347A (en) * | 2016-01-05 | 2016-06-15 | 浪潮通用软件有限公司 | Method and device for processing data |
CN106227523A (en) * | 2016-07-18 | 2016-12-14 | 浪潮通用软件有限公司 | A kind of general JavaScript data source component |
CN106227523B (en) * | 2016-07-18 | 2019-03-08 | 浪潮通用软件有限公司 | A kind of general JavaScript data source component |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8996714B2 (en) | State-dependent entity based implementation of a service oriented architected application | |
CN107147704A (en) | A kind of generic service middleware system towards block chain | |
TW202016815A (en) | Method, apparatus and system for executing block chain transaction in parallelized manner | |
CN104267972B (en) | Browser local interface extended method and device | |
CN108459962A (en) | Code specification detection method, device, terminal device and storage medium | |
CN109669709A (en) | A kind of data migration method and data mover system of the upgrading of block chain | |
CN103150154B (en) | The implementation method and device of a kind of application plug | |
CN110908707B (en) | Resource packaging method, device, server and storage medium | |
CN112560114B (en) | Method and device for calling intelligent contract | |
CN110750530B (en) | Service system and data checking method thereof | |
CN112463211A (en) | System architecture transformation method compatible with multiple development architectures and system architecture | |
CN110244990A (en) | Application component call method, device, electronic equipment and storage medium | |
CN111767499A (en) | Page configuration method and device | |
CN102193806B (en) | Upgrade the method and apparatus of animation | |
CN102184105A (en) | Data processing method based on modularity and data center system | |
CN106648569A (en) | Target serialization achieving method and device | |
CN107205015A (en) | The implementation method and device of open interface | |
CN111159040A (en) | Test data generation method, device, equipment and storage medium | |
CN104054308B (en) | Application layer resources selection method, device and system | |
CN110580212B (en) | Data export method and device of application program, electronic equipment and storage medium | |
CN109656536B (en) | Push module modularization method and client | |
CN115328458B (en) | Business application development method and device | |
CN110673827A (en) | Resource calling method and device based on android system and electronic equipment | |
CN105893039A (en) | Universal method for achieving simple database by compiling entity class characteristics | |
CN114756207A (en) | Business system development method, PaaS platform and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110914 |