CN108052640B - Linkage method and device for state information change - Google Patents

Linkage method and device for state information change Download PDF

Info

Publication number
CN108052640B
CN108052640B CN201711392715.6A CN201711392715A CN108052640B CN 108052640 B CN108052640 B CN 108052640B CN 201711392715 A CN201711392715 A CN 201711392715A CN 108052640 B CN108052640 B CN 108052640B
Authority
CN
China
Prior art keywords
state
domain
system element
target
target system
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.)
Active
Application number
CN201711392715.6A
Other languages
Chinese (zh)
Other versions
CN108052640A (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201711392715.6A priority Critical patent/CN108052640B/en
Publication of CN108052640A publication Critical patent/CN108052640A/en
Application granted granted Critical
Publication of CN108052640B publication Critical patent/CN108052640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a linkage method for state information change, which comprises the following steps: when the state information in the target state domain is changed, determining a target system element corresponding to the changed state information, judging whether a first state domain set corresponding to the target system element exists, wherein the first state domain set comprises at least one associated state domain, and when the first state domain set exists, correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set so as to realize linkage of the state information of the target system element. In the method, when the state information in the target state domain of the target system element is changed, the state information corresponding to the target system element stored in each associated state domain in the first state domain set is correspondingly changed, so that the problem that the information conflict among the state domains is caused by asynchronous state information updating and the normal operation of the information management system is influenced is avoided.

Description

Linkage method and device for state information change
Technical Field
The present invention relates to the field of state estimation, and in particular, to a method and a system for linking state changes.
Background
With the development of information technology, the complexity of an information management system is higher and higher, and generally, the information management system is divided into a plurality of different state domains for managing the state information of each system element in the information management system.
Each system element in the information management system may correspond to a plurality of different state domains, and the state information in each state domain may be different. For example: the hotel management system can comprise a sales domain and a check-in domain, wherein the sales domain represents whether hotel rooms are reserved or not, the check-in domain represents the check-in condition of the hotel rooms, front service personnel need to check the state information of each room in the sales domain to manage the reservation condition of the hotel rooms, and back service personnel need to check the state information of each room in the check-in domain to correspondingly clean the hotel rooms. Each room in the hotel corresponds to the sales status information in the sales domain and also corresponds to the check-in status information in the check-in domain. When the state in the sales domain corresponding to a certain room changes, the check-in state corresponding to the check-in domain also needs to be adaptively changed.
The inventor finds that, in the existing information management system, when the state information of a system element in a certain state domain changes, the state information corresponding to elements in other state domains is not modified in time, so that other state domains still operate according to the original state information of the element, information conflicts among the state domains are caused, and the normal operation of the information management system is influenced.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a linkage method for state information change, which can avoid information conflict among various state domains and ensure the normal operation of an information management system.
The invention also provides a linkage device for state information change, which is used for ensuring the realization and the application of the method in practice.
A linkage method for state information change comprises the following steps:
when the state information existing in any one state domain is changed, taking the state domain as a target state domain, and determining a target system element corresponding to the changed state information in the target state domain;
judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
and if the state information exists, correspondingly changing the state information corresponding to the target system element stored in each associated state field in the first state field set according to the changed state information corresponding to the target system element in the target state field, so as to realize linkage of the state information of the target system element.
Optionally, the determining a target system element corresponding to the changed state information in the target state domain includes:
acquiring an information identifier corresponding to the changed state information in the target state domain;
analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
and determining the target system element corresponding to the changed state information according to the preset corresponding relation.
Optionally, the determining whether the first state domain set corresponding to the target system element exists includes:
searching all association state domains which have association relation with the target system element in a pre-established association relation comparison table;
judging whether the currently searched associated state domain is the target state domain;
when not, it is determined that there is a first set of state domains corresponding to the target system element.
Optionally, in the method, the correspondingly changing, according to the changed state information corresponding to the target system element in the target state domain, the state information corresponding to the target system element stored in each associated state domain in the first state domain set includes:
determining the association degree between the state information corresponding to the target system element stored in each association state domain and the changed state information;
and updating the state information corresponding to the target system element stored in the association state domain with the association degree exceeding a preset threshold value according to the changed state information corresponding to the target system element in the target state domain.
The above method, optionally, further includes:
and when a system newly added state domain is detected, updating the association relation comparison table.
The above method, optionally, further includes:
and broadcasting the linkage process of the target system element state information.
A linkage system for status information change, comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for taking any state domain as a target state domain when the state information in the state domain is changed, and determining a target system element corresponding to the changed state information in the target state domain;
a determining module, configured to determine whether a first state domain set corresponding to the target system element exists, where the first state domain set includes at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
and the linkage module is used for correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set according to the changed state information corresponding to the target system element in the target state domain to realize linkage of the state information of the target system element when the linkage module exists.
The above system, optionally, the determining module includes:
an obtaining unit, configured to obtain an information identifier corresponding to state information that is changed in the target state domain;
the analysis unit is used for analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
and the determining unit is used for determining the target system element corresponding to the changed state information according to the preset corresponding relation.
A storage medium, comprising a stored program, wherein a device in which the storage medium is located is controlled to execute the above-described linkage method of changing the state information when the program runs.
An electronic device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors to perform the above-mentioned linkage method of status information change.
Compared with the prior art, the invention has the following advantages:
the invention provides a linkage method for state information change, which comprises the following steps: when the state information in the target state domain is changed, determining a target system element corresponding to the changed state information, judging whether a first state domain set corresponding to the target system element exists, wherein the first state domain set comprises at least one associated state domain, and when the first state domain set exists, correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set so as to realize linkage of the state information of the target system element. The problem that the normal operation of the information management system is influenced due to information conflict among the state domains caused by asynchronous update of the state information is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a method for linking status information changes according to the present invention;
FIG. 2 is a flowchart of another method for linking status information changes according to the present invention;
FIG. 3 is a flowchart of another method for linking status information changes according to the present invention;
FIG. 4 is a flowchart of another method for linking status information changes according to the present invention;
FIG. 5 is a schematic structural diagram of a linkage system for status information change according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a linkage method of state information, which is applied to an information management system, wherein the information management system can manage operation of information management systems such as a production state information management system, a big data and room state information management system, a hotel information management system and the like, an execution main body of the method can be a processor of a computer or a terminal in the information management system, and a flow of the linkage method of the state information, which is executed by the processor and provided by the invention, is shown in fig. 1 and comprises the following steps:
s101, when state information existing in any one state domain is changed, taking the state domain as a target state domain, and determining a target system element corresponding to the changed state information in the target state domain;
in the embodiment of the present invention, when state information existing in any one state domain is changed, the state domain is used as a target state domain, a system element corresponding to the changed state information is searched, and the system element is used as a target system element, where the state domain may be a processing branch of the information management system, and includes a state of all or part of the system elements in the information management system under the processing branch. One or more pieces of state information to be changed may be used, and the processing method is the same for each piece of state information.
S102, judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
in the embodiment of the invention, the target system element is analyzed, the association state domain which has association relation with the target system element is searched, and when the association state domain exists, the set formed by the association state domains is used as a first state domain set. Wherein the associated state field contains state information corresponding to the target system element.
S103, when the state information exists, correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set according to the changed state information corresponding to the target system element in the target state domain set so as to realize linkage of the state information of the target system element.
In the embodiment of the present invention, state information corresponding to the target system element in each associated state domain in the first state domain set is searched for and updated correspondingly according to the changed state information corresponding to the target system element in the target state domain. And achieving synchronous linkage of the state change of the target system element.
The invention provides a linkage method for state information change, which comprises the following steps: when the state information in the target state domain is changed, determining a target system element corresponding to the changed state information, judging whether a first state domain set corresponding to the target system element exists, wherein the first state domain set comprises at least one associated state domain, and when the first state domain set exists, correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set so as to realize linkage of the state information of the target system element. The problem that the normal operation of the information management system is influenced due to information conflict among the state domains caused by asynchronous update of the state information is solved.
In the embodiment of the present invention, taking the target system element as an example, if the number of the existing status fields in the information management system is a, the number of the corresponding status information of the target system element is B, where a and B are any integers, a and B may be the same or different, and a is greater than or equal to B.
In the embodiment of the present invention, when the linkage process of the state information change is completed, the linkage process of the target system element state information needs to be broadcasted, and the linkage process notification of the target system element state information is given to other processing units associated with the information management system. Preferably, the broadcast is sent out in the form of a Rabbitmq queue broadcast.
In the embodiment of the present invention, the target state domain and the associated state domain are corresponding, and for the same system element, if four state domains a, b, c, and d exist, when a is the target state domain, b, c, and d are associated state domains, and if b is the target state domain, a, c, and d are associated state domains.
In this embodiment of the present invention, a flow of the method for determining the target system element corresponding to the changed state information in the target state domain is shown in fig. 2, and includes the steps of:
s201, acquiring an information identifier corresponding to the changed state information in the target state domain;
in the embodiment of the present invention, the information identifier is used to distinguish different system elements, and the information identifier may be a name and a number of a system element or an arbitrary information identifier that can distinguish different system elements.
S202, analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
in the embodiment of the present invention, the information identifier includes a preset corresponding relationship of the system element corresponding to the information identifier, and the preset corresponding relationship refers to that the corresponding system element can be determined according to the information identifier. Taking the Room status information management as an example, the information identifier may be Room211, and then the system element corresponding to the information identifier is Room 211.
S203, determining the target system element corresponding to the changed state information according to the preset corresponding relation.
In the embodiment of the invention, the preset corresponding relation is analyzed, and the target system element corresponding to the changed state information is determined
In the embodiment of the present invention, according to the preset corresponding relationship, determining a target system element corresponding to the changed state information, and determining whether a first state domain set corresponding to the target system element exists, where the method flow is shown in fig. 3, and includes steps of;
s301, searching all association state domains which have association relation with the target system element in a pre-established association relation comparison table;
in the embodiment of the present invention, each system element and the association status field having an association relation with the system element are stored in the pre-established association relation comparison table, and the pre-established association relation comparison table may be stored in a database. The number of the associated state fields is at least one. The search principle may be: according to the names of the system elements, respectively searching all the association state domains of the names of the target system elements in the association relation in the pre-established association relation comparison table
S302, judging whether the currently searched associated state domain is the target state domain;
in the embodiment of the invention, the previously searched associated state domain is compared with the target state domain to judge whether the two are the same, preferably, whether the names of the two are the same.
S303, when not, determining that a first state domain set corresponding to the target system element exists.
In the embodiment of the invention, each associated state domain meeting the condition is taken as a first state domain.
In the embodiment of the invention, when a newly added state domain of the system is detected, an association relation is established for each system element of the newly added state domain in the association relation comparison table, and the association relation comparison table is updated.
In this embodiment of the present invention, a flow of a method for correspondingly changing state information corresponding to a target system element stored in each associated state domain in a first state domain set according to changed state information corresponding to the target system element in the target state domain is shown in fig. 4, and includes:
s401, determining the association degree between the state information corresponding to the target system element stored in each association state domain and the changed state information;
in the embodiment of the present invention, there is a correlation between the state information corresponding to the target system element stored in each correlation state domain and the changed state information, where the correlation represents a degree of correlation between the two state information, and the higher the degree of correlation is, the higher the possibility that the state domain information corresponding to the correlation state domain is linked is, and the determination of the correlation may be determined according to an empirical value or an actual situation.
S402, updating the state information corresponding to the target system element stored in the association state domain with the association degree exceeding the preset threshold value according to the changed state information corresponding to the target system element in the target state domain.
In the embodiment of the present invention, the selection of the preset threshold may be an empirical value or determined according to an actual situation, and only the corresponding state in the association state domain with the association degree exceeding the threshold is changed.
In the embodiment of the present invention, the changed state information corresponding to the target system element in the target state domain is associated with the state corresponding to each associated state domain in the first associated state domain in advance, and taking a target state domain and an associated state domain as an example, for example, if the changed state information corresponding to the target system element in the target state domain is M, the state information corresponding to the associated state domain is M1; if the changed state information corresponding to the target system element in the target state domain is N, the state information corresponding to the associated state domain is N1, and the situations of the plurality of associated domains are similar and will not be described herein again.
In the embodiment of the present invention, a room state information management system is taken as an example to describe the linkage method of state information change, and in the embodiment of the present invention, a room state information management system is taken as an example to describe, and the room state refers to the state or state of a room, and may be check-in, check-out, room change, unsold, maintenance, and the like. The system element is a room, and if the room state information management system comprises: a repair domain, a sales domain, and a check-in domain. In the initial state, the corresponding sales domain is empty normal or saleable, the corresponding check-in domain is waiting for check-in or empty normal, the sales system changes the room state after a certain room is sold into the sold state in the sales domain, and the linkage resident check-in domain is changed into waiting for check-in. At this time, the room is seen in the room state diagram as a waiting state in the residential area. After the resident management system receives the check-in notice, the room state is changed from the room state of waiting for check-in to the room state of already checked-in, the current room is inquired in the room state to be checked-in the resident domain, and the linkage sales domain is sold. When the room state of the residential area is changed from the entered state to the recovered state after the residents quit, the room state of the linked sales area is changed from sold state to saleable state. In the above-described procedure, there is no problem concerning maintenance, and even if the maintenance area includes the status information of the room, the maintenance area belongs to the associated status area, but the maintenance area is not updated because of low association.
And when the room is sold in the sales area, setting the room state linkage event of the sold event as a room state circulation event to be entered in the residential area. At the moment, after the room state flow of the sales domain is converted, the system can automatically change the room state linkage of the residential domain and send out Rabbitmq broadcasting, when the room is returned in the residential domain, the room state linkage event of the return event is set to be the sold room state flow event of the sales domain, and at the moment, after the room state flow of the residential domain, the system can automatically change the room state linkage of the sales domain and send out Rabbitmq broadcasting.
In the embodiment of the invention, other units associated with the room state information management system can receive the room state linkage change and send out Rabbitmq broadcast, and can also provide other units with support service through a data interface.
Various room state information in the room state information management system is stored by adopting a database, wherein a table 1-a room table, a table 2-an anterior chamber state table, a table 3-a historical room state table, a table 4-a room state dictionary table and a table 5 product-attribute item association table are as follows:
Figure BDA0001517867760000091
Figure BDA0001517867760000101
TABLE 1
Contained in table 1 are parameter items of basic information corresponding to each room in the room status management system.
Name of field Description of the invention Type of field Whether or not to make a key Whether or not it can empty Remarks for note
id Id varchar(36) Y N
room_id Room id varchar(36) N Y
status_id House status id varchar(36) N Y
sysresourc_id Source of system varchar(100) N Y
create_by_time Creation time datetime N Y
TABLE 2
Table 2 contains parameter items of current anterior chamber state information of each room of the room state management system.
Figure BDA0001517867760000102
Figure BDA0001517867760000111
TABLE 3
Table 3 includes parameter items of historical room status information of each room of the room status management system.
Figure BDA0001517867760000112
TABLE 4
Table 4 includes parameter items of the room-state dictionary of the room-state management system.
Figure BDA0001517867760000113
Figure BDA0001517867760000121
TABLE 5
Table 5 includes parameter items of the product-attribute item association table in the room state management system.
And monitoring the state of each room in the room state information management system and managing the parameter items according to the corresponding parameter items in the tables 1 to 5.
In the embodiment of the present invention, each room state domain in the room state information management system builds a Cloud service platform based on Spring Cloud, and the Spring Cloud framework includes components: eureka, Ribbon and Hystrix.
Where ureka is a RESTful service that locates middle tier services running in the AWS area. It is composed of two components, the Eureka Server and the Eureka Client. The Eureka Server functions as a service registration Server. The Eureka Client is a Java Client that simplifies interaction with servers, acts as a polling load balancer, and provides failover support for services.
Ribbon, mainly provides a software load balancing algorithm at a client side. The Ribbon client component provides a sophisticated set of configuration options such as connection timeouts, retries, retry algorithms, etc. Ribbon embeds pluggable, customizable load balancing components. The following are some load balancing strategies used: simple polling load balancing, weighted response time load balancing, area-aware polling load balancing and random load balancing.
The following functions are also included in Ribbon: easy integration with service discovery components (such as Netflix Eureka), use Archaius to complete runtime configuration, use JMX to expose operation and maintenance metrics, use Servo publishing and a variety of pluggable serialization choices.
Hystrix: the fuse is a facility capable of automatically fusing (opening a switch) when the remote service is unavailable and automatically recovering (closing the switch) when the remote service is recovered, and the Spring Cloud provides functions of a breaker, resource isolation and self-repairing through a Hystrix component of Netflix. In a distributed environment, some service failures can be avoided, Hystrix provides a delay and fault tolerance function, isolates remote systems, access points and access points of a third-party program library, prevents cascading failures, and ensures that a complex distributed system still has elasticity when facing inevitable failures. The fuse has the following functions: the system has the capabilities of preventing cascade faults, quick failure and quick recovery in a distributed system, a backspacing mechanism and elegant degradation, and provides near-real-time monitoring, early warning and operation control capabilities for services.
In correspondence to the above linkage method of the state information change, the present invention also provides a linkage system of the state information change, the system having a structure as shown in fig. 5, and including:
a determining module 501, a judging module 502 and a linkage module 503.
Wherein,
the determining module 501 is configured to, when state information existing in any one state domain is changed, use the state domain as a target state domain, and determine a target system element corresponding to the changed state information in the target state domain;
the determining module 502 is configured to determine whether a first state domain set corresponding to the target system element exists, where the first state domain set includes at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
the linkage module 503 is configured to, when the target system element exists, correspondingly change the state information corresponding to the target system element stored in each associated state domain in the first state domain set according to the changed state information corresponding to the target system element in the target state domain, so as to implement linkage of the state information of the target system element.
The invention provides a linkage system for state information change, which comprises: when the state information in the target state domain is changed, determining a target system element corresponding to the changed state information, and judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain. In the system, when the state information in the target state domain of the target system element is changed, the state information corresponding to the target system element stored in each associated state domain in the first state domain set is correspondingly changed, so that the problem that the information conflict among the state domains is caused due to asynchronous state information updating and the normal operation of the information management system is influenced is avoided.
In this embodiment of the present invention, the structure of the determining module 501 is shown in fig. 6, and includes:
an acquisition unit 504, a parsing unit 505 and a determination unit 506.
Wherein,
the obtaining unit 504 is configured to obtain an information identifier corresponding to the changed state information in the target state domain;
the analyzing unit 505 is configured to analyze a preset corresponding relationship included in the information identifier, where the preset corresponding relationship is a corresponding relationship between the information identifier and a corresponding system element;
the determining unit 506 is configured to determine, according to the preset corresponding relationship, a target system element corresponding to the changed state information.
The embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, where the linkage method is configured to control, when the program runs, an apparatus where the storage medium is located to execute the state information change, where the linkage method specifically includes:
when the state information existing in any one state domain is changed, taking the state domain as a target state domain, and determining a target system element corresponding to the changed state information in the target state domain;
judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
and if the state information exists, correspondingly changing the state information corresponding to the target system element stored in each associated state field in the first state field set according to the changed state information corresponding to the target system element in the target state field, so as to realize linkage of the state information of the target system element.
Optionally, the determining a target system element corresponding to the changed state information in the target state domain includes:
acquiring an information identifier corresponding to the changed state information in the target state domain;
analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
and determining the target system element corresponding to the changed state information according to the preset corresponding relation.
Optionally, the determining whether the first state domain set corresponding to the target system element exists includes:
searching all association state domains which have association relation with the target system element in a pre-established association relation comparison table;
judging whether the currently searched associated state domain is the target state domain;
when not, it is determined that there is a first set of state domains corresponding to the target system element.
Optionally, in the method, the correspondingly changing, according to the changed state information corresponding to the target system element in the target state domain, the state information corresponding to the target system element stored in each associated state domain in the first state domain set includes:
determining the association degree between the state information corresponding to the target system element stored in each association state domain and the changed state information;
and updating the state information corresponding to the target system element stored in the association state domain with the association degree exceeding a preset threshold value according to the changed state information corresponding to the target system element in the target state domain.
The above method, optionally, further includes:
and when a system newly added state domain is detected, updating the association relation comparison table.
The above method, optionally, further includes:
and broadcasting the linkage process of the target system element state information.
An electronic device is provided in an embodiment of the present invention, and the structural diagram thereof is shown in fig. 6, which specifically includes a memory 601, and one or more programs 602, where the one or more programs 602 are stored in the memory 601, and the one or more programs 602 executed by the one or more processors 603 include instructions for:
when the state information existing in any one state domain is changed, taking the state domain as a target state domain, and determining a target system element corresponding to the changed state information in the target state domain;
judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
and if the state information exists, correspondingly changing the state information corresponding to the target system element stored in each associated state field in the first state field set according to the changed state information corresponding to the target system element in the target state field, so as to realize linkage of the state information of the target system element.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above detailed description is provided for the linkage method and system for changing state information, and the specific examples are applied herein to explain the principle and implementation of the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A linkage method for state information change is characterized by comprising the following steps:
when the state information existing in any one state domain is changed, taking the state domain as a target state domain, and determining a target system element corresponding to the changed state information in the target state domain;
judging whether a first state domain set corresponding to the target system element exists or not, wherein the first state domain set comprises at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the target state domain is not included in the first set of state domains;
when the state information exists, the state information corresponding to the target system element stored in each associated state domain in the first state domain set is correspondingly changed according to the changed state information corresponding to the target system element in the target state domain, so that the linkage of the state information of the target system element is realized;
wherein the determining whether the first set of state domains corresponding to the target system element exists comprises:
searching all association state domains having association relations with the target system element in a pre-established association relation comparison table, wherein each system element and the association state domain having association relations with the system element are stored in the pre-established association relation comparison table;
judging whether the currently searched associated state domain is the target state domain;
and if not, determining that a first state domain set corresponding to the target system element exists, and taking each associated state domain meeting the condition as a first state domain.
2. The method of claim 1, wherein the determining the target system element corresponding to the changed state information in the target state domain comprises:
acquiring an information identifier corresponding to the changed state information in the target state domain;
analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
and determining the target system element corresponding to the changed state information according to the preset corresponding relation.
3. The method according to claim 1, wherein correspondingly changing the state information corresponding to the target system element stored in each associated state field of the first state field set according to the changed state information corresponding to the target system element in the target state field comprises:
determining the association degree between the state information corresponding to the target system element stored in each association state domain and the changed state information;
and updating the state information corresponding to the target system element stored in the association state domain with the association degree exceeding a preset threshold value according to the changed state information corresponding to the target system element in the target state domain.
4. The method of claim 1, further comprising:
and when a system newly added state domain is detected, updating the association relation comparison table.
5. The method of claim 1, further comprising:
and broadcasting the linkage process of the target system element state information.
6. A linkage system for status information change, comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for taking any state domain as a target state domain when the state information in the state domain is changed, and determining a target system element corresponding to the changed state information in the target state domain;
a determining module, configured to determine whether a first state domain set corresponding to the target system element exists, where the first state domain set includes at least one associated state domain, and each associated state domain stores state information corresponding to the target system element in the associated state domain; the determining, by the determining module, whether a first state domain set corresponding to the target system element exists specifically includes: searching all association state domains having association relations with the target system element in a pre-established association relation comparison table, wherein each system element and the association state domain having association relations with the system element are stored in the pre-established association relation comparison table; judging whether the currently searched associated state domain is the target state domain; if not, determining that a first state domain set corresponding to the target system element exists, and taking each associated state domain meeting the condition as a first state domain;
and the linkage module is used for correspondingly changing the state information corresponding to the target system element stored in each associated state domain in the first state domain set according to the changed state information corresponding to the target system element in the target state domain to realize linkage of the state information of the target system element when the linkage module exists.
7. The system of claim 6, wherein the determining module comprises:
an obtaining unit, configured to obtain an information identifier corresponding to state information that is changed in the target state domain;
the analysis unit is used for analyzing a preset corresponding relation contained in the information identifier, wherein the preset corresponding relation is the corresponding relation between the information identifier and a system element corresponding to the information identifier;
and the determining unit is used for determining the target system element corresponding to the changed state information according to the preset corresponding relation.
8. A storage medium comprising a stored program, wherein a device on which the storage medium is located is controlled to execute the linkage method of changing the state information according to any one of claims 1 to 5 when the program runs.
9. An electronic device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors to perform the method of linking status information changes according to any one of claims 1 to 5.
CN201711392715.6A 2017-12-21 2017-12-21 Linkage method and device for state information change Active CN108052640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711392715.6A CN108052640B (en) 2017-12-21 2017-12-21 Linkage method and device for state information change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711392715.6A CN108052640B (en) 2017-12-21 2017-12-21 Linkage method and device for state information change

Publications (2)

Publication Number Publication Date
CN108052640A CN108052640A (en) 2018-05-18
CN108052640B true CN108052640B (en) 2020-07-31

Family

ID=62131189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711392715.6A Active CN108052640B (en) 2017-12-21 2017-12-21 Linkage method and device for state information change

Country Status (1)

Country Link
CN (1) CN108052640B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379430B (en) * 2018-11-30 2021-01-08 四川芯波智创物联技术有限公司 'Internet of things +' industry ecosphere sharing and sharing platform
CN109819055B (en) * 2019-03-15 2020-07-07 四川虹微技术有限公司 Method for realizing load balance by simultaneously supporting Ribbon and Eureka
CN110532274B (en) * 2019-09-05 2022-02-08 恒生电子股份有限公司 Configuration linkage method and device
CN115146156B (en) * 2022-06-28 2023-08-15 北京百度网讯科技有限公司 Point-of-interest behavior linkage adjustment method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404627A (en) * 2008-11-13 2009-04-08 腾讯科技(深圳)有限公司 Instant communication system and method for updating contact information
CN101490667A (en) * 2006-07-18 2009-07-22 三星电子株式会社 System and method for managing domain-state information
CN101697642A (en) * 2009-10-27 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Method, system and server for updating PTT service states
CN106559264A (en) * 2016-11-15 2017-04-05 上海斐讯数据通信技术有限公司 A kind of loading display method and system of topological view

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150142675A1 (en) * 2013-11-20 2015-05-21 Guardian Consumer Services, Inc. Electronic process validation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101490667A (en) * 2006-07-18 2009-07-22 三星电子株式会社 System and method for managing domain-state information
CN101404627A (en) * 2008-11-13 2009-04-08 腾讯科技(深圳)有限公司 Instant communication system and method for updating contact information
CN101697642A (en) * 2009-10-27 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Method, system and server for updating PTT service states
CN106559264A (en) * 2016-11-15 2017-04-05 上海斐讯数据通信技术有限公司 A kind of loading display method and system of topological view

Also Published As

Publication number Publication date
CN108052640A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108052640B (en) Linkage method and device for state information change
WO2017140131A1 (en) Data writing and reading method and apparatus, and cloud storage system
US10379838B1 (en) Update and rollback of code and API versions
Gill et al. RADAR: Self‐configuring and self‐healing in resource management for enhancing quality of cloud services
US8832130B2 (en) System and method for implementing on demand cloud database
CN105573824B (en) Monitoring method and system for distributed computing system
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
CN106059825A (en) Distributed system and configuration method
US10313215B2 (en) Monitoring of computer network resources having service level objectives
US20140280766A1 (en) Method and System for Event State Management in Stream Processing
EP3239840B1 (en) Fault information provision server and fault information provision method
US9176798B2 (en) Computer-readable recording medium, failure prediction device and applicability determination method
US10725763B1 (en) Update and rollback of configurations in a cloud-based architecture
CN112162821B (en) Container cluster resource monitoring method, device and system
CN105069152B (en) data processing method and device
KR20200078328A (en) Systems and methods of monitoring software application processes
CN110955723A (en) Master-slave database synchronization state monitoring method and device and electronic equipment
CN114130035A (en) User matching method, device, equipment and storage medium
US10116522B2 (en) Utilizing social media for information technology capacity planning
CN116992982A (en) Model deployment method, device, system, electronic equipment and storage medium
US11714699B2 (en) In-app failure intelligent data collection and analysis
US9288177B2 (en) Inventory updating of an internet protocol (IP) alias within a highly available computing cluster
Stack et al. Self-healing in a decentralised cloud management system
EP3506099A1 (en) Alive management program, alive management method, and alive management device
CN114090201A (en) Resource scheduling method, device, 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