CN108932121B - Multi-tenant distributed service component research and development oriented module and method - Google Patents

Multi-tenant distributed service component research and development oriented module and method Download PDF

Info

Publication number
CN108932121B
CN108932121B CN201810493873.9A CN201810493873A CN108932121B CN 108932121 B CN108932121 B CN 108932121B CN 201810493873 A CN201810493873 A CN 201810493873A CN 108932121 B CN108932121 B CN 108932121B
Authority
CN
China
Prior art keywords
isc
tenant
data model
data
information
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.)
Expired - Fee Related
Application number
CN201810493873.9A
Other languages
Chinese (zh)
Other versions
CN108932121A (en
Inventor
张小东
马映辉
初佃辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Intelligent Commercial System Co ltd
Harbin Institute of Technology Weihai
Original Assignee
Qingdao Hisense Intelligent Commercial System Co ltd
Harbin Institute of Technology Weihai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Intelligent Commercial System Co ltd, Harbin Institute of Technology Weihai filed Critical Qingdao Hisense Intelligent Commercial System Co ltd
Priority to CN201810493873.9A priority Critical patent/CN108932121B/en
Publication of CN108932121A publication Critical patent/CN108932121A/en
Application granted granted Critical
Publication of CN108932121B publication Critical patent/CN108932121B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a module and a method for multi-tenant distributed service component research and development, which are used for simulating a multi-tenant distributed data environment in a development environment and helping software research and development personnel to design and research and develop a multi-tenant-based distributed service component. The display form of the system is a plug-in, the system can be installed in eclipse and Intellij IDEA environments, functions of three aspects of multi-tenant configuration, data model operation (including configuration and creation) and data model operation rule configuration are provided, software research and development and operation and maintenance are separated, and maintenance workload of software research and development personnel after software is online is reduced. Therefore, the present invention has utility.

Description

Multi-tenant distributed service component research and development oriented module and method
Technical Field
The invention relates to a module and a method for multi-tenant distributed service component research and development, and belongs to the technical field of distributed service software research and development.
Background
The software application technology based on multiple tenants provides the most powerful support for the SaaS mode in cloud computing, the same software deployed in a cloud environment can serve different users, the on-demand service is achieved, meanwhile, the computing resources are saved, the operation and maintenance cost of a software system is reduced, and therefore wide acceptance and use are achieved. However, the software supporting multi-tenancy is built on a distributed software framework, which requires a software developer to be familiar with the distributed computing technology and use the technology to develop and test the software, but the configuration of the distributed environment at a development end is relatively complex and difficult to operate, and is prone to errors, so that in most cases, the developed software can only find defects and vulnerabilities in the distributed computing technology in a running environment. Therefore, after the software is completed, software developers are required to continue to cooperate with operation and maintenance personnel of the software platform to deploy the developed software, and a database meeting the requirements of multiple tenants is established according to the actual operating environment. In subsequent operations, software developers still need to provide continuous technical support for operation and maintenance personnel. Thereby consuming a portion of the cost and resources saved by the SaaS model.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a module for research and development of a multi-tenant distributed service component;
the invention also provides a multi-tenant distributed service component oriented research and development method.
The method is displayed in a plug-in mode, is installed in the research and development environment of developers, helps software research and development personnel research and develop the multi-tenant-based distributed service component, separates research and development from operation and maintenance, reduces the burden of the developers in subsequent operation and maintenance, and reduces the research and development and operation and maintenance costs.
Interpretation of terms:
1. the Internet Service Center (iSC) is a basic organization unit of the application software of the present invention, and each iSC corresponds to a database Schema (Schema).
2. The organization (Group), also called tenant, is the largest logical organization unit of the application software and the data model processed by the application software in the invention.
3. The organization and iSC information acquisition interface mtgroupinformat is used to acquire the organization and iSC basic information methods (such as organization name, organization ID, organization name), allowing access to both internal and external programs of the system.
4. Data operation interface MTDataOperation, a method for obtaining iSC data information, allowing other functions or programs to access.
The technical scheme of the invention is as follows:
a module for Multi-Tenant distributed service component research and development comprises a Multi-Tenant Configuration (Multi-Tenant Configuration) unit, a Data Model Configuration (Data Model Configuration) unit and a Data Operation Rule Configuration (Data Operation Rule) unit;
the multi-tenant configuration unit is used for: setting a project path, organizing and setting tenant information, configuring database connection and creating an iSC Schema;
the data model configuration unit is used for configuring, creating and operating a data model;
the data operation rule configuration unit is used for defining operation rules of data models in different iSC.
According to the invention, preferably, the setting of the project path means that the storage directory of the setting parameter and the configuration information file is placed under the home path of the corresponding project;
the largest set of data that a software developer can operate on is divided in units of organizations. An organization may contain several tenant applications and data. Because the virtual organization is used for testing the availability of the multi-tenant service software, the number of the organization information is only required to be a logical area capable of distinguishing the data sets. The organization setting means setting organization ID, organization name and organization code;
the tenant is a virtual internet service center designed for simulating a cloud environment, so the tenant information setting refers to setting of iSC ID and iSC name by taking a logic area capable of distinguishing iSC data sets as a standard;
database connectivity configuration Each iSC configures the manner in which the database is connected. The configuration at the development end is typically a unified database for testing multiple data operations at iSC. The database connection configuration refers to configuration information host (host) address, Port number (Port), database name, login user name, login password, URL, and database driver.
According to the invention, the creation of the data model comprises defining data model basic information and data model attributes; the basic information of the data model comprises a model name and a model type, and the attributes of the data model comprise a field name, a type, a length, a default value, a self-increment length, whether a primary key value is adopted or not and an index.
Defining basic information of the data model, namely writing service component ID, service component name, model creation time, developer name, data model number, data model version number and release flag bit in an annotation form;
defining a data model refers to defining the attributes and constraint relations of the data model, including table name, field type, length, primary key, and foreign key.
In accordance with a preferred aspect of the present invention,
although the invention does not modify the standard SQL statement, it is necessary to determine which data model or models in iSC are operated on and how the same SQL statement is used for distributed computation. The invention supports the pre-defined operation rules of developers, so that the design and development contents of multiple tenants do not need to be considered too much when the software is designed and developed, the same SQL statement is automatically operated on data models in different iSC by the plug-in according to the preset rules, and the running environment of SaaS is simulated, so that the developers can verify the correctness of the developed software in the multiple tenants.
Defining operation rules for data models in different iSC, comprising the steps of:
a. specifying the iSC Schema and the operation rules: b, appointing the iSC Schema established by the data model and how to operate (namely operating rules), entering the step b, otherwise, establishing the data model in all the iSC Schema, and entering the step c;
b. automatically eliminating iSC Schema established by an unspecified data model;
c. calling organization and iSC information acquisition interface MTGroupInformation to acquire tenant information, writing statements of data operation, transmitting the statements together with the tenant information into data operation interface MTDataOperation, and operating the corresponding data model iSC by the data operation interface MTDataOperation, wherein the tenant information comprises tenant ID, name, iSID and iSC name.
A method for developing a multi-tenant distributed service component is used for applying a module developed by the multi-tenant distributed service component to a corresponding development environment, and comprises the following steps:
A. installing the module for developing the multi-tenant distributed service component;
B. a multi-tenant configuration;
C. configuring, creating and operating a data model;
D. and configuring data operation rules.
Preferably, the step a of installing the module developed for the multi-tenant distributed service component includes the following steps:
(1) opening program editing software Intellij IDEA or eclipse;
(2) finding out environment settings, and selecting Plugins to configure Plugins;
(3) importing the module for developing the multi-tenant distributed service component;
(4) the program editing software is restarted.
Preferably, in step B, the multi-tenant configuration includes:
(5) setting a project path: placing the storage directories of the setting parameters and the configuration information files under the home path of the corresponding project;
(6) organization and setting: setting organization ID, organization name and organization code;
(7) iSC information sets: set iSC ID and iSC name;
(8) database connection configuration: configuring information host (host) address, Port number (Port), database name, login user name, login password, URL and database drive;
(9) an iSC Schema is created.
According to a preferred embodiment of the present invention, the step C, configuring, creating and operating the data model, includes:
(10) data model information configuration: adding table names and attributes, and specifying an iSC server database for creating a data model;
(11) data model creation: adding a data table, inputting a data table name, selecting iSC related to the data table, acquiring configured iSC according to set tenant information, confirming after selection, and finishing creation;
(12) selecting the created data model, setting fields and storing;
(13) the SQL statement is generated, and the identification information of the SQL statement is filled, including the service component Name (App Name), the Developer Name (Developer), the data model number (appmodel no), the data model version (HH Ver), and the release flag (Developing, 0 by default, i.e., not released). The data version is used to identify whether the data model changes in the multi-tenant distributed runtime environment.
According to a preferred embodiment of the present invention, the step D of configuring the data operation rule includes:
(14) specifying the iSC Schema and the operation rules: appointing an iSC Schema and operation rules established by the data model, wherein the operation rules comprise a data table, a field and iSC corresponding to the operation, entering the step (15), otherwise, establishing the data model in all the iSC Schema, and entering the step (16);
(15) automatically eliminating iSC Schema established by an unspecified data model;
(16) calling organization and iSC information acquisition interface MTGroupInformation to acquire tenant information, writing a statement of data operation, transmitting the statement together with the tenant information into data operation interface MTDataOperation, and operating the corresponding data model iSC by the data operation interface MTDataOperation.
The invention has the beneficial effects that:
1. the invention provides a method of a research and development end, which adopts a plug-in mode to display, allows a software developer to install the method in a development environment, provides a method and an interface for configuring and managing multiple tenants, reduces the development difficulty of designing and developing a distributed service component for multiple tenants by the software developer, and enables the software developer to concentrate on the research in the business field.
2. The invention can virtualize a multi-tenant data environment, so that research and development personnel can master the running condition of the researched and developed software in a distributed environment at any time, errors are reduced, the errors are found and corrected in time, and the heavy burden of the research and development personnel caused by later operation and maintenance is avoided.
3. The method can establish the operation rule of the multi-tenant data, help a software developer to perform tenant data isolation and multi-tenant data correlation operation, and simplify the design and research and development of the software developer on the multi-tenant distributed service software.
Drawings
FIG. 1 is a schematic diagram of an operation flow of a tenant configuration menu and project path settings;
FIG. 2 is a schematic diagram of organization and single tenant iSC setup;
FIG. 3 is a schematic diagram of an organization and multi-tenant iSC setup;
FIG. 4 is a schematic diagram of a database connection configuration;
FIG. 5 is a diagram iSC of a selection setup table;
FIG. 6 is a schematic diagram of creating a data model (data table);
FIG. 7 is a schematic diagram of data manipulation rule creation;
fig. 8 is a schematic diagram illustrating changes in data in the database after the program is executed.
Detailed Description
The invention is further described below by reference to the drawings and examples of embodiment of the specification, but is not limited thereto.
Example 1
A module for Multi-Tenant distributed service component research and development comprises a Multi-Tenant Configuration (Multi-Tenant Configuration) unit, a Data Model Configuration (Data Model Configuration) unit and a Data Operation Rule Configuration (Data Operation Rule) unit;
the multi-tenant configuration unit is used for: setting a project path, organizing and setting tenant information, configuring database connection and creating an iSC Schema;
the data model configuration unit is used for configuring, creating and operating a data model;
the data operation rule configuration unit is used for defining operation rules of data models in different iSC.
Setting a project path refers to placing a storage directory of setting parameters and configuration information files under a home path of a corresponding project;
the largest set of data that a software developer can operate on is divided in units of organizations. An organization may contain several tenant applications and data. Because the virtual organization is used for testing the availability of the multi-tenant service software, the number of the organization information is only required to be a logical area capable of distinguishing the data sets. The organization setting means setting organization ID, organization name and organization code;
the tenant is a virtual internet service center designed for simulating a cloud environment, so the tenant information setting refers to setting of iSC ID and iSC name by taking a logic area capable of distinguishing iSC data sets as a standard;
database connectivity configuration Each iSC configures the manner in which the database is connected. The configuration at the development end is typically a unified database for testing multiple data operations at iSC. The database connection configuration refers to configuration information host (host) address, Port number (Port), database name, login user name, login password, URL, and database driver.
The creation of the data model comprises defining basic information of the data model and attributes of the data model; the basic information of the data model comprises a model name and a model type, and the attributes of the data model comprise a field name, a type, a length, a default value, a self-increment length, whether a primary key value is adopted or not and an index.
Defining basic information of the data model, namely writing service component ID, service component name, model creation time, developer name, data model number, data model version number and release flag bit in an annotation form;
defining a data model refers to defining the attributes and constraint relations of the data model, including table name, field type, length, primary key, and foreign key.
Although the invention does not modify the standard SQL statement, it is necessary to determine which data model or models in iSC are operated on and how the same SQL statement is used for distributed computation. The invention supports the pre-defined operation rules of developers, so that the design and development contents of multiple tenants do not need to be considered too much when the software is designed and developed, the same SQL statement is automatically operated on data models in different iSC by the plug-in according to the preset rules, and the running environment of SaaS is simulated, so that the developers can verify the correctness of the developed software in the multiple tenants.
Defining operation rules for data models in different iSC, comprising the steps of:
a. specifying the iSC Schema and the operation rules: b, appointing the iSC Schema established by the data model and how to operate (namely operating rules), entering the step b, otherwise, establishing the data model in all the iSC Schema, and entering the step c;
b. automatically eliminating iSC Schema established by an unspecified data model;
c. calling organization and iSC information acquisition interface MTGroupInformation to acquire tenant information, writing statements of data operation, transmitting the statements together with the tenant information into data operation interface MTDataOperation, and operating the corresponding data model iSC by the data operation interface MTDataOperation, wherein the tenant information comprises tenant ID, name, iSID and iSC name.
Example 2
The invention discloses a multi-tenant distributed service component oriented research and development method.
The main parameters of the hardware configuration of the operating environment are as follows: intel (R) core (TM) i7-6500CPU @2.50GHz, memory 8.00GB and hard disk 256 GB.
The software environment is as follows: windows 764 bit operating system, mysql-5.6.28-winx 6-bit database, IntelliJ IDEA2017.2.4. The plug-in of the patent is MTDataEngine plug.jar 1.0.
Jar is a data operation dependency package provided by this embodiment.
The method comprises the following steps:
A. installation module for research and development of multi-tenant distributed service component
(1) Clicking File- > Settings in idea, selecting Plugins to configure the plug-in, and clicking 'Install plug-in from disk …' to obtain the plug-in File locally;
(2) selecting an MTDataEngine Plugin _ v1.0.jar file to load, seeing a 'Multi-Tenant Data Engine' plug-in a plug-in list after success, and checking a box on the right to show loading when starting;
(3) after clicking confirmation, the configuration of the plug-in is completed, the IntelliJ IDEA2017.2.4 prompts that the plug-in takes effect after restarting, and clicking to determine the restart IntelliJ IDEA2017.2.4;
(4) after restart, the 'Multi-Tenant DE' menu of the main menu bar of the compiler can be seen.
B. Multi-tenant configuration
(5) Setting a project path: clicking the main menu of 'Multi-Tenant DE', selecting 'Multi-Tenant Configuration', selecting a project work path, and clicking 'OK' to start Configuration after completion, as shown in figure 1.
(6) Organization and tenant information setting: the "Multi-Tenacy Configuration" Multi-tenant Configuration dialog, "Model selection" may select project mode, i.e., Multi-tenant mode or single-tenant mode, the default is Multi-tenant, and the organization (group) includes three tenants, i.e., three ISCs (Internet Service center). The ISCs may be configured in a number of 1-8 as shown in fig. 2 and 3. The organization information includes an organization id (Group id), an organization Name (Group Name), an organization Code (Group Code), and default values of "GID", "GName", and "GCode"; the ISC information comprises an ISC ID and an ISC name, the ISC can be selected from the list and modified, and the 'update' is clicked to store the modified information. The ISC ID has uniqueness. After the configuration is completed, a his.hit.xml file is generated, and the configuration information file organized and iSC is as follows:
Figure GDA0003279653190000071
(7) database connection configuration: the ISC configuration method comprises organization information and an ISC ID list, and ISC can be selected to carry out connection configuration by clicking the list. Each ISC corresponds to a Schema, and the name of the Schema is the ISC ID. The difference indicates that the connection has not been tested and is not available, as shown in fig. 4. And after the connection configuration of the database is completed, generating Schema in the corresponding database.
C. Data model configuration, creation, and operation
(8) Data model information configuration: click on the "Multi-Tenant DE" main menu, select "Data Model Configuration", and also select the working path (auto acquire). Clicking on the confirmation, and opening a data model configuration dialog box.
(9) Clicking the "Add" button to Add the data table, inputting the name of the data table, selecting the ISC associated with the data table, acquiring the configured ISC by the plug-in according to the multi-tenant configuration information, and confirming that the creation can be completed after the selection, as shown in FIG. 5.
(10) By selecting the created data model (data table), the setting of fields can be performed, and the number of the fields can be freely increased and decreased, as shown in fig. 6.
(11) Clicking 'Save' to store the data table information and storing the data table information into a 'Table.xml' file; and updating the "his. hit. xml" file, which is as follows:
Figure GDA0003279653190000072
Figure GDA0003279653190000081
(12) clicking "Create" saves the information while generating the SQL statement. Here, the Developer is required to fill some identification information about the plug-in SQL file, including a service component Name (App Name), a Developer Name (Developer), a data model number (appmodel no), a data model version (HH Ver), and a release flag bit (Developing, default is 0, i.e., not released). The data version is used to identify whether the data model changes in the multi-tenant distributed runtime environment.
D. Configuring data operation rules
(13) Click the main menu of 'Multi-Tenant DE', select 'Data Operation Rule', and also select the working path (automatic acquisition). Clicking the confirmation, and opening a data operation configuration dialog box.
(14) Click "Add operation, enter operation name.
(15) And selecting the created operation for configuration, wherein the content comprises a data table, a field and an ISC (the data table can only be selected first, and the plug-in obtains the optional ISC and the field according to the selected table, but cannot be null). The data manipulation method is "add", with a step size of 0.3. The following configuration represents: when data is inserted into the "TestTable 1" data table in the "iSCID 0" Schema, the "data" numeric type field "is increased by 0.3", as shown in fig. 7.
E. Interface usage for multi-tenant distributed service component development
(16) Importing a multi-tenant distributed service component development interface dependent package MTDataEngineDBOM. Clicking File- > Project Structure, selecting Modules and dependences tabs, clicking plus, selecting jar or directories, and selecting MTDataEngineDBOM. The method comprises three interfaces of data model definition (MTDataModels), data operation (MTDataoperation) and multi-tenant information (MTGroupInformation). The data model definition interface may create and delete data tables. The data operation interface can perform the operations of adding and deleting, modifying and checking the data. The multi-tenant information interface may obtain organization ID, organization name, organization code, iSC ID, iSC name, iSC number.
(17) According to the operation rules defined in the rules, the data operation rules are defined as follows:
Figure GDA0003279653190000082
Figure GDA0003279653190000091
writing a data operation program as follows:
Figure GDA0003279653190000092
after execution, the console inputs the execution information, and the results output by the console after program execution are as follows:
"C:\Program Files\Java\jdk1.8.0_92\bin\java"...
Thu May 03 11:33:45CST 2018WARN:Establishing SSL connection without server's identity verification is not recommended.According to MySQL 5.5.45+,5.6.26+and 5.7.6+requirements SSL connection must be established by default if explicit option isn't set.For compliance with existing applications not using SSL the verifyServerCertificate property is set to'false'.You need either to explicitly disable SSL by setting useSSL=false,or set useSSL=true and provide truststore for server certificate verification.
Thu May 03 11:33:46CST 2018WARN:Establishing SSL connection without server's identity verification is not recommended.According to MySQL 5.5.45+,5.6.26+and 5.7.6+requirements SSL connection must be established by default if explicit option isn't set.For compliance with existing applications not using SSL the verifyServerCertificate property is set to'false'.You need either to explicitly disable SSL by setting useSSL=false,or set useSSL=true and provide truststore for server certificate verification.
Update the data at`iSCID0`node is Succeed.
Update the data at`iSCID1`node is Succeed.
Process finished with exit code 0
the data insertion results are shown in FIG. 8.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by the present specification, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A module for research and development of a multi-tenant distributed service component is characterized by comprising a multi-tenant configuration unit, a data model configuration unit and a data operation rule configuration unit;
the multi-tenant configuration unit is used for: setting a project path, organizing and setting tenant information, configuring database connection and creating an iSC Schema;
the data model configuration unit is used for configuring, creating and operating a data model;
the data operation rule configuration unit is used for defining operation rules of data models in different iSC; the method comprises the following steps:
a. specifying the iSC Schema and the operation rules: b, appointing an iSC Schema established by the data model and how to operate, entering the step b, otherwise, establishing the data model in all the iSC Schema, and entering the step c;
b. automatically eliminating iSC Schema established by an unspecified data model;
c. calling organization and iSC information acquisition interface MTGroupInformation to acquire tenant information, writing statements of data operation, transmitting the statements together with the tenant information into data operation interface MTDataOperation, and operating the corresponding data model iSC by the data operation interface MTDataOperation, wherein the tenant information comprises tenant ID, name, iSID and iSC name.
2. The module of claim 1, wherein setting a project path refers to placing a storage directory for setting parameters and configuration information files under a home path of a corresponding project;
the organization setting means setting organization ID, organization name and organization code;
tenant information setting means setting an iSC ID and iSC name;
the database connection configuration refers to configuration information of host addresses, port numbers, database names, login user names, login passwords, URLs and database drivers.
3. The module for multi-tenant distributed service component development according to claim 1, wherein the creation of the data model includes defining basic information of the data model, attributes of the data model;
defining basic information of the data model, namely writing service component ID, service component name, model creation time, developer name, data model number, data model version number and release flag bit in an annotation form;
defining a data model refers to defining the attributes and constraint relations of the data model, including table name, field type, length, primary key, and foreign key.
4. A method for developing a multi-tenant distributed service component, wherein a module developed by the multi-tenant distributed service component according to any one of claims 1 to 3 is applied to a corresponding development environment, and the method comprises the following steps:
A. installing the module for developing the multi-tenant distributed service component;
B. a multi-tenant configuration;
C. configuring, creating and operating a data model;
D. and configuring data operation rules.
5. The method for developing a multi-tenant distributed service component according to claim 4, wherein the step a of installing the module developed for the multi-tenant distributed service component includes the following steps:
(1) opening program editing software Intellij IDEA or eclipse;
(2) finding out environment settings, and selecting Plugins to configure Plugins;
(3) importing the module for developing the multi-tenant distributed service component;
(4) the program editing software is restarted.
6. The method for developing a multi-tenant distributed service component according to claim 5, wherein the step B, multi-tenant configuration, includes:
(5) setting a project path: placing the storage directories of the setting parameters and the configuration information files under the home path of the corresponding project;
(6) organization and setting: setting organization ID, organization name and organization code;
(7) iSC information sets: set iSC ID and iSC name;
(8) database connection configuration: configuring information host address, port number, database name, login user name, login password, URL and database drive;
(9) an iSC Schema is created.
7. The method for developing a multi-tenant distributed service component according to claim 4, wherein the step C, data model configuration, creation and operation include:
(10) data model information configuration: adding table names and attributes, and specifying an iSC server database for creating a data model;
(11) data model creation: adding a data table, inputting a data table name, selecting iSC related to the data table, acquiring configured iSC according to set tenant information, confirming after selection, and finishing creation;
(12) selecting the created data model, setting fields and storing;
(13) generating SQL sentences, and filling identification information of the SQL sentences, wherein the identification information comprises service component names, developer names, data model numbers, data model versions and release flag bits.
8. The method for developing a multi-tenant distributed service component according to any one of claims 4 to 7, wherein the step D of configuring the data operation rule includes:
(14) specifying the iSC Schema and the operation rules: appointing an iSC Schema and operation rules established by the data model, wherein the operation rules comprise a data table, a field and iSC corresponding to the operation, entering the step (15), otherwise, establishing the data model in all the iSC Schema, and entering the step (16);
(15) automatically eliminating iSC Schema established by an unspecified data model;
(16) calling organization and iSC information acquisition interface MTGroupInformation to acquire tenant information, writing a statement of data operation, transmitting the statement together with the tenant information into data operation interface MTDataOperation, and operating the corresponding data model iSC by the data operation interface MTDataOperation.
CN201810493873.9A 2018-05-22 2018-05-22 Multi-tenant distributed service component research and development oriented module and method Expired - Fee Related CN108932121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810493873.9A CN108932121B (en) 2018-05-22 2018-05-22 Multi-tenant distributed service component research and development oriented module and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810493873.9A CN108932121B (en) 2018-05-22 2018-05-22 Multi-tenant distributed service component research and development oriented module and method

Publications (2)

Publication Number Publication Date
CN108932121A CN108932121A (en) 2018-12-04
CN108932121B true CN108932121B (en) 2021-12-07

Family

ID=64449184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810493873.9A Expired - Fee Related CN108932121B (en) 2018-05-22 2018-05-22 Multi-tenant distributed service component research and development oriented module and method

Country Status (1)

Country Link
CN (1) CN108932121B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825358B (en) * 2019-11-22 2023-07-21 广联达科技股份有限公司 Multi-level system configuration service design method based on preamble priority matching rule
CN116028938A (en) * 2021-10-27 2023-04-28 中移(苏州)软件技术有限公司 Method and device for providing security service, electronic equipment and computer storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154441A1 (en) * 2009-12-18 2011-06-23 Electronics And Telecommunications Research Institute Online development environment server, online marketplace server, online development environment constituting method, and developed application providing method
CN102708316B (en) * 2012-04-19 2015-04-08 北京华胜天成科技股份有限公司 Method for isolating data in multi-tenant architecture
CN102929628B (en) * 2012-10-31 2015-04-22 哈尔滨工业大学 Service framework supporting multi-internet service center construction and operation
WO2016065080A1 (en) * 2014-10-21 2016-04-28 Twilio, Inc. System and method for providing a miro-services communication platform
US20180027006A1 (en) * 2015-02-24 2018-01-25 Cloudlock, Inc. System and method for securing an enterprise computing environment
CN105915580A (en) * 2016-02-23 2016-08-31 上海电机学院 Information software leasing platform and realization method thereof
CN107896250A (en) * 2017-11-16 2018-04-10 优公里(北京)网络技术有限公司 A kind of method of the multi-tenant data dynamic migration based on SaaS
CN108055322B (en) * 2017-12-12 2020-12-25 青岛海石信息技术有限公司 Request message processing method and device

Also Published As

Publication number Publication date
CN108932121A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
US8150674B2 (en) Automated testing platform for event driven systems
US20180024814A1 (en) Automated enterprise software development
US9848277B2 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
US8839107B2 (en) Context based script generation
US11762717B2 (en) Automatically generating testing code for a software application
US8127268B2 (en) Server testing framework
US20140173454A1 (en) Method and system for designing, deploying and executing transactional multi-platform mobile applications
Winesett Agile web application development with Yii1. 1 and PHP5
Winesett Web Application development with Yii and PHP
US9003231B1 (en) System for instantiating service instances for testing in a known state
US10146674B2 (en) Plugin-based software verification system
EP3851955A1 (en) Systems and methods for software documentation and code generation management
CN108932121B (en) Multi-tenant distributed service component research and development oriented module and method
US10552591B2 (en) Resource optimization using data isolation to provide sand box capability
US20200097260A1 (en) Software application developer tools platform
Challita et al. Specifying semantic interoperability between heterogeneous cloud resources with the FCLOUDS formal language
Nate The Little ASP. NET Core book
CN113485927A (en) Test data generation method, device, equipment and storage medium
Hossain Web application development with Laravel framework
US20240160559A1 (en) Automated decoupling of unit tests
Wilczynski A data-driven approach to configure permanent tasks in LHCb Online farm
Panati Beginning KeystoneJSA practical introduction to KeystoneJS using a real-world project
TANTAMANGO EPICCONFIGURATOR COMPUTER CONFIGURATOR AND CMS PLATFORM
Dupupet Oracle data integrator 11g cookbook
CN118193301A (en) Case generation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211207

CF01 Termination of patent right due to non-payment of annual fee