Summary of the invention
The embodiment of the invention is to provide a kind of facility information linkage processing method and device, and it is easier that equipment linkage is handled.
A kind of facility information linkage processing method comprises:
The facility information of each equipment in the acquisition system;
According to mapping table and the policy library that said facility information inquiry is provided with in advance, obtain the linkage strategy information of equipment;
Judge whether the said linkage strategy information that receives has the action that will carry out,, carry out said linkage strategy information if there is action to carry out.
More excellent, also comprise:
Judge whether the linkage strategy information that is stored in the tactful pond surpasses preset number, if surpass, the linkage strategy information of all waits in the tactful pond is classified, and the startup process is carried out simultaneous operation to sorted linkage strategy information.
More excellent, also comprise obtaining the said mapping table that is provided with in advance and the step of policy library, be specially:
Read the configuration registry file;
Generate mapping table and policy library according to said configuration registry file.
More excellent, also comprise:
Whether have new equipment get into, if having, upgrade said configuration registry file again if detecting.
More excellent, said mapping table and the policy library that is provided with in advance according to said facility information inquiry obtains the linkage strategy information of equipment, is specially:
Comprise facility information and linkage strategy sign indicating number in the said mapping table, wherein, said facility information comprises device type, device address information and functions of the equipments sign indicating number; At least two functions of the equipments sign indicating numbers of a device address information correspondence; Can confirm concrete device object through device type and device address information; And can confirm a linkage strategy sign indicating number through device type and functions of the equipments sign indicating number; According to said linkage strategy sign indicating number query strategy storehouse, obtain linkage strategy information again.A kind of facility information interlock processing unit comprises:
Collecting unit is used for the facility information of each equipment in the acquisition system, according to mapping table and the policy library that said facility information inquiry is provided with in advance, obtains the linkage strategy information of equipment;
Centralized unit is connected with said collecting unit, is used to judge whether the said linkage strategy information that receives has the action that will carry out, if there is action to carry out, sends and carries out message;
Processing unit is connected with said centralized unit, is used to receive said execution message, carries out said linkage strategy information.
More excellent, also comprise:
The transfer unit that is connected with said centralized unit;
Said centralized unit is used for also judging whether the linkage strategy information that is stored in tactful pond surpasses preset number, if surpass, notifies said transfer unit starting;
Said transfer unit is used for the linkage strategy information of said all waits of tactful pond is classified, and the startup process is carried out simultaneous operation to sorted linkage strategy information.
More excellent, also comprise:
Initialization unit is used to read the configuration registry file, generates mapping table and policy library according to this configuration registry file.
More excellent, also comprise:
Detecting unit is connected with said initialization unit, and whether be used for detecting has new equipment to get into, if there is new equipment to get into, upgrades the configuration registry file.
More excellent, said collecting unit is used for also whether new data is arranged in the detection system.
Embodiment of the present invention embodiment; Efficiently solve facility information interlock difficult treatment; Reduced monitoring work of maintenance personnel intensity, device management server performance loss and period of reservation of number, and solved under the big situation of data volume, processing speed still fast.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.
See also a kind of facility information linkage processing method schematic flow sheet of the embodiment of the invention shown in Fig. 1, comprising:
Step S101: the facility information of each equipment in the acquisition system.
Particularly, facility information comprises device type, device address information and functions of the equipments sign indicating number.Because the communication protocol that each equipment adopts is of all kinds, then the data structure of each equipment of obtaining of collecting unit is also different.For example, A device address information is in first byte of A device data section in the system, and B device address information is in the 3rd byte of B device data section, and preceding two bytes of B device data section are synchronizing informations.Collecting unit extracts facility information from the data structure of each equipment, has then solved the problem of the interlock difficult treatment that causes because each equipment employing agreement is different.
Step S102:, obtain the linkage strategy information of this equipment according to mapping table and the policy library that this facility information inquiry is provided with in advance.
Concrete; Comprise facility information (facility information comprises device type, device address information, functions of the equipments sign indicating number etc.) and linkage strategy sign indicating number in the preset mapping table, at least two functions of the equipments sign indicating numbers of a device address information correspondence can be confirmed concrete device object through device type and device address information; Equally; Can confirm a linkage strategy sign indicating number through device type and functions of the equipments sign indicating number, again according to linkage strategy sign indicating number query strategy storehouse, wherein in policy library; A linkage strategy sign indicating number and a linkage strategy information are one-to-one relationship, so can obtain linkage strategy information through the linkage strategy sign indicating number.Whether detection system in have new data, if having, repeat above step if continuing then.
Step S103: judge whether the linkage strategy information that receives has the action that will carry out,, carry out this linkage strategy information if there is action to carry out.
Concrete, linkage strategy information generally comprises action execution information and information is carried out in non-action, and action execution information is generally control or calls, and non-action execution information is generally notice or state information.
Embodiment of the present invention embodiment; Efficiently solve facility information interlock difficult treatment; Reduced monitoring work of maintenance personnel intensity, device management server performance loss and period of reservation of number, and solved under the big situation of data volume, processing speed still fast.
Below in conjunction with the schematic flow sheet of another embodiment of a kind of facility information linkage processing method of the present invention shown in Fig. 2, a kind of facility information linkage processing method of the further explain embodiment of the invention comprises:
Step S201: read the configuration registry file.
Concrete, this configuration registry file comprises system configuration item title, logical relation, parameter threshold values, associated configuration item, major parameter, entry-into-force time, influence area system etc.
Step S202: generate mapping table and policy library according to this configuration registry file.
Comprise facility information and linkage strategy sign indicating number in the mapping table, comprise linkage strategy sign indicating number and linkage strategy information in the policy library.
Step S203: start thread.
Step S204: whether the equipment in the collecting unit detection system has new data to produce, and has then to get into step S205; Otherwise get into step S211.
Step S205: the facility information of each equipment in the collecting unit acquisition system.
Particularly, facility information comprises this device type, device address information and functions of the equipments sign indicating number etc.Because the communication protocol that each equipment adopts is of all kinds, then the data structure of each equipment of obtaining of collecting unit is also different.For example, A device address information is in first byte of A device data section in the system, and B device address information is in the 3rd byte of B device data section, and preceding two bytes of B device data section are synchronizing informations.Collecting unit extracts facility information from the data structure of each equipment, has then solved the problem of the interlock difficult treatment that causes because each equipment employing agreement is different.
Step S206: collecting unit obtains the linkage strategy information of this equipment according to this facility information query mappings table and policy library.
Concrete; Comprise facility information (facility information comprises device type, device address information, functions of the equipments sign indicating number etc.) and linkage strategy sign indicating number in the mapping table, at least two functions of the equipments sign indicating numbers of a device address information correspondence can be confirmed concrete device object through device type and device address information; Equally; Can confirm a linkage strategy sign indicating number through device type and functions of the equipments sign indicating number, according to linkage strategy sign indicating number query strategy storehouse, obtain linkage strategy information again.
Step S207: centralized unit judges that whether the linkage strategy information that receives has the action that will carry out, has then to get into step S208; Otherwise get into step S209.
Concrete, linkage strategy information generally comprises action execution information and information is carried out in non-action, and action execution information is generally control or calls, and non-action execution information is generally notice or state information.
Step S208: processing unit is carried out linkage strategy information.
Concrete, receive linkage strategy information, and carry out the action of this linkage strategy information of corresponding device.
Step S209: centralized unit judges that whether the linkage strategy information that is stored in the tactful pond surpasses preset number, if surpass, gets into step S210; Otherwise get into step S211.
Concrete, collecting unit can be opened up one section buffer memory after obtaining linkage strategy information, and in this section buffer memory, this section buffer memory is tactful pond with the linkage strategy information stores.
Step S210: the linkage strategy information of all waits in the tactful pond is classified in the transfer unit, and the startup process is carried out simultaneous operation to sorted linkage strategy information.
For example, 30 altogether of the linkage strategy information of all waits in the tactful pond, 11 of the linkage strategy information of A equipment wherein, 9 of the linkage strategy information of B equipment, 10 of the linkage strategy information of C equipment.Classifying the linkage strategy in the tactful pond in transfer unit 304 according to A, B, three kinds of equipment of C, forms three linkage strategy packets of information.And then two processes are opened up in startup; Promptly open up two virtual processing units; And then three linkage strategy packets of information are sent to processing unit 303 and two virtual processing units; Such three linkage strategy packets of information can be synchronized operation, have saved the time greatly, reach fast and effectively to carry out.
Step S207 and step S209 do not have strict sequencing.
Step S211: whether have new equipment get into, if having, get into step S212 if detecting; Otherwise get into step S204.
Step S212: stop thread, return step S201.
Embodiment of the present invention embodiment; Efficiently solve facility information interlock difficult treatment; Reduced monitoring work of maintenance personnel intensity, device management server performance loss and period of reservation of number, and solved under the big situation of data volume, processing speed still fast.
Below in conjunction with the structural representation of a kind of facility information interlock processing unit of the embodiment of the invention shown in Fig. 3, the structure of this facility information interlock processing unit of the further explain embodiment of the invention.
Collecting unit 301 is used for the facility information of each equipment in the acquisition system, according to mapping table and the policy library that this facility information inquiry is provided with in advance, obtains the linkage strategy information of this equipment.
Particularly, facility information comprises this device type, device address information and functions of the equipments sign indicating number etc.Because the communication protocol that each equipment adopts is of all kinds, then the data structure of each equipment of obtaining of collecting unit is also different.For example, A device address information is in first byte of A device data section in the system, and B device address information is in the 3rd byte of B device data section, and preceding two bytes of B device data section are synchronizing informations.Collecting unit extracts facility information from the data structure of each equipment, has then solved the problem of the interlock difficult treatment that causes because each equipment employing agreement is different.
Comprise facility information (facility information comprises device type, device address information, functions of the equipments sign indicating number etc.) and linkage strategy sign indicating number in the preset mapping table; At least two functions of the equipments sign indicating numbers of a device address information correspondence; Can confirm concrete device object through device type and device address information, same, can confirm a linkage strategy sign indicating number through device type and functions of the equipments sign indicating number; According to linkage strategy sign indicating number query strategy storehouse, obtain linkage strategy information again.Collecting unit 301 continues in the detection system whether new data is arranged, if having, repeats above step.
Centralized unit 302 links to each other with collecting unit 301, is used to judge whether the linkage strategy information that receives has the action that will carry out, if there is action to carry out, sends and carries out message processing unit 303.
Concrete, linkage strategy information generally comprises action execution information and information is carried out in non-action, and action execution information is generally control or calls, and non-action execution information is generally notice or state information.When judgement is when having action to carry out, linkage strategy information to be sent to processing unit 303.
Processing unit 303 links to each other with centralized unit 302, is used for receiving carrying out message, carries out linkage strategy information.
Embodiment of the present invention embodiment; Efficiently solve facility information interlock difficult treatment; Reduced monitoring work of maintenance personnel intensity, device management server performance loss and period of reservation of number, and solved under the big situation of data volume, processing speed still fast.
Below in conjunction with the structural representation of another embodiment of a kind of facility information of the present invention shown in Fig. 4 interlock processing unit, a kind of facility information interlock processing unit of the further explain embodiment of the invention comprises:
Collecting unit 401, be used to detect with acquisition system in the facility information of each equipment, according to mapping table and the policy library that this facility information inquiry is provided with in advance, obtain the linkage strategy information of this equipment.
Particularly, facility information comprises this device type, device address information and functions of the equipments sign indicating number etc.Because the communication protocol that each equipment adopts is of all kinds, then the data structure of each equipment of obtaining of collecting unit is also different.For example, A device address information is in first byte of A device data section in the system, and B device address information is in the 3rd byte of B device data section, and preceding two bytes of B device data section are synchronizing informations.Collecting unit extracts facility information from the data structure of each equipment, has then solved the problem of the interlock difficult treatment that causes because each equipment employing agreement is different.
Comprise facility information (facility information comprises device type, device address information, functions of the equipments sign indicating number etc.) and linkage strategy sign indicating number in the preset mapping table; At least two functions of the equipments sign indicating numbers of a device address information correspondence; Can confirm concrete device object through device type and device address information, same, can confirm a linkage strategy sign indicating number through device type and functions of the equipments sign indicating number; According to linkage strategy sign indicating number query strategy storehouse, obtain linkage strategy information again.Collecting unit 401 continues in the detection system whether new data is arranged, if having, repeats above step.
Centralized unit 402 links to each other with collecting unit 401, is used to judge whether the linkage strategy information that receives has the action that will carry out, if there is action to carry out notifier processes unit 403; Be used for also judging whether the linkage strategy information that is stored in tactful pond surpasses preset number, if surpass, starts transfer unit 404.
Concrete, linkage strategy information generally comprises action execution information and information is carried out in non-action, and action execution information is generally control or calls, and non-action execution information is generally notice or state information.When judgement is when having action to carry out, linkage strategy information to be sent to processing unit 403.
Collecting unit 401 can be opened up one section buffer memory after obtaining linkage strategy information, in this section buffer memory, this section buffer memory is tactful pond with the linkage strategy information stores.When the linkage strategy information in being stored in tactful pond surpassed preset number, centralized unit 402 notice transfer unit 404 started.
Processing unit 403 links to each other with centralized unit 402, is used to receive linkage strategy information, and carries out the action of this linkage strategy information of corresponding device.
Transfer unit 404 links to each other with processing unit 403 with centralized unit 402, is used for the linkage strategy information of all waits of tactful pond is classified, and the startup process is carried out simultaneous operation to sorted linkage strategy information.
For example, 30 altogether of the linkage strategy information of all waits in the tactful pond, 11 of the linkage strategy information of A equipment wherein, 9 of the linkage strategy information of B equipment, 10 of the linkage strategy information of C equipment.Classifying the linkage strategy in the policy library in transfer unit 404 according to A, B, three kinds of equipment of C, forms three linkage strategy packets of information.And then two processes are opened up in startup; Promptly open up two virtual processing units; And then three linkage strategy packets of information are sent to processing unit 303 and two virtual processing units; Such three linkage strategy packets of information can be synchronized operation, have saved the time greatly, reach fast and effectively to carry out.
Said apparatus can also comprise initialization unit 405, is used to read the configuration registry file, generates mapping table and policy library according to this configuration registry file.
Concrete, this configuration registry file comprises system configuration item title, logical relation, parameter threshold values, associated configuration item, major parameter, entry-into-force time, influence area system etc.
Detecting unit 406 links to each other with initialization unit 405, and whether be used for detecting has new equipment to get into, if there is new equipment to get into, then stops thread, upgrades the configuration registry file.
Embodiment of the present invention embodiment; Efficiently solve facility information interlock difficult treatment; Reduced monitoring work of maintenance personnel intensity, device management server performance loss and period of reservation of number, and solved under the big situation of data volume, processing speed still fast.
Need to prove that through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement through hardware.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above disclosed preferred embodiment that is merely in the embodiment of the invention can not limit the present invention's interest field certainly with this, so according to the equivalent variations that claim of the present invention is done, still belong to the scope that the present invention is contained.