CN108829380A - A kind of plug-in unit obtains the method and device of consistency on messaging realization - Google Patents

A kind of plug-in unit obtains the method and device of consistency on messaging realization Download PDF

Info

Publication number
CN108829380A
CN108829380A CN201810550869.1A CN201810550869A CN108829380A CN 108829380 A CN108829380 A CN 108829380A CN 201810550869 A CN201810550869 A CN 201810550869A CN 108829380 A CN108829380 A CN 108829380A
Authority
CN
China
Prior art keywords
class
goal systems
connector
token
unique instance
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.)
Granted
Application number
CN201810550869.1A
Other languages
Chinese (zh)
Other versions
CN108829380B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810550869.1A priority Critical patent/CN108829380B/en
Publication of CN108829380A publication Critical patent/CN108829380A/en
Application granted granted Critical
Publication of CN108829380B publication Critical patent/CN108829380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses a kind of plug-in units to obtain the method that consistency on messaging is realized, including:Create singleton pattern to connector;It is initialized according to the IP of the goal systems received and Token to connector, so as to can be communicated with goal systems to connector;When receiving the acquisition of information order of input, by obtaining the technical information of goal systems to connector, and technical information is fed back into cloud platform.Technical solution provided herein, when in face of the information acquisition request of multi-user or multi-client, multi-user or multi-client by single class case-based system to information be consistent, avoided the occurrence of the inconsistent situation of information;And any information obtained from goal systems is not cached in trusted follower's class, reduce the occupancy to connector to system resource.The application additionally provides a kind of device, equipment and computer readable storage medium that plug-in unit acquisition consistency on messaging is realized simultaneously, has above-mentioned beneficial effect.

Description

A kind of plug-in unit obtains the method and device of consistency on messaging realization
Technical field
This application involves plug-in management field, in particular to a kind of method, apparatus that plug-in unit acquisition consistency on messaging is realized, Equipment and computer readable storage medium.
Background technique
The starting point of plug-in part technology is primarily to enable software to neatly be extended function, without to main journey Sequence (framing program) is recompilated and is issued.The function of software is determined by framing program and plug-in unit.In framing program and There is a specific interface, both must transmit data or control information by this interface, to realize between plug-in unit Software function.
However, when in face of the information acquisition request of multi-user or multi-client, the goal systems that is got by plug-in unit Information there is inconsistent situation, in turn result in and obtain the situation that mistake occurs in information.
Summary of the invention
The purpose of the application is to provide a kind of method, apparatus, equipment and computer that plug-in unit acquisition consistency on messaging is realized Readable storage medium storing program for executing, for realizing the unification for the information that each user or each client get.
In order to solve the above technical problems, the application provides a kind of method that plug-in unit obtains consistency on messaging realization, this method Including:
Create singleton pattern to connector;
Connector is initialized to described according to the IP of the goal systems received and Token, so that described Connector can be communicated with the goal systems;
When receiving the acquisition of information order of input, believed by the technology for obtaining the goal systems to connector Breath, and the technical information is fed back into cloud platform.
Optionally, the docking plug-in unit of the creation singleton pattern includes:
The docking class for being docked with the cloud platform is established according to the demand of the cloud platform;
Determine the constructed fuction with trusted follower's class of unique instance.
Optionally, connector is initialized to described according to the IP of the goal systems received and Token, is wrapped It includes:
When receiving IP and Token of the goal systems, judge described have in connector with the presence or absence of described Trusted follower's class of unique instance;
If it is not, then call constructed fuction creation that there is trusted follower's class of unique instance, and by the IP of the goal systems And Token is cached into the unique instance of trusted follower's class;
In the unique instance of trusted follower's class according to the IP and Token of the goal systems create for the target The client class example that system is communicated.
Optionally, when there is trusted follower's class with unique instance, further include:
Delete trusted follower's class with unique instance;
Calling constructed fuction creation has new trusted follower's class of unique instance, and by the IP of the goal systems and Token is cached into the unique instance of new trusted follower's class;
In the unique instance of new trusted follower's class according to the IP and Token of the goal systems create for the mesh The client class example that mark system is communicated.
Optionally, the IP and Token for the goal systems that the basis receives carry out initialization behaviour to connector to described Make, including:
Judge whether the IP and Token of the goal systems are correct;
If so, being initialized to described to connector according to the IP of the goal systems and Token.
The application also provides a kind of device that plug-in unit acquisition consistency on messaging is realized, which includes:
Creating unit, for create singleton pattern to connector;
Initialization unit, for being carried out initially to described to connector according to the IP and Token of the goal systems received Change operation, so that described can communicate connector with the goal systems;
Acquisition and feedback unit, for being obtained to connector by described when receiving the acquisition of information order of input The technical information of the goal systems, and the technical information is fed back into cloud platform.
Optionally, the creating unit includes:
First creation subelement, for being established according to the demand of the cloud platform for being docked with the cloud platform Dock class;
Subelement is determined, for determining the constructed fuction with trusted follower's class of unique instance.
Optionally, the initialization unit includes:
First judgment sub-unit, it is described to connector for judging when receiving IP and Token of the goal systems In with the presence or absence of with unique instance trusted follower's class;
Second creation subelement, for when it is described in connector there is no when trusted follower's class with unique instance, It calls the constructed fuction creation that there is trusted follower's class of unique instance, and the IP of the goal systems and Token is cached to institute In the unique instance for stating trusted follower's class;
Third creates subelement, in the unique instance of trusted follower's class according to the IP of the goal systems and Token creates the client class example for being communicated with the goal systems.
The application also provides a kind of equipment that plug-in unit obtains consistency on messaging realization, which obtains consistency on messaging and realize Equipment include:
Memory, for storing computer program;
Processor realizes that plug-in unit obtains consistency on messaging as described in any of the above-described when for executing the computer program The step of method of realization.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program realizes that the plug-in unit as described in any of the above-described obtains consistency on messaging and realizes when the computer program is executed by processor Method the step of.
Plug-in unit provided herein obtains the method that consistency on messaging is realized, including:Create singleton pattern to connector; It is initialized according to the IP of the goal systems received and Token to connector, so that can be with mesh to connector Mark system is communicated;When receiving the acquisition of information order of input, the technology by obtaining goal systems to connector is believed Breath, and technical information is fed back into cloud platform.
Technical solution provided herein, first create singleton pattern to connector, further according to the target system received The IP and Token of system are initialized to connector, so as to connector can be communicated with goal systems, so that This is to only one class example in connector, when in face of the information acquisition request of multi-user or multi-client, multi-user or more Client by such case-based system to information be consistent, avoided the occurrence of the inconsistent situation of information;And in trusted follower Any information obtained from goal systems is not cached in class, the technical information of the be presented to cloud platform of goal systems is all real When obtain, to reduce to connector to the occupancy of system resource.The application additionally provides a kind of plug-in unit acquisition information one simultaneously Device, equipment and the computer readable storage medium that cause property is realized have above-mentioned beneficial effect, so that details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart for the method that plug-in unit acquisition consistency on messaging is realized provided by the embodiment of the present application;
Fig. 2 obtains a kind of practical manifestation of S102 in the method that consistency on messaging is realized for a kind of plug-in unit provided by Fig. 1 The flow chart of mode;
Fig. 3 is a kind of structure chart for the device that plug-in unit acquisition consistency on messaging is realized provided by the embodiment of the present application;
Fig. 4 is the structure chart that another kind plug-in unit provided by the embodiment of the present application obtains the device that consistency on messaging is realized;
Fig. 5 is a kind of structure chart for the equipment that plug-in unit acquisition consistency on messaging is realized provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide a kind of method, apparatus, equipment and computer that plug-in unit acquisition consistency on messaging is realized Readable storage medium storing program for executing for realizing the unification of the information got between each user or each platform, while reducing the resource of plug-in unit It occupies.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of method that plug-in unit obtains consistency on messaging realization provided by the embodiment of the present application Flow chart.
It specifically comprises the following steps:
S101:Create singleton pattern to connector;
The information storage for the goal systems that usually will acquire based on existing plug-in unit is to itself, and there is each users or each The inconsistent problem of the information got between platform, this application provides a kind of plug-in units to obtain the method that consistency on messaging is realized, For realizing the unification of the information got between each user or each platform;
Singleton pattern mentioned herein to connector, be specially that Java singleton pattern is used to combine with RESTAPI Mode establish to connector, singleton pattern ensures only one example of some class, and voluntarily instantiation and to entire system System provides this example.For example, every computer can have several printers, but can only have a Printer Spooler, It is output in printer simultaneously to avoid two print jobs.Every computer can have several communication port, and system should collect Middle these communication port of management by two requests while being called simultaneously to avoid a communication port.
Preferably, it is mentioned herein creation singleton pattern to connector, be specifically as follows:
The docking class for being docked with cloud platform is established according to the demand of cloud platform;
Determine the constructed fuction with trusted follower's class of unique instance.
Preferably, to guarantee that docking class occupies the minimum of system resource, the method that the application is proposed can docked Necessary method is only realized in class, does not distribute any additional system resources, and all plug-in part technologies are realized by customized trusted follower Class and client class are realized, i.e., during docking the creation of class example, using only the default constructor of its parent, regardless of With any additional system resources, also resource is not cached.Class is docked when plug-in part technology details is presented, passes through trusted follower The unique instance of class is realized.
S102:It is initialized according to the IP of the goal systems received and Token to connector, so that docking Plug-in unit can be communicated with goal systems;
After completing to the creation process of connector, according to the IP of the goal systems received and Token to this to patching Part initializes, this runs connector in cloud platform and communicates with goal systems;
Optionally, the IP and Token for the goal systems that basis mentioned herein receives are initialized to connector Operation, is specifically as follows:
Judge whether the IP and Token of goal systems are correct;
If so, being initialized to this to connector according to the IP of the goal systems and Token.
Further, as the IP of goal systems and Token incorrect, prompt information can also be sent to cloud platform, with Safeguard user in time.
S103:When receiving the acquisition of information order of input, by obtaining the technical information of goal systems to connector, And technical information is fed back into cloud platform.
When receiving the acquisition of information order of input, by obtaining the technical information of goal systems to connector, and will Technical information feeds back to cloud platform, and then completes the task of acquisition of information.
Optionally, plug-in unit and goal systems can also be realized with based on the CRUD method of HTTP by RESTAPI agreement Communication so as to CS framework is formed between connector and goal systems, to realizing REST client in connector Correlation function;
Any plug-in part technology information obtained from goal systems is not cached in trusted follower's class with unique instance, because The technical information of the be presented to cloud platform of this goal systems is obtained in real time by unique instance, that is to say, that patching The only IP and Token of caching of target system in part, remaining information of goal systems is not buffered in in connector, but is passed through The unique instance is directly presented to cloud platform, reduces the occupancy to connector to system resource.
Based on the above-mentioned technical proposal, a kind of plug-in unit provided herein obtains the method that consistency on messaging is realized, first creates Build singleton pattern to connector, carry out initialization behaviour to connector further according to the IP and Token of the goal systems received Make, so as to can be communicated with goal systems to connector, so that this is to only one class example in connector, in face of more When the information acquisition request of user or multi-client, multi-user or multi-client by such case-based system to information be consistent , avoid the occurrence of the inconsistent situation of information;And any letter obtained from goal systems is not cached in trusted follower's class Breath, the technical information of the be presented to cloud platform of goal systems all obtain in real time, to reduce to connector to system resource It occupies.
It is excessively high based on occupancy of the plug-in unit in the prior art to system resource, and system resource is extremely limited, therefore drops Undershoot part is also of great significance to the occupancy of system resource;
It is directed to the step S102 of an embodiment, to the mode initialized to connector can there are many sides Formula, for reduce to connector to the occupancy of system resource, below in an advantageous manner for, in conjunction with Fig. 2 carry out specifically It is bright.
Referring to FIG. 2, Fig. 2 obtains one of S102 in the method that consistency on messaging is realized for a kind of plug-in unit provided by Fig. 1 The flow chart of kind practical manifestation mode.
It specifically includes following steps:
S201:When receiving IP and Token of goal systems, judge to whether there is in connector with unique instance Trusted follower's class;
If it is not, then entering step S202;
Optionally, when this is to having trusted follower's class with unique instance in connector, further include:
Delete trusted follower's class with unique instance;
Call constructed fuction creation have unique instance new trusted follower's class, and by the IP of goal systems and Token cache to In the unique instance of new trusted follower's class;
It is created according to the IP and Token of goal systems for leading to goal systems in the unique instance of new trusted follower's class The client class example of letter.
S202:It calls constructed fuction creation that there is trusted follower's class of unique instance, and the IP of goal systems and Token is cached Into the unique instance of trusted follower's class;
S203:In the unique instance of trusted follower's class according to the IP of goal systems and Token creation be used for and goal systems into The client class example of row communication.
Based on the above-mentioned technical proposal, the embodiment of the present application is in IP and Token for receiving goal systems, first judgement docking With the presence or absence of trusted follower's class with unique instance in plug-in unit;If so, deleting and re-establishing new trusted follower's class;And by goal systems IP and Token cache into unique instance, while creating client class example for being communicated with goal systems so that No matter when this, at most having trusted follower's class and a client class example in connector, greatly reduces plug-in unit to system The occupancy of resource.
Referring to FIG. 3, Fig. 3 is a kind of device that plug-in unit acquisition consistency on messaging is realized provided by the embodiment of the present application Structure chart.
The apparatus may include:
Creating unit 100, for create singleton pattern to connector;
Initialization unit 200, for being initialized according to the IP and Token of the goal systems received to connector Operation, so as to can be communicated with goal systems to connector;
It obtains and feedback unit 300, for when receiving the acquisition of information order of input, by obtaining mesh to connector The technical information of mark system, and technical information is fed back into cloud platform.
Referring to FIG. 4, Fig. 4 is the device that another kind plug-in unit provided by the embodiment of the present application obtains that consistency on messaging is realized Structure chart.
The creating unit 100 may include:
First creation subelement, for establishing the docking class for being docked with cloud platform according to the demand of cloud platform;
Subelement is determined, for determining the constructed fuction with trusted follower's class of unique instance.
The initialization unit 200 may include:
First judgment sub-unit, for judging whether deposit in connector when receiving IP and Token of goal systems In trusted follower's class with unique instance;
Second creation subelement, for there is no when trusted follower's class with unique instance, calling construction in connector Function creation has trusted follower's class of unique instance, and the IP of goal systems and Token are cached into the unique instance of trusted follower's class;
Third creates subelement, for being used in the unique instance of trusted follower's class according to the IP of goal systems and Token creation In the client class example communicated with goal systems.
The initialization unit 200 can also include:
Subelement is deleted, for deleting trusted follower's class with unique instance;
4th creation subelement, for calling constructed fuction creation that there is new trusted follower's class of unique instance, and by target system The IP and Token of system are cached into the unique instance of new trusted follower's class;
5th creation subelement, for being created in the unique instance of new trusted follower's class according to the IP and Token of goal systems Client class example for being communicated with goal systems.
Further, which also may include:
Second judgment sub-unit, for judging whether the IP and Token of goal systems are correct;
Subelement is initialized, for as the IP of goal systems and Token correct, according to the IP and Token of goal systems This initializes connector.
Each component part in apparatus above can be applied in embodiment below:
First creation subelement establishes the docking class for being docked with cloud platform according to the demand of cloud platform;Determine son Unit determines the constructed fuction with trusted follower's class of unique instance;
When receiving IP and Token of goal systems, the second judgment sub-unit judges the IP of goal systems and Token is When the IP and Token correct of no just appropriate goal systems, subelement is initialized according to the IP and Token of goal systems to the docking Plug-in unit initializes;
First judgment sub-unit judge in connector with the presence or absence of with unique instance trusted follower's class;In to connector There is no when trusted follower's class with unique instance, the second creation subelement calls constructed fuction creation to have the trusted follower of unique instance Class, and the IP of goal systems and Token are cached into the unique instance of trusted follower's class;Third create subelement trusted follower's class only The client class example for being communicated with goal systems is created according to the IP of goal systems and Token in one example;When right When there is trusted follower's class with unique instance in connector, deletes subelement and delete trusted follower's class with unique instance;4th wound Build subelement call constructed fuction creation have unique instance new trusted follower's class, and by the IP of goal systems and Token cache to In the unique instance of new trusted follower's class;5th creation subelement in the unique instance of new trusted follower's class according to the IP of goal systems and Token creates the client class example for being communicated with goal systems;
When receiving the acquisition of information order of input, obtains and feedback unit is by obtaining goal systems to connector Technical information, and technical information is fed back into cloud platform.
Referring to FIG. 5, Fig. 5 is a kind of equipment that plug-in unit obtains consistency on messaging realization provided by the embodiment of the present application Structure chart.
Plug-in unit, which obtains the equipment that consistency on messaging is realized, to generate bigger difference because configuration or performance are different, can be with Including one or more processors (central processing units, CPU) 422 (for example, one or more Processor) and memory 432, the storage medium 430 (such as one of one or more storage application programs 442 or data 444 A or more than one mass memory unit).Wherein, memory 432 and storage medium 430 can be of short duration storage or persistently deposit Storage.The program for being stored in storage medium 430 may include one or more units (diagram does not mark), and each unit can be with Including being operated to the series of instructions in device.Further, central processing unit 422 can be set to and storage medium 430 Communication obtains the series of instructions operation executed in storage medium 430 in the equipment 400 that consistency on messaging is realized in plug-in unit.
Plug-in unit obtain consistency on messaging realize equipment 400 can also include one or more power supplys 426, one or More than one wired or wireless network interface 450, one or more input/output interfaces 458, and/or, one or one The above operating system 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Plug-in unit described in above-mentioned Fig. 1 to Fig. 2, which obtains the step in the method that consistency on messaging is realized and obtained by plug-in unit, to be believed It ceases the equipment that consistency is realized and is based on structure realization shown in fig. 5.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Method, apparatus, equipment and the calculating that consistency on messaging is realized are obtained to a kind of plug-in unit provided herein above Machine readable storage medium storing program for executing is described in detail.Specific case used herein carries out the principle and embodiment of the application It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for For those skilled in the art, under the premise of not departing from the application principle, if can also be carried out to the application Dry improvement and modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (10)

1. a kind of plug-in unit obtains the method that consistency on messaging is realized, which is characterized in that including:
Create singleton pattern to connector;
Connector is initialized to described according to the IP of the goal systems received and Token, so that the docking Plug-in unit can be communicated with the goal systems;
When receiving the acquisition of information order of input, by the technical information for obtaining the goal systems to connector, And the technical information is fed back into cloud platform.
2. the method according to claim 1, wherein the docking plug-in unit of the creation singleton pattern includes:
The docking class for being docked with the cloud platform is established according to the demand of the cloud platform;
Determine the constructed fuction with trusted follower's class of unique instance.
3. according to the method described in claim 2, it is characterized in that, according to the IP of the goal systems received and Token to institute It states and connector is initialized, including:
When receiving IP and Token of the goal systems, judge described unique to having with the presence or absence of described in connector Trusted follower's class of example;
If it is not, then call constructed fuction creation that there is trusted follower's class of unique instance, and by the IP of the goal systems and Token is cached into the unique instance of trusted follower's class;
In the unique instance of trusted follower's class according to the IP and Token of the goal systems create for the goal systems The client class example communicated.
4. according to the method described in claim 3, it is characterized in that, being gone back when there is trusted follower's class with unique instance Including:
Delete trusted follower's class with unique instance;
It calls the constructed fuction creation that there is new trusted follower's class of unique instance, and the IP of the goal systems and Token is delayed It deposits into the unique instance of new trusted follower's class;
In the unique instance of new trusted follower's class according to the IP and Token of the goal systems create for the target system The client class example that system is communicated.
5. the method according to claim 1, wherein the IP and Token of the goal systems that the basis receives Connector is initialized to described, including:
Judge whether the IP and Token of the goal systems are correct;
If so, being initialized to described to connector according to the IP of the goal systems and Token.
6. a kind of plug-in unit obtains the device that consistency on messaging is realized, which is characterized in that including:
Creating unit, for create singleton pattern to connector;
Initialization unit, for carrying out initialization behaviour to connector to described according to the IP and Token of the goal systems received Make, so that described can communicate connector with the goal systems;
Obtain and feedback unit, for when receiving the acquisition of information order of input, by it is described connector is obtained described in The technical information of goal systems, and the technical information is fed back into cloud platform.
7. device according to claim 6, which is characterized in that the creating unit includes:
First creation subelement, for establishing the docking for being docked with the cloud platform according to the demand of the cloud platform Class;
Subelement is determined, for determining the constructed fuction with trusted follower's class of unique instance.
8. device according to claim 7, which is characterized in that the initialization unit includes:
First judgment sub-unit, it is described to being in connector for judging when receiving IP and Token of the goal systems It is no to there is trusted follower's class with unique instance;
Second creation subelement, for when described to, there is no when trusted follower's class with unique instance, being called in connector The constructed fuction creation has trusted follower's class of unique instance, and the IP of the goal systems and Token are cached to the parent In the unique instance for believing class;
Third creates subelement, for being created in the unique instance of trusted follower's class according to the IP and Token of the goal systems Build the client class example for being communicated with the goal systems.
9. a kind of plug-in unit obtains the equipment that consistency on messaging is realized, which is characterized in that including:
Memory, for storing computer program;
Processor realizes that plug-in unit obtains information one as described in any one of claim 1 to 5 when for executing the computer program The step of method that cause property is realized.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that it is consistent to obtain information for plug-in unit as described in any one of claim 1 to 5 when the computer program is executed by processor Property realize method the step of.
CN201810550869.1A 2018-05-31 2018-05-31 Method and device for realizing consistency of plug-in acquired information Active CN108829380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810550869.1A CN108829380B (en) 2018-05-31 2018-05-31 Method and device for realizing consistency of plug-in acquired information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810550869.1A CN108829380B (en) 2018-05-31 2018-05-31 Method and device for realizing consistency of plug-in acquired information

Publications (2)

Publication Number Publication Date
CN108829380A true CN108829380A (en) 2018-11-16
CN108829380B CN108829380B (en) 2021-08-31

Family

ID=64146652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810550869.1A Active CN108829380B (en) 2018-05-31 2018-05-31 Method and device for realizing consistency of plug-in acquired information

Country Status (1)

Country Link
CN (1) CN108829380B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020165827A1 (en) * 2000-08-14 2002-11-07 Gien Peter H. System and method for facilitating signing by buyers in electronic commerce
US20080301629A1 (en) * 2007-05-31 2008-12-04 Stark Scott M Integrating aspect oriented programming into the application server
CN102520967A (en) * 2011-12-28 2012-06-27 深圳市融创天下科技股份有限公司 Method, system and mobile terminal for creating and using mobile platform plug-in component
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN107861715A (en) * 2017-10-31 2018-03-30 山东中创软件商用中间件股份有限公司 A kind of business sets up system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020165827A1 (en) * 2000-08-14 2002-11-07 Gien Peter H. System and method for facilitating signing by buyers in electronic commerce
US20080301629A1 (en) * 2007-05-31 2008-12-04 Stark Scott M Integrating aspect oriented programming into the application server
CN102520967A (en) * 2011-12-28 2012-06-27 深圳市融创天下科技股份有限公司 Method, system and mobile terminal for creating and using mobile platform plug-in component
CN104424002A (en) * 2013-09-10 2015-03-18 中国科学院声学研究所 Dynamic component loading method and system based on plug-in mechanism
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN107861715A (en) * 2017-10-31 2018-03-30 山东中创软件商用中间件股份有限公司 A kind of business sets up system and method

Also Published As

Publication number Publication date
CN108829380B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
EP3402163B1 (en) Method and device for managing resources in cloud platform
EP3101870A1 (en) Storage resource scheduling method and storage calculation system
CN109300217B (en) Queuing and calling method, computer storage medium, queuing and calling server and system
CN109104336A (en) Service request processing method, device, computer equipment and storage medium
CN107861760A (en) BIOS collocation method, terminal and server
CN108052384A (en) A kind of task processing method, service platform and electronic equipment
CN106445473A (en) Container deployment method and apparatus
CN105144109A (en) Distributed data center technology
CN103516851B (en) A kind of wireless product cloud test platform system
CN111770176B (en) Traffic scheduling method and device
CN110751458A (en) Business approval method, device and system
CN108038009A (en) Front and back end exchange method, device and computer equipment based on Web applications
CN109819023A (en) Distributed transaction processing method and Related product
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
US10025646B2 (en) Naming of nodes in NET framework
CN110163554B (en) Workflow operation method, device, server and storage medium
CN107222618A (en) Terminal screenshotss method and device
CN106549827A (en) The detection method and device of network state
CN113419865A (en) Cloud resource processing method, related device and computer program product
CN107045452B (en) Virtual machine scheduling method and device
CN104735134B (en) A kind of method and apparatus serviced for providing calculating
CN116756282A (en) Task processing method, server, language prediction system and man-machine interaction system
CN108829380A (en) A kind of plug-in unit obtains the method and device of consistency on messaging realization
CN113641688B (en) Node updating method, related device and computer program product
CN102200928A (en) Computation resource control apparatus, computation resource control method, and non-transitory computer-readable recording 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