CN106161409A - A kind of agent framework service system including local component and method - Google Patents

A kind of agent framework service system including local component and method Download PDF

Info

Publication number
CN106161409A
CN106161409A CN201510199127.5A CN201510199127A CN106161409A CN 106161409 A CN106161409 A CN 106161409A CN 201510199127 A CN201510199127 A CN 201510199127A CN 106161409 A CN106161409 A CN 106161409A
Authority
CN
China
Prior art keywords
unit
local
remote
execution
proxy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510199127.5A
Other languages
Chinese (zh)
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.)
PerkinElmer Management Shanghai Co Ltd
Original Assignee
PerkinElmer Management Shanghai 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 PerkinElmer Management Shanghai Co Ltd filed Critical PerkinElmer Management Shanghai Co Ltd
Priority to CN201510199127.5A priority Critical patent/CN106161409A/en
Priority to PCT/CN2016/076948 priority patent/WO2016169375A1/en
Publication of CN106161409A publication Critical patent/CN106161409A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of agent framework service system including local component and method, belong to field of computer technology;System includes: provide the remote service end that at least one includes long-range performance element;One communication unit is provided;One is provided to include that at least one locally executes the local agent unit of module;Local agent unit is connected with corresponding long-range performance element by communication unit.Method includes: local agent unit obtains the request of the current application program run, and according to the long-range accordingly performance element of request selecting or locally execute module and corresponding perform result to be formed;The execution result remotely obtaining is back to application program, or the execution result directly obtaining local runtime is back to application program.Technique scheme provides the benefit that: solve existing computer and cross-platform third party's assembly cannot be utilized easily to process the problem of affairs, and the deployment of this agent framework service system is convenient, simple to operate.

Description

Proxy framework service system and method comprising local component
Technical Field
The invention relates to the technical field of computers, in particular to a proxy framework service system and a proxy framework service method.
Background
In the existing computer application system, some service functions are often realized by utilizing a part of components provided by a third party, and particularly in some systems needing to interact with hardware, the situation is more common. In such applications, it is a common problem that third-party provided components may be implemented by an old technology, or that these third-party provided components can only run on a specific platform or in a specific runtime environment. The components provided by the third parties cannot be compatible with the whole application system, so that the whole third party component service system is inconvenient to operate and difficult to deploy.
Disclosure of Invention
Aiming at the problems existing when the existing computer application system utilizes the components provided by the third party, the proxy framework service system and the method which aim at realizing simple operation and convenient deployment and comprise the local components are provided.
The specific technical scheme is as follows:
a proxy framework service system including a local component, wherein,
providing at least one remote server, wherein each remote server is provided with a remote execution unit for executing a preset function;
providing at least one native execution module for performing a predetermined function;
providing a communication unit;
providing a local agent unit comprising the local execution module, and selecting the corresponding remote execution unit or the local execution module to execute the request according to the request of the currently running application program, and returning the execution result to the application program after obtaining the execution result;
the local proxy unit is connected with the remote execution unit arranged at the remote server through the communication unit.
Preferably, the proxy framework service system, wherein the home agent unit includes:
an interface module to connect the application, the interface module comprising:
a configuration information acquisition component to provide system configuration information to the application;
and the instruction execution component is used for receiving the request of the application program and the execution parameter corresponding to the request and sending an execution result to the application program.
Preferably, the proxy framework service system, wherein the home agent unit includes:
and the remote management module is connected with the interface module and the communication unit and used for sending the request from the application program acquired by the interface module and the execution parameter corresponding to the request to the corresponding remote execution unit through the communication unit, sending the execution result of the remote execution unit to the interface module and providing the connection state of the remote execution unit and the local agent unit to the configuration information acquisition component.
Preferably, the proxy framework service system, wherein the communication unit includes:
at least one agent client module connected with the remote management module;
when the local proxy unit sends the request to the remote execution unit, the remote management module starts the corresponding proxy client module to maintain the connection between the local proxy unit and the corresponding remote execution unit.
Preferably, the proxy framework service system, wherein the communication unit includes:
the conversion component is used for converting the request sent by the local proxy unit into a format acceptable by the remote server and sending the format to the remote server; converting the execution result generated by the remote server into a format acceptable by the local proxy unit, and sending the execution result to the local proxy unit; and/or
A monitoring component to monitor a connection status between the local proxy unit and the remote execution unit; and/or
And the registration management component is used for receiving the registration request of the remote execution unit and registering the corresponding remote execution unit to the local agent unit according to the registration request.
Preferably, the proxy framework service system, wherein the communication unit maintains communication between the local proxy unit and the remote execution unit through a socket communication mode.
Preferably, the proxy framework service system, wherein the remote execution unit includes:
at least one remote function component, which is used for executing the predetermined function according to the request and generating the corresponding execution result;
the host module is respectively connected with the communication unit and the remote function component and used for starting the remote function component, converting the request acquired by the communication unit into a corresponding instruction acceptable by the remote function component and controlling the remote function component to execute a preset function according to the corresponding instruction; and sending the execution result of the remote function component to the local proxy unit through the communication unit.
Preferably, the proxy framework service system, wherein the home agent unit includes:
and the starting control module is connected with the corresponding host module through the communication unit and used for controllably starting the corresponding host module.
Preferably, the proxy framework service system, wherein the host module includes:
and the registration component is connected with the communication unit and used for sending a registration request to the communication unit after the host module is started so as to register the host module to the local agent unit.
Preferably, the proxy framework service system, wherein the host module includes:
and the state monitoring component is used for detecting the working state of the local agent unit and enabling the host module to quit operation when the local agent unit stops working.
Preferably, the proxy framework service system, wherein the local execution module includes:
at least one local function component, which is used for executing the predetermined function according to the request and generating the corresponding execution result;
the home agent unit comprises:
the local management component is respectively connected with the interface module and the local execution module and is used for selecting the corresponding local function component according to the request of the application program and controlling the selected local function component to execute a preset function; and sending the execution result of the local function component to the application program through the interface module.
Preferably, the proxy framework service system, wherein the local execution module further includes:
and the local registration components are respectively connected with the local function components and used for registering the corresponding local function components in the local proxy unit according to the request of the local execution module.
Preferably, the proxy framework service system, wherein the remote execution unit and the local proxy unit operate under different operating systems; and/or
The local execution module and the local agent unit work under the same operating system.
A proxy framework service method comprising a local component, comprising:
providing at least one remote server including a remote execution unit for executing a predetermined function;
providing a local proxy unit including a local execution module;
enabling a remote connection between the local proxy unit and the remote execution unit in the remote server;
in the proxy framework service method, the service method based on the remote execution unit specifically includes:
step S1a, the local proxy unit obtains a request of a currently running application program;
step S2a, the local proxy unit selecting the corresponding remote execution unit according to the request, so as to execute the request remotely and form a corresponding execution result;
step S3a, the local proxy unit returning the execution result formed by the remote execution unit processing to the application program for use by the application program;
in the proxy service method, the service method based on the local execution module specifically includes:
step S1b, the local proxy unit obtains a request of a currently running application program;
step S2b, the local proxy unit selects the corresponding local execution module according to the request, so as to execute the request and form a corresponding execution result;
step S3b, the local proxy unit returns the execution result formed by the processing of the local execution module to the application program for use by the application program.
Preferably, the proxy framework service method, wherein the local proxy unit provides system configuration information to the application program through a corresponding interface;
in step S1a, the local proxy unit obtains the request of the currently running application program and the execution parameter corresponding to the request through the interface.
Preferably, the proxy framework service method is that the request of the application program and the corresponding execution parameter are sent to the corresponding remote execution unit through a remote management module arranged in the local proxy unit; and providing, by the remote management module, a connection status between the remote execution unit and the local proxy unit for inclusion in the system configuration information.
Preferably, in the proxy framework service method, in step S2a, when the local proxy unit sends the request through the communication unit, a proxy client process is formed in the communication unit by using the remote management module, so that the local proxy unit and the corresponding remote execution unit are connected.
Preferably, the proxy framework service method is that the local proxy unit converts the request and the corresponding execution parameter sent by the communication unit into a format acceptable by the remote server and receives the converted request and the corresponding execution parameter by the remote server;
the execution result sent by the remote server through the communication unit is converted into a format acceptable by the local proxy unit and received by the local proxy unit.
Preferably, the proxy framework service method, wherein, when the local proxy unit and the remote server remotely communicate through the communication unit:
monitoring a connection status between the local proxy unit and the remote execution unit; and/or
And receiving a registration request of the remote execution unit, and registering the corresponding remote execution unit to the local agent unit according to the registration request.
Preferably, the proxy framework service method includes setting at least one remote function component and a host module in each remote execution unit, where each remote function component is configured to execute a predetermined function;
in step S2a, the remote execution unit receives the request and selects a corresponding one of the remote function components to execute a predetermined function and generate a corresponding execution result;
starting the remote function component by adopting the host module, converting the request into a corresponding instruction acceptable by the remote function component, and controlling the remote function component to execute a preset function by the instruction; and
sending the execution result to the local agent unit through the communication unit;
preferably, the proxy framework service method, wherein:
the home agent unit controllably activating the host module via the communication unit; and/or
When the home module is started, the home module sends a registration request to the communication unit to register the home module with the home agent unit.
Preferably, the proxy framework service method is that the host module is used to detect the operating state of the local proxy unit, and control the host module to quit operating when the local proxy unit stops operating.
Preferably, the proxy framework service method includes setting at least one local function component in each local execution module, where each local function component is configured to execute a preset function;
setting a local management component in the local agent unit;
in step S2b, the local management component selects a corresponding one of the local execution modules according to the request of the currently running application program, so as to control the corresponding local function component to execute a predetermined function and process the predetermined function to form a corresponding execution result.
Preferably, the proxy framework service method further includes registering the corresponding local function component in the local proxy unit according to a corresponding registration request of the local execution module.
Preferably, the proxy framework service method, wherein the remote execution unit and the local proxy unit operate under different operating systems; and/or
The local execution module and the local agent unit work under the same operating system.
The beneficial effects of the above technical scheme are:
1) the proxy framework service system is provided, the problem that the existing computer cannot conveniently utilize a cross-platform third-party component to process transactions is solved, and the proxy framework service system is convenient to deploy and simple to operate;
2) a service method based on the proxy framework service system is provided, and proxy service management is realized on the proxy framework service system.
Drawings
FIG. 1 is a schematic diagram of a general architecture of a proxy framework service system according to a preferred embodiment of the present invention;
FIGS. 2-4 are block diagrams of the components of the proxy framework service system in accordance with the preferred embodiment of the present invention;
fig. 5-6 are flow diagrams illustrating a proxy framework service method according to a preferred embodiment of the invention.
Detailed Description
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
In a preferred embodiment of the present invention, there is provided a proxy framework service system including a local component, whose general structure is shown in fig. 1, including:
at least one remote server 1 (only one shown in fig. 1) is provided. In the preferred embodiment of the present invention, each remote server 1 is provided with a remote execution unit 11 for executing a predetermined function. In the preferred embodiment of the present invention, a corresponding remote execution unit 11 may be disposed in a remote server 1. In the preferred embodiment of the present invention, a plurality of remote servers 1 may be provided, and thus the system includes a plurality of remote execution units 11, only one of which is shown in fig. 1.
Providing a communication unit 2;
a home agent unit 3 is provided. In a preferred embodiment of the present invention, the local proxy unit 3 is configured to select a corresponding remote execution unit to perform the remote execution request according to a request of a currently running application program, and return an execution result to the application program after obtaining the execution result. In other words, in the preferred embodiment of the present invention, the local proxy unit 3 is connected to the remote execution unit 11 provided in the remote server 1 through the communication unit 2.
In a preferred embodiment of the present invention, the home agent unit 3 further includes at least one local execution module 34. Each local execution module 34 is configured to perform a predetermined function. As the structure and function of the local execution module 34 will be described in detail below, in a preferred embodiment of the present invention, the local unit 3 may further select a corresponding local execution module 34 to execute a predetermined function according to the request of the application program, so as to return a corresponding execution result to the application program.
In a preferred embodiment of the present invention, specifically, as shown in fig. 2, the home agent unit 3 includes:
an interface module 31. In the preferred embodiment of the present invention, the interface module 31 is used to connect with an application program. I.e. the interface module 31, and the currently running application.
Specifically, in a preferred embodiment of the present invention, as shown in fig. 2, the interface module 31 includes:
the configuration information acquisition component 311. In a preferred embodiment of the present invention, the configuration information obtaining component 311 is configured to obtain system configuration information and provide the system configuration information to a currently running application. In a preferred embodiment of the present invention, the system configuration information may include a connection status between the local proxy unit 3 and the corresponding remote execution unit 11 in the remote server 1 through the communication unit 2, and/or other system parameters for configuring the currently running application to adapt to the local proxy unit application platform.
An instruction execution component 312. In the preferred embodiment of the present invention, the instruction execution component 312 is configured to receive a request of an application program and an execution parameter corresponding to the request, and send an execution result to the application program.
In a preferred embodiment of the present invention, the execution parameter refers to an actual execution content corresponding to a request, which is requested by an application program to execute the corresponding execution unit (remote execution unit or local execution module). For example, the third-party component included in the execution unit is a component for drawing a molecular structure diagram, and the currently running application needs to draw a corresponding molecular structure diagram according to a given molecular formula, so that the application may issue a request to call the third-party component in the corresponding execution unit, and the execution parameters may include data such as the molecular formula according to which the molecular structure diagram is drawn.
In a preferred embodiment of the present invention, the instruction execution component has two functions: firstly, according to a request provided by an application program, sending the request and corresponding execution parameters to a remote server 1; and returning the execution result to the application program according to the execution result formed by the processing of the corresponding remote execution unit.
In a preferred embodiment of the present invention, specifically, as still shown in fig. 2, the home agent unit 3 further includes:
the remote management module 32 is connected to the interface module 31 and the communication unit 2. In the preferred embodiment of the present invention, the remote management module 32 is configured to send the request from the application program and the execution parameter corresponding to the request, which are acquired by the interface module 31, to the corresponding remote execution unit 11 through the communication unit 2, send the execution result of the remote execution unit 11 to the interface module 31, and provide the connection status between the remote execution unit 11 and the local proxy unit 3 to the configuration information acquiring component 311. In a preferred embodiment of the present invention, specifically, as shown in fig. 3, the communication unit 2 includes:
a conversion assembly 21. In a preferred embodiment of the present invention, the converting component 21 is configured to convert the request sent by the local proxy unit 3 into a format acceptable by the remote server 1, and send the converted request to the remote server 1; and converting the execution result generated by the remote server 1 into a format acceptable by the local proxy unit 3, and sending the converted execution result to the local proxy unit. In other words, in the preferred embodiment of the present invention, the conversion component 21 is used to implement the conversion of the data format between the local proxy unit 3 and the remote server 1, so that the data format received by the local proxy unit 3 and the remote server 1 can be parsed and processed.
In a preferred embodiment of the present invention, the communication unit 2 further includes:
a monitoring assembly 22. In a preferred embodiment of the present invention, the monitoring component 22 is configured to monitor a connection status between the local proxy unit 3 and the remote execution unit 11;
a registration management component 23. In a preferred embodiment of the present invention, the registration management component 23 is configured to receive a registration request from the remote execution unit 11, and register the corresponding remote execution unit 11 with the home agent unit 3 according to the registration request. Specifically, in the preferred embodiment of the present invention, the registration management component 23 is actually used to register the information of the remote execution unit 11 successfully connected to the local proxy unit 3 into the local proxy unit 3, so as to add the connection status information into the system configuration information, so that the local proxy unit 3 can inform the application program of the available remote execution unit 11 and its corresponding preset function at this time in a manner of providing the system configuration information to the application program, so as to provide the application program with reference.
In a preferred embodiment of the present invention, the communication unit 2 maintains communication between the local proxy unit and the remote execution unit through a Socket communication mode.
In a preferred embodiment of the present invention, the communication unit 2 further includes:
at least one proxy client module 24 (only one shown in fig. 3) is connected to the remote management module 32. In the preferred embodiment of the present invention, when the local proxy unit sends a request to the remote execution unit, the remote management module starts the corresponding proxy client module. Specifically, in the preferred embodiment of the present invention, the proxy client module 24 is configured to maintain a connection between the local proxy unit 3 and the corresponding execution unit 11.
In a preferred embodiment of the present invention, as shown in fig. 4, the remote execution unit 11 includes:
at least one remote function component 111. In the preferred embodiment of the present invention, each remote function component 111 is configured to perform a predetermined function upon request and generate a corresponding execution result. In particular, in the preferred embodiment of the present invention, what is actually active in the remote execution unit 11 is the above-described remote function components 111, each remote function component 111 being adapted to perform a corresponding function.
The host module 112 is connected to the communication unit 2 and the remote function module 111, respectively. In a preferred embodiment of the present invention, the host module 112 is configured to start the remote function component 111, convert the request obtained through the communication unit 2 into an instruction acceptable by the corresponding remote function component 111, and control the remote function component 111 to execute a predetermined function according to the corresponding instruction; and, the execution result of the remote function component 111 is transmitted to the home agent unit through the communication unit. Specifically, in a preferred embodiment of the present invention, the host module 112 is used for controlling the remote function component 111, converting the request into a corresponding instruction, controlling the corresponding remote function component 111 to process a corresponding transaction according to the instruction, and outputting an execution result.
Therefore, in the preferred embodiment of the present invention, the local application can request the remote function component to execute the preset function by issuing a request, so as to call the corresponding remote function component to process and return the corresponding execution result.
Chemical formulas are still exemplified. The user wants to draw a corresponding molecular structure diagram according to a given chemical formula through a local application program, but the relevant drawing component is a third-party component, and the third-party component and the local application program run in different operating systems. For example, the native application program is run in the Windows operating system, and the third party components required for drawing the molecular architecture diagram need to be run in the Linux operating system. In this case, the configuration described in the technical solution of the present invention may be adopted to run the third-party component in a remote server operating under the Linux operating system, and the local proxy unit 3 is adopted to send the request of the application program to the corresponding third-party component (the remote function component 111) to request the corresponding third-party component to execute the predetermined function and return the execution result, so as to solve the problem that the third-party component cannot be called because the third-party component needs to run in an operating system different from the main operating system in the prior art.
Further, in a preferred embodiment of the present invention, as still shown in fig. 2, the home agent unit 3 further includes:
the start control module 33 is connected to the corresponding host module 112 via the communication unit 2 (only the portion of the start control module 33 connected to the communication unit 2 is shown in fig. 2). In the preferred embodiment of the present invention, the start control module 33 is used for controllably starting the corresponding host module 112. Specifically, in a preferred embodiment of the present invention, an implementation method for starting the host module 112 is provided: the local proxy unit 3 is started, and then sends a control instruction to the host module 112 in the corresponding connected remote execution unit 11 through the communication unit 2 by the start control module 31 included therein to start the host module 112, so as to start the remote function component 111 corresponding to the host module 112, and complete the registration process of the remote execution unit 11 through the registration management component 23.
In the preferred embodiment of the present invention, the above technical solution is used to solve the situation of abnormal shutdown or abnormal restart of the home agent unit 3. If the start control module 31 is not provided, when the local proxy unit 3 is abnormally shut down or abnormally restarted, the corresponding remote function component 111 disposed in the remote execution unit 11 is not shut down or restarted, and the registration request is not sent to the local proxy unit 3 again to complete the registration, so that the relevant information is also missing in the corresponding system configuration information. A corresponding start control module 31 is therefore provided in the home agent unit 3 to solve the above-mentioned problem. In other words, by providing the corresponding start-up control module 31 in the home agent unit 3, start-up and shut-down of the home agent unit 3 and start-up and shut-down of the corresponding remote function component 111 can be synchronized, thereby avoiding the above-described problem.
In a preferred embodiment of the present invention, as still shown in fig. 4, the host module 112 includes:
the registration component 1121 is connected to the communication unit 2. In a preferred embodiment of the present invention, the registration component 1121 is configured to send a registration request to the communication unit 2 after the host module 112 is started, so as to register the host module with the home agent unit 3. In the preferred embodiment of the present invention, as described above, when the host module 112 is restarted, it actively requests registration from the home agent unit 3 to complete the corresponding registration process.
The status monitor component 1122 is used to detect the operation status of the home agent unit and to quit the operation of the host module when the home agent unit stops operating.
In a preferred embodiment of the present invention, the condition monitoring component 1122 functions as: a "PING" request is sent to the home agent unit 3 at predetermined intervals to check if the home agent unit is still operating and to take the home module out of service when the home agent unit stops operating (i.e. the "PING" request fails). Therefore, the occurrence of ' Zombie Process ' (Zombie Process) ', namely, the situation that the corresponding host module which can not obtain the request because of losing the connection with the local proxy unit continuously occupies the system resource can be avoided.
In the preferred embodiment of the present invention, since the local proxy unit is remotely connected to the remote server, the remote execution unit 11 and the local proxy unit 3 can be configured to operate under different operating systems, thereby solving the problem of using a third-party component across platforms.
In a preferred embodiment of the present invention, as shown in fig. 2, the local execution module 34 includes at least one local function unit 341, and the local function unit 341 is configured to perform a predetermined function.
In a preferred embodiment of the present invention, the home agent unit 3 further includes:
the local management component 35 is connected to the interface module 31 and the local execution module 34 respectively. In a preferred embodiment of the present invention, the local management component 35 is configured to select a corresponding local function component according to a request of an application program, and control the selected local function component to execute a predetermined function; and transmits the execution result of the local function component 341 to the application program through the interface module.
Specifically, in the preferred embodiment of the present invention, after obtaining the request of the application, the local management component 35 extracts the type of the corresponding local function component 341 according to the request (for example, for the C # development platform, obtain. NET CLR type), then selects the corresponding local function component 341 (for example, selects the corresponding local function component 341 using. NET CTS), and then sends the request of the application (converted into the corresponding instruction) to the selected local function component 341 for processing to form the corresponding execution result and returning the corresponding execution result to the currently running application.
Therefore, in the preferred embodiment of the present invention, similar to the above, the user may make a corresponding request through the currently running application to invoke the locally located third-party component (local function component) to execute the predetermined function, so that the processing forms a corresponding execution result and returns the corresponding execution result.
In a preferred embodiment of the present invention, the local execution module 34 further includes:
the local registration components 342 are respectively connected to the local function components 341, and are configured to register the corresponding local function component 342 in the local proxy unit according to the request of the local execution module 34. In the preferred embodiment of the present invention, the local registration information associated with the local function component 342 is also included in the system configuration information and sent to the currently running application to inform the currently available local function component.
The above process is different from the data interaction process of the remote execution unit 11:
the process simplification for the respective request to invoke the remote execution unit 11 to execute the application may be: the local proxy unit 3 starts a corresponding proxy client module 25 arranged in the communication unit 2 for the corresponding remote execution unit 11 according to the request of the application program, so as to maintain the connection between the local proxy unit 3 and the corresponding execution unit 11, and send the request to the remote function component 111 in the corresponding remote execution unit 11 for processing, and form and return a corresponding execution result. The connection state of the remote execution unit 11 is obtained by registering the host module 112 in the remote execution unit with the local proxy unit 3;
and accordingly, the process simplification for invoking the native execution module 34 to execute the corresponding request of the application may be: the local proxy unit 3 searches for the type of the corresponding local execution module 34 according to the request of the application program, and selects the corresponding local execution module 34 to send the request to the local function component 341 in the corresponding local execution module 34 for processing, and forms a corresponding execution result and returns the corresponding execution result.
The difference of the two processing processes fully considers the different processing processes of the third-party component under the two conditions of being arranged at the remote server side and being arranged at the local side, so that the two conditions can be considered simultaneously by applying the technical scheme of the invention.
In summary, in the technical scheme of the invention:
an execution unit (a remote execution unit or a local execution module) comprising a third-party component is built in a remote server or a local agent unit, a request and corresponding execution parameters of a currently running application program are acquired through the local agent unit, the request and the corresponding execution parameters are converted into data in a data format acceptable by the remote server through a communication unit and sent to a corresponding remote execution unit, or a corresponding local execution module is directly selected according to the request of the application program;
when the remote execution unit is selected, the corresponding remote function component in the selected remote execution unit receives the instruction corresponding to the request and executes the corresponding preset function to form a corresponding execution result, the corresponding execution result is converted into data with a data format acceptable by the local proxy unit through the communication unit and is sent to the local proxy unit, and the local proxy unit returns the execution result to the application program for use; or,
when the local execution module is selected, the corresponding local function component in the local execution module receives the instruction corresponding to the request and executes the corresponding predetermined function to form a corresponding execution result, and the local proxy unit directly returns the execution result to the application program for use.
The technical scheme can better solve the problem that the third-party component calling cannot be carried out in a cross-platform mode in the prior art, and the system in the technical scheme is simple to operate and convenient to deploy.
In the preferred embodiment of the present invention, a proxy framework service method is provided based on the proxy framework service system including the local component described above.
In a preferred embodiment of the present invention, in the service method, at least one remote server including a remote execution unit for executing a predetermined function is provided in advance;
a home agent unit including at least one home execution module is provided in advance. In a preferred embodiment of the present invention, the local execution module is configured to execute a predetermined function;
and enabling a remote connection between the local proxy unit and a remote execution unit in the remote server.
In a preferred embodiment of the present invention, as shown in fig. 5, in the above proxy framework service method, the service method based on the remote execution unit, that is, the service method for requesting the remote third-party component to execute the corresponding function specifically includes:
step S1a, the local proxy unit obtains the request of the current running application program;
in a preferred embodiment of the invention, the home agent unit provides system configuration information to the application via a corresponding interface. In a preferred embodiment of the present invention, the interface may be a Software Development Kit (SDK) interface, which is used to provide corresponding system configuration data to the application and the application openers, so that the application can successfully connect with the local proxy unit and work.
In the preferred embodiment of the present invention, in the step S1a, the home agent unit obtains the request of the currently running application and the execution parameters corresponding to the request. In a preferred embodiment of the present invention, the execution parameters may be specific to the application requesting execution, as described above.
In a preferred embodiment of the present invention, the request and the corresponding execution parameter of the application program are sent to the corresponding remote execution unit through a remote management module disposed in the local proxy unit; and providing, by the remote management module, a connection status between the remote execution unit and the local proxy unit for inclusion in the system configuration information.
Step S2a, the local proxy unit selects the corresponding remote execution unit according to the request, so as to execute the request remotely and form the corresponding execution result;
in a preferred embodiment of the present invention, a method for implementing communication between a local proxy unit and a remote execution unit may include: the local proxy unit converts the request sent by the communication unit and the corresponding execution parameters into a format acceptable by the remote server and receives the format by the remote server; the execution result sent by the remote server through the communication unit is converted into a format acceptable by the local proxy unit and received by the local proxy unit.
In other words, in the preferred embodiment of the present invention, the communication unit is used for converting the data communicated between the local proxy unit and the remote server into the data format that can be recognized by the receiving party, so as to solve the problem of data communication format mismatch between different systems of different platforms.
In a preferred embodiment of the present invention, when the local proxy unit and the remote server communicate remotely through the communication unit, the communication unit monitors a connection status between the local proxy unit and the remote execution unit, and sets the connection status in the system configuration information for the application program to call;
and/or
The communication unit receives the registration request of the remote execution unit, and registers the corresponding remote execution unit to the local proxy unit according to the registration request, so that the local proxy unit informs the currently available remote execution unit of the application program.
In the preferred embodiment of the present invention, each remote execution unit is provided with at least one corresponding remote function component and a host module;
in the preferred embodiment of the present invention, in the step S2a, the remote execution unit receives the request and selects a corresponding one of the remote function components to execute the predetermined function and generate a corresponding execution result;
starting the remote function component by adopting the host module, converting the request into an instruction which can be accepted by the corresponding remote function component, and controlling the remote function component to execute a preset function by the instruction; and
and sending the execution result to the local agent unit through the communication unit.
In the preferred embodiment of the present invention, in the step S2a, when the local proxy unit sends the request through the communication unit, the remote management module is used to form a proxy client process in the communication unit, so as to connect the local proxy unit and the corresponding remote execution unit.
In step S3a, the local proxy element returns the remotely obtained execution result to the application for use by the application.
In a preferred embodiment of the present invention, the home agent unit controllably activates the host module through the communication unit; and/or
When the home module is started, the home module sends a registration request to the communication unit to register the home module with the home agent unit.
Accordingly, in the preferred embodiment of the present invention, the host module is used to detect the operating status of the local proxy unit, and control the host module to quit operation when the local proxy unit stops operating.
Specifically, in the preferred embodiment of the present invention, as described above, if the host module is not used to perform the control of the restart and/or registration, when the local proxy unit is turned off or restarted, the remote execution units cannot be synchronously turned off and/or restarted, that is, cannot be re-registered when the local proxy unit is restarted, after the local proxy unit is restarted, the system configuration information included therein does not include the remote execution unit that was already in the started state before the local proxy unit is restarted, and therefore the currently running application program cannot know which remote execution units are available at this time. Based on the consideration of the above problems, in the technical solution of the present invention, the host module is adopted to achieve synchronization of start-up and shut-down between the local proxy unit and the remote execution unit, thereby ensuring that the remote execution unit can register with the local proxy unit at the first time.
In the preferred embodiment of the present invention, as described above, the remote execution unit and the local proxy unit operate under different operating systems.
In a preferred embodiment of the present invention, as shown in fig. 6, the service method based on the local execution module, that is, the service method requesting the local third-party component to execute the corresponding function specifically includes:
step S1b, the local proxy unit obtains the request of the current running application program;
step S2b, the local proxy unit selects the corresponding local execution module according to the request to execute the request and form the corresponding execution result;
in a preferred embodiment of the present invention, as described above, the local proxy unit selects the corresponding local execution module according to the request of the application program, and controls the corresponding local function component in the selected local execution module to execute the preset function, so as to process and obtain the corresponding execution result and return the corresponding execution result.
In a preferred embodiment of the present invention, a local management component is disposed in the local execution module. In a preferred embodiment of the present invention, the local management component selects a corresponding local execution module according to a request of a currently running application program, so as to control the corresponding local function component to execute a predetermined function and process the predetermined function to form a corresponding execution result.
In the preferred embodiment of the present invention, a local registration component is employed to register the corresponding local function component in the local proxy unit according to the corresponding registration request.
At step S3b, the local proxy unit returns the execution result formed by the local execution module processing to the application program for use by the application program.
In a preferred embodiment of the present invention, the local execution module and the local proxy unit operate under the same operating system.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (25)

1. A proxy framework service system including a local component,
providing at least one remote server, wherein each remote server is provided with a remote execution unit for executing a preset function;
providing at least one native execution module for performing a predetermined function;
providing a communication unit;
providing a local agent unit comprising the local execution module, and selecting the corresponding remote execution unit or the local execution module to execute the request according to the request of the currently running application program, and returning the execution result to the application program after obtaining the execution result;
the local proxy unit is connected with the remote execution unit arranged at the remote server through the communication unit.
2. The proxy framework service system of claim 1, wherein the home proxy unit comprises:
an interface module to connect the application, the interface module comprising:
a configuration information acquisition component to provide system configuration information to the application;
and the instruction execution component is used for receiving the request of the application program and the execution parameter corresponding to the request and sending an execution result to the application program.
3. The proxy framework service system of claim 2, wherein the home proxy unit comprises:
and the remote management module is connected with the interface module and the communication unit and used for sending the request from the application program acquired by the interface module and the execution parameter corresponding to the request to the corresponding remote execution unit through the communication unit, sending the execution result of the remote execution unit to the interface module and providing the connection state of the remote execution unit and the local agent unit to the configuration information acquisition component.
4. The proxy framework service system of claim 3, wherein the communication unit comprises:
at least one agent client module connected with the remote management module;
when the local proxy unit sends the request to the remote execution unit, the remote management module starts the corresponding proxy client module to maintain the connection between the local proxy unit and the corresponding remote execution unit.
5. The proxy framework service system of claim 1, wherein the communication unit comprises:
the conversion component is used for converting the request sent by the local proxy unit into a format acceptable by the remote server and sending the format to the remote server; converting the execution result generated by the remote server into a format acceptable by the local proxy unit, and sending the execution result to the local proxy unit; and/or
A monitoring component to monitor a connection status between the local proxy unit and the remote execution unit; and/or
And the registration management component is used for receiving the registration request of the remote execution unit and registering the corresponding remote execution unit to the local agent unit according to the registration request.
6. The proxy framework service system of claim 5 wherein the communication unit maintains communication between the local proxy unit and the remote execution unit via a socket communication mode.
7. The proxy framework service system of claim 1, wherein the remote execution unit comprises:
at least one remote function component, which is used for executing the predetermined function according to the request and generating the corresponding execution result;
the host module is respectively connected with the communication unit and the remote function component and used for starting the remote function component, converting the request acquired by the communication unit into a corresponding instruction acceptable by the remote function component and controlling the remote function component to execute a preset function according to the corresponding instruction; and sending the execution result of the remote function component to the local proxy unit through the communication unit.
8. The proxy framework service system of claim 7, wherein the home proxy unit comprises:
and the starting control module is connected with the corresponding host module through the communication unit and used for controllably starting the corresponding host module.
9. The proxy framework service system of claim 7, wherein the host module comprises:
and the registration component is connected with the communication unit and used for sending a registration request to the communication unit after the host module is started so as to register the host module to the local agent unit.
10. The proxy framework service system of claim 7, wherein the host module comprises:
and the state monitoring component is used for detecting the working state of the local agent unit and enabling the host module to quit operation when the local agent unit stops working.
11. The proxy framework service system of claim 2, wherein the local execution module comprises:
at least one local function component, which is used for executing the predetermined function according to the request and generating the corresponding execution result;
the home agent unit comprises:
the local management component is respectively connected with the interface module and the local execution module and is used for selecting the corresponding local function component according to the request of the application program and controlling the selected local function component to execute a preset function; and sending the execution result of the local function component to the application program through the interface module.
12. The proxy framework service system of claim 11, wherein the local execution module further comprises:
and the local registration components are respectively connected with the local function components and used for registering the corresponding local function components in the local proxy unit according to the request of the local execution module.
13. The proxy framework service system of any of claims 1-12, wherein the remote execution unit operates under a different operating system than the local proxy unit; and/or
The local execution module and the local agent unit work under the same operating system.
14. A proxy framework service method comprising a local component, comprising:
providing at least one remote server including a remote execution unit for executing a predetermined function;
providing a local proxy unit including a local execution module;
enabling a remote connection between the local proxy unit and the remote execution unit in the remote server;
in the proxy framework service method, the service method based on the remote execution unit specifically includes:
step S1a, the local proxy unit obtains a request of a currently running application program;
step S2a, the local proxy unit selecting the corresponding remote execution unit according to the request, so as to execute the request remotely and form a corresponding execution result;
step S3a, the local proxy unit returning the execution result formed by the remote execution unit processing to the application program for use by the application program;
in the proxy service method, the service method based on the local execution module specifically includes:
step S1b, the local proxy unit obtains a request of a currently running application program;
step S2b, the local proxy unit selects the corresponding local execution module according to the request, so as to execute the request and form a corresponding execution result;
step S3b, the local proxy unit returns the execution result formed by the processing of the local execution module to the application program for use by the application program.
15. The proxy framework service method of claim 14, wherein the home agent unit provides system configuration information to the application program through a corresponding interface;
in step S1a, the local proxy unit obtains the request of the currently running application program and the execution parameter corresponding to the request through the interface.
16. The proxy framework service method of claim 15, wherein the request of the application program and the corresponding execution parameter are sent to the corresponding remote execution unit through a remote management module provided in the local proxy unit; and providing, by the remote management module, a connection status between the remote execution unit and the local proxy unit for inclusion in the system configuration information.
17. The proxy framework service method of claim 16, wherein in the step S2a, when the local proxy unit sends the request through the communication unit, a proxy client process is formed in the communication unit using the remote management module to connect the local proxy unit with the corresponding remote execution unit.
18. The proxy framework services method of claim 14, wherein the request and corresponding execution parameters sent by the local proxy unit via the communication unit are converted into a format acceptable by the remote server and received by the remote server;
the execution result sent by the remote server through the communication unit is converted into a format acceptable by the local proxy unit and received by the local proxy unit.
19. The proxy framework services method of claim 14, wherein when the local proxy unit remotely communicates with the remote server via the communication unit:
monitoring a connection status between the local proxy unit and the remote execution unit; and/or
And receiving a registration request of the remote execution unit, and registering the corresponding remote execution unit to the local agent unit according to the registration request.
20. The proxy framework service method according to claim 14, wherein each of the remote execution units is provided with at least one corresponding remote function module and a host module, each of the remote function modules being configured to execute a predetermined function;
in step S2a, the remote execution unit receives the request and selects a corresponding one of the remote function components to execute a predetermined function and generate a corresponding execution result;
starting the remote function component by adopting the host module, converting the request into a corresponding instruction acceptable by the remote function component, and controlling the remote function component to execute a preset function by the instruction; and
and sending the execution result to the local agent unit through the communication unit.
21. The proxy framework service method of claim 20, wherein:
the home agent unit controllably activating the host module via the communication unit; and/or
When the home module is started, the home module sends a registration request to the communication unit to register the home module with the home agent unit.
22. The proxy framework service method of claim 20, wherein the home module is adapted to detect an operational status of the home agent unit and to control the home module to exit from operation when the home agent unit stops operating.
23. The proxy framework service method of claim 14, wherein at least one local function component is provided in each of the local execution modules, each of the local function components being configured to execute a predetermined function;
setting a local management component in the local agent unit;
in step S2b, the local management component selects a corresponding one of the local execution modules according to the request of the currently running application program, so as to control the corresponding local function component to execute a predetermined function and process the predetermined function to form a corresponding execution result.
24. The proxy framework service method of claim 23, wherein the corresponding local function component is registered in the local proxy unit according to the corresponding registration request of the local execution module.
25. A proxy framework service method as claimed in any one of claims 14 to 24, wherein the remote execution unit and the local proxy unit operate under different operating systems; and/or
The local execution module and the local agent unit work under the same operating system.
CN201510199127.5A 2015-04-23 2015-04-23 A kind of agent framework service system including local component and method Pending CN106161409A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510199127.5A CN106161409A (en) 2015-04-23 2015-04-23 A kind of agent framework service system including local component and method
PCT/CN2016/076948 WO2016169375A1 (en) 2015-04-23 2016-03-22 Proxy framework service system comprising local assembly, and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510199127.5A CN106161409A (en) 2015-04-23 2015-04-23 A kind of agent framework service system including local component and method

Publications (1)

Publication Number Publication Date
CN106161409A true CN106161409A (en) 2016-11-23

Family

ID=57143715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510199127.5A Pending CN106161409A (en) 2015-04-23 2015-04-23 A kind of agent framework service system including local component and method

Country Status (2)

Country Link
CN (1) CN106161409A (en)
WO (1) WO2016169375A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010380A (en) * 2019-12-06 2020-04-14 杭州视洞科技有限公司 Cross-regional service integration scheme
CN111064588A (en) * 2018-10-16 2020-04-24 上海欣诺通信技术股份有限公司 Message processing method, system, device and storage medium
CN112445607A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN113672403A (en) * 2021-07-30 2021-11-19 北京数码大方科技股份有限公司 Interface calling method and interface calling device in information system and management information system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534316A (en) * 2008-03-13 2009-09-16 洪发生 Remote service system
CN102694866A (en) * 2012-06-01 2012-09-26 北京首钢自动化信息技术有限公司 Service request broker system in distributed network environment
CN103425517A (en) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 Method for extending software functions, upper-layer software client and remote function server
CN103729292A (en) * 2013-12-30 2014-04-16 瑞达信息安全产业股份有限公司 Cross-host cross-platform remote command invoking method and system
CN203894744U (en) * 2013-12-30 2014-10-22 瑞达信息安全产业股份有限公司 Cross-host and cross-platform remote order calling system
CN104142856A (en) * 2013-05-07 2014-11-12 华为技术有限公司 Service program call method, service program call system and intelligent equipment thereof
CN104158906A (en) * 2014-08-29 2014-11-19 五八同城信息技术有限公司 Server agent manipulation system and manipulation method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631033B (en) * 2008-07-14 2013-02-27 中兴通讯股份有限公司 Method, system, server and client for calling remote component
CN101727449A (en) * 2008-10-28 2010-06-09 国际商业机器公司 System and method for processing local file by utilizing remote application
US8266201B2 (en) * 2010-03-29 2012-09-11 The Aerospace Corporation System and method for distributing processing of a single-process application having first and second objects in a network having local and remote processes
CN102629198B (en) * 2012-02-29 2015-05-13 北京大学 On-demand remote execution method of computational logic in software application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534316A (en) * 2008-03-13 2009-09-16 洪发生 Remote service system
CN103425517A (en) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 Method for extending software functions, upper-layer software client and remote function server
CN102694866A (en) * 2012-06-01 2012-09-26 北京首钢自动化信息技术有限公司 Service request broker system in distributed network environment
CN104142856A (en) * 2013-05-07 2014-11-12 华为技术有限公司 Service program call method, service program call system and intelligent equipment thereof
CN103729292A (en) * 2013-12-30 2014-04-16 瑞达信息安全产业股份有限公司 Cross-host cross-platform remote command invoking method and system
CN203894744U (en) * 2013-12-30 2014-10-22 瑞达信息安全产业股份有限公司 Cross-host and cross-platform remote order calling system
CN104158906A (en) * 2014-08-29 2014-11-19 五八同城信息技术有限公司 Server agent manipulation system and manipulation method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064588A (en) * 2018-10-16 2020-04-24 上海欣诺通信技术股份有限公司 Message processing method, system, device and storage medium
CN111064588B (en) * 2018-10-16 2022-12-02 上海欣诺通信技术股份有限公司 Message processing method, system, device and storage medium
CN112445607A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN112445607B (en) * 2019-09-03 2024-03-08 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN111010380A (en) * 2019-12-06 2020-04-14 杭州视洞科技有限公司 Cross-regional service integration scheme
CN113672403A (en) * 2021-07-30 2021-11-19 北京数码大方科技股份有限公司 Interface calling method and interface calling device in information system and management information system
CN113672403B (en) * 2021-07-30 2024-03-29 北京数码大方科技股份有限公司 Interface calling method and device in information system and management information system

Also Published As

Publication number Publication date
WO2016169375A1 (en) 2016-10-27

Similar Documents

Publication Publication Date Title
CN106161409A (en) A kind of agent framework service system including local component and method
US20170295062A1 (en) Method, device and system for configuring runtime environment
CN108984466A (en) The exchange method of BMC and server OS, system
CN103107921B (en) Method for supervising and system
CN112948212A (en) RPA task state monitoring method, device and computer storage medium
CN110708366A (en) Plug-in process management method, related method and related device
CN117093317B (en) Remote control method and device for computer, electronic equipment and storage medium
CN110659184A (en) Health state checking method, device and system
CN106878467B (en) Method for remotely controlling equipment and remote control system
CN104486149B (en) A kind of finite state machine method for ground test
CN101499031A (en) Software bug feedback system and method
CN103139036B (en) Electronic equipment and information processing method thereof
CN107277107B (en) Application debugging method, device and system
CN111176893A (en) Computer remote control method, device, system and storage medium
WO2016169374A1 (en) Proxy framework service system and method
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
CN111966420B (en) Electronic device, remote control method thereof, terminal device and readable storage medium
CN112800604B (en) Simulation method, device, equipment and storage medium applied to industrial detection
US9459914B2 (en) Processing method for control apparatus involves controlling job subsequent to proceeding job based on execution result acquired by executing the proceeding job
CN110633163B (en) Development method for preventing application program from crashing based on multi-process server
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN114619462A (en) Remote desktop control method based on robot flow automation
CN105808418B (en) Test machine register method, apparatus and system
CN113938518A (en) Remote connection service method, device and equipment
CN104503777A (en) Centralized management system and method for operating systems of thin clients

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123