CN114979288A - Method, device and system for controlling client, storage medium and electronic equipment - Google Patents

Method, device and system for controlling client, storage medium and electronic equipment Download PDF

Info

Publication number
CN114979288A
CN114979288A CN202210536820.7A CN202210536820A CN114979288A CN 114979288 A CN114979288 A CN 114979288A CN 202210536820 A CN202210536820 A CN 202210536820A CN 114979288 A CN114979288 A CN 114979288A
Authority
CN
China
Prior art keywords
client
long connection
module
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210536820.7A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210536820.7A priority Critical patent/CN114979288A/en
Publication of CN114979288A publication Critical patent/CN114979288A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a method, a device, a system, a storage medium and electronic equipment for controlling a client. Relates to the field of financial science and technology, wherein the method comprises the following steps: receiving a behavior control request for managing and controlling a client; responding to the behavior control request, converting the operation instruction and the request main body information into data streams, and converting the client information of a plurality of clients contained in the client set into long connection routing information; according to the long connection routing information, searching a target long connection which is pre-established with the client of each client indicated by the client information; and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction. The invention solves the technical problems that the background system of the financial institution in the related technology can not effectively control the running client and can not intervene the running process of the client.

Description

Method, device and system for controlling client, storage medium and electronic equipment
Technical Field
The application relates to the field of financial science and technology, in particular to a method, a device, a system, a storage medium and electronic equipment for controlling a client.
Background
In the related art, a mobile client product \ software developed by a financial institution mostly adopts a seven-Layer application Layer HTTPS Protocol (hypertext Transfer Protocol over Secure Socket Layer, hypertext Transfer Secure Protocol) to realize communication between a mobile client and a financial institution background system, and an interaction flow is approximately: after a user starts a client, the client actively sends a request message to a financial institution background system according to an HTTPS protocol, the financial institution background system analyzes the message according to an agreed rule so as to identify the request intention of the client, subsequently returns a response message to the client according to established service logic, and the client analyzes the response message sent by the financial institution background system according to the agreed rule and realizes activities such as graphical interface display, service logic processing, user interaction and the like according to the returned message. According to the analysis, the background service system always passively waits for the client to pull data, and if a service at a certain moment has a requirement for real-time intervention of client behaviors, the background service system can only wait for the client to trigger a certain specific function or pull a latest instruction from the server when the mobile client is restarted.
Because there is no effective means for the server to actively notify the client, if a background command is requested in a periodic polling manner, the polling frequency setting is a problem, when the polling is too frequent, the HTTP protocol is heavy, the traffic consumption is large and the operation performance of the client mobile terminal is affected, and when the polling frequency is too low, the real-time requirement cannot be met, so the actual related technical scheme generally waits for the client to manually trigger a certain specific function and for the client to restart, and there is no effective intervention means for the running client.
Aiming at the problems that the background system of a financial institution in the related technology has low control capability on the running mobile client and cannot intervene, an effective solution is not provided at present.
Disclosure of Invention
The application mainly aims to provide a method, a system, a device and electronic equipment for controlling a client, so as to solve the technical problems that a background system of a financial institution in the related art cannot effectively control the running client and cannot intervene in the running process of the client.
In order to achieve the above object, according to an aspect of the present application, there is provided a method for controlling a client, applied to a server, where the server establishes a long connection with the client in advance, the method including: receiving a behavior control request for managing and controlling the client, wherein the behavior control request at least carries: an operation instruction and request main body information of the client side are received, wherein the operation instruction at least carries: a set of customers; responding to the behavior control request, converting the operation instruction and the request main body information into data streams, and converting the client information of a plurality of clients contained in the client set into long connection routing information; searching target long connection pre-established with the client of each client indicated by the client information according to the long connection routing information; and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
Optionally, before receiving the behavior control request for managing and controlling the client, the method further includes: receiving a management and control requirement sent by an external device to a background terminal; displaying a customer selection interface, an instruction selection interface and a parameter selection interface based on the control requirement; receiving a customer group selected by the external equipment, and determining the customer set; receiving an operation instruction selected by the external equipment, and determining an instruction type; receiving parameters configured by the external equipment to obtain parameter configuration information; and combining the client set, the operation instruction, the instruction type and the parameter configuration information to generate the behavior control request.
Optionally, the step of converting the operation instruction and the request subject information into a data stream in response to the behavior control request includes: responding the behavior control request, and packaging the operation instruction and the request main body information into a target message according to a pre-configured message format; and converting the target message into the data stream.
Optionally, the step of finding, according to the long connection routing information, a target long connection pre-established with the client of each client indicated by the client information includes: sending the data stream and the long connection routing information to a server routing module; the server routing module finds a server long connection module which is in a pre-established association relationship with the client of each client indicated by the client information according to the long connection routing information, and forwards the data stream and the long connection routing information to the server long connection module; and the server long connection module searches the target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information.
Optionally, before receiving the behavior control request for managing and controlling the client, the method further includes: the client side initiates a connection establishment request, wherein the connection establishment request at least comprises: IP address and port information of the target server; and the client responds to the connection establishment request, and applies for establishing long connection based on a transmission layer with a long connection module of the target server based on the IP address and the port information of the target server.
Optionally, after applying for establishing a long connection based on a transport layer with a long connection module of the target server, the method further includes: after the target server successfully establishes long connection with the client, initiating the connection information of the registered user to a server routing module; and the server routing module records the connection information of the registered user.
Optionally, after sending the data stream to the client of each client indicated by the client information through the target long connection, the method further includes: after receiving the data stream, the long connection module of the client forwards the data stream to a client message analysis module; and the client message analysis module analyzes the data stream according to a preset message analysis rule to obtain the operation instruction, and sends the operation instruction to a client instruction distribution module.
Optionally, after sending the operation instruction to the client instruction distribution module, the method further includes: the client instruction distribution module sends the operating instruction to a logic processing module of a target client according to a pre-configured distribution rule and the instruction type of the operating instruction; and the logic processing module of the target client finishes the service content according to the instruction information of the operation instruction.
In order to achieve the above object, according to another aspect of the present application, there is provided a method for controlling a client, applied to a client, where the client establishes a long connection with a server in advance, the method including: receiving a data stream sent by a server, wherein the data stream at least comprises: for an operation instruction and request main body information of a client, the operation instruction at least carries: a set of customers and an instruction type; analyzing the data stream according to a preset message analysis rule to obtain the operation instruction; sending the operation instruction to a logic processing module of a target client according to a preset distribution rule and the instruction type; and controlling a logic processing module of the target client to complete service content according to the instruction information of the operation instruction.
In order to achieve the above object, according to another aspect of the present application, there is also provided a control system of a client, including a client and a server, wherein the server includes: the system comprises a server long connection module, a system management and control module, a server routing module, a server message analysis module and a server instruction receiving module, wherein the server long connection module is responsible for establishing long connection with a client long connection module and is responsible for mutually transmitting data streams with the client through long connection; the server routing module is responsible for maintaining user connection routing information; the server message analysis module is responsible for converting a target message into a data stream which is sent to the client through long connection and analyzing the data stream sent by the client into an appointed message; the server instruction receiving module is responsible for receiving an operation instruction sent by the system management and control module and converting the operation instruction into the target message; the system management and control module provides an operation interface for a background administrator and receives an operation instruction initiated by external equipment; the client comprises: the system comprises a client long connection module, a client message analysis module, a client instruction distribution module and a logic processing module, wherein the client long connection module is responsible for establishing long connection with a server long connection module; the client message analysis module is responsible for receiving the data stream transmitted by the client long connection module and analyzing the data stream into an operation instruction according to an agreed rule; the client instruction distribution module is responsible for distributing the operation instruction to a logic processing module of a target client; and the logic processing module completes the service content according to the instruction information of the operation instruction.
Optionally, the client further includes: a client HTTP module, configured to initiate a connection establishment request to a server HTTP service module, where the connection establishment request at least includes: IP address and port information of the target server; and the client long connection module applies for establishing long connection based on a transmission layer with the server long connection module by using the IP address and the port information of the target server.
In order to achieve the above object, according to another aspect of the present application, there is provided a control apparatus for a client, applied to a server, the server and the client establishing a long connection in advance, including: a first receiving unit, configured to receive a behavior control request for managing and controlling the client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers; a conversion unit, configured to convert the operation instruction and the request subject information into a data stream in response to the behavior control request, and convert the client information of the multiple clients included in the client set into long connection routing information; the searching unit is used for searching the target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information; and the first sending unit is used for sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
In order to achieve the above object, according to another aspect of the present application, there is provided a control apparatus for a client, applied to the client, the client and a server establishing a long connection in advance, including: a second receiving unit, configured to receive a data stream sent by the server, where the data stream at least includes: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type; the analysis unit is used for analyzing the data stream according to a preset message analysis rule to obtain the operation instruction; the second sending unit is used for sending the operation instruction to a logic processing module of a target client according to a preset distribution rule and the instruction type; and the control unit is used for controlling the logic processing module of the target client to complete the service content according to the instruction information of the operation instruction.
According to another aspect of the present application, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above control methods for a client via execution of the executable instructions.
According to another aspect of the present application, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the above methods for controlling a client.
In the application, the following steps are adopted, a behavior control request for managing and controlling a client is received first, wherein the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: and the client set responds to the behavior control request, converts the operation instruction and the request main body information into data streams, converts the client information of a plurality of clients contained in the client set into long connection routing information, then finds out target long connections pre-established with the clients of the clients indicated by the client information according to the long connection routing information, and finally sends the data streams to the clients of the clients indicated by the client information through the target long connections so as to control the clients to finish the service content indicated by the operation instruction. In the application, the behavior control request to the client is sent to the clients of all the clients through the long connection established in advance so as to control the clients to complete operation, and the purpose of effectively intervening the clients by the background server is achieved, so that the technical effect of improving the control capability of the background system to the clients is achieved, and the technical problems that the background system of the fusion mechanism in the related art cannot effectively control the clients in operation and cannot intervene the operation process of the clients are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a schematic diagram of a control method for a client according to an embodiment of the present application;
fig. 2 is a schematic diagram of another control method for a client according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative system architecture for controlling real-time behavior of a client in accordance with the present invention;
fig. 4 is a schematic diagram of a control device for a client according to an embodiment of the present application;
fig. 5 is a schematic diagram of another control device for a client according to an embodiment of the present application;
fig. 6 is a block diagram of a hardware structure of an electronic device (or a mobile device) of a method of controlling a client according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referring to the embodiments of the present application are explained below:
open System interconnection reference model (Open System Interconnect, OSI for short): the method is an open system interconnection reference model and provides a framework of a functional structure for an open interconnection information system. It comprises from low to high: a physical layer, a data link layer, a network layer, a transport layer, a session layer, a presentation layer, and an application layer.
Long connection: it means that a plurality of data packets can be continuously transmitted on a connection, and if no data packet is transmitted during the connection holding period, a link detection packet needs to be transmitted by two sides.
It should be noted that relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data that are authorized by the user or sufficiently authorized by various parties. For example, an interface is provided between the system and the relevant user or organization, before obtaining the relevant information, an obtaining request needs to be sent to the user or organization through the interface, and after receiving the consent information fed back by the user or organization, the relevant information is obtained.
The invention can be applied to various software products, control systems and client (including but not limited to mobile clients, PCs and the like) control systems of various financial institutions, the software products are taken as an example for illustration, and the business contents (including but not limited to business functions of transfer, financing, fund payment, check, advertisement, recommendation and the like) of the financial institutions can be realized through the software products installed on the mobile clients.
The invention can enable background management personnel of the financial institution to quickly and efficiently manage and control the behavior of the client in current operation under emergency, is beneficial to improving the safety of a business system of the financial institution, and has small influence on the performance of a processor of the mobile equipment of the client and low consumption of network flow of the equipment. The present application will be described in detail with reference to various embodiments.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for controlling a client, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that herein.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a schematic diagram of a control method for a client according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S101, receiving a behavior control request for managing and controlling a client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers;
step S102, responding to the behavior control request, converting the operation instruction and the request main body information into data flow, and converting the client information of a plurality of clients contained in the client set into long connection routing information;
step S103, according to the long connection routing information, finding out the target long connection which is pre-established with the client of each client indicated by the client information;
and step S104, transmitting the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
Through the steps, a behavior control request for managing and controlling the client is received, wherein the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers; responding to the behavior control request, converting the operation instruction and the request main body information into data streams, and converting the client information of a plurality of clients contained in the client set into long connection routing information; according to the long connection routing information, searching a target long connection which is pre-established with the client of each client indicated by the client information; and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction. In this embodiment, a behavior control request for a client is sent to the clients of each client through a long connection established in advance to control the clients to complete operations, so that the purpose of effectively intervening the clients by a background server is achieved, the technical effect of improving the control capability of the background system on the clients is achieved, and the technical problem that the background system of the fusion mechanism in the related art cannot effectively control the running clients and cannot intervene the running process of the clients is solved.
The embodiment uses the background server as an implementation body, and can receive configuration parameters and request instructions input by an external terminal to control a client terminal which is in long connection with the background server. The present invention will be described in detail below with reference to the above-described embodiments.
In an optional implementation manner, before receiving the behavior control request for managing the client, the present invention may further include: receiving a management and control requirement sent by an external device to a background terminal; displaying a customer selection interface, an instruction selection interface and a parameter selection interface based on the management and control requirements; receiving a client group selected by external equipment, and determining a client set; receiving an operation instruction selected by external equipment, and determining the type of the instruction; receiving parameters configured by external equipment to obtain parameter configuration information; and combining the client set, the operation instruction, the instruction type and the parameter configuration information to generate the behavior control request.
The external devices may include, but are not limited to: the management system (such as an application program system, a web site platform and the like) of the background server can be operated by the background management personnel through the external devices, and the management and control requirements of the client are sent to the background terminal of the server.
In this embodiment, the management system of the background server may display a client selection interface, an instruction selection interface, and a parameter selection interface; background management personnel can select a client group through the client selection interface to determine a client set, can select an operation instruction through the instruction selection interface to determine the type of the instruction, such as a switching instruction of a service function, a UI switching instruction, a log uploading instruction, a data transmission instruction and the like, can also configure parameters through the parameter selection interface to obtain parameter configuration information, and can generate the behavior control request and request a background server to manage and control a client by combining the client set, the instruction type, the parameter configuration information and the like.
The following describes in detail how to establish a long connection between a server and a client in the embodiment of the present invention.
As an optional implementation manner of this embodiment, before receiving a behavior control request for managing and controlling a client, the method further includes: the client initiates a connection establishment request, wherein the connection establishment request at least comprises: IP address and port information of the target server; the client responds to the connection establishment request, and applies for long connection based on a transmission layer with a long connection module of the target server based on the IP address and the port information of the target server.
Before a server manages and controls a client, a long connection needs to be established actively with the server through the client, when the long connection between the client and the server is abnormal, for example, the client does not actively perform data interaction with the server for a long time, the service can begin to manage and control the client, so before receiving a behavior control request for managing and controlling the client, the client can initiate a request for establishing connection with a target server, and in order to ensure that the client is accurately connected with the target server, the connection establishment request can include: and according to the IP address and the port information of the target server, the client can establish long connection based on a transmission layer with the target server.
As an optional implementation manner of this embodiment, after applying for establishing a long connection based on a transport layer with a long connection module of a target server, the method further includes: after the target server successfully establishes long connection with the client, initiating the connection information of the registered user to a server routing module; the server routing module records the connection information of the registered user.
After applying for establishing a long connection based on a transmission layer with a long connection module of a target server, in order to ensure that the long connection is quickly and accurately found in a project of managing and controlling a client by the server, the connection information of a registered user can be initiated to a server routing module, and the server routing module can record the connection information of the client registering the user.
After the target server establishes a long connection with the client, a request or instruction for managing and controlling the client may be received.
Step S101, receiving a behavior control request for managing and controlling a client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers.
In order to solve the problem that the server cannot effectively intervene the client and only passively receives the request sent by the client, so that system resources cannot be effectively utilized in the related art, in this embodiment, the server may receive a behavior control request for controlling the client, so as to implement services such as service switching, function switching, log collection and the like performed on the client.
The behavior control request can carry an operation instruction for operating the client and request main body information, the target user and the business operation performed on the target user client can be determined according to the operation instruction and the request main body information, and in order to effectively search the client, the operation instruction can carry client set information and is used for searching long connection which is established in advance between the server and the client.
Step S102, responding to the behavior control request, converting the operation instruction and the request main body information into data flow, and converting the client information of a plurality of clients contained in the client set into long connection route information.
Optionally, the step of converting the operation instruction and the request subject information into a data stream in response to the behavior control request includes: responding the behavior control request, and packaging the operation instruction and the request main body information into a target message according to a pre-configured message format; and converting the target message into a data stream.
In order to ensure that the operation instruction and the request subject information can be effectively sent to the client, the operation instruction and the request subject information can be packaged into a target message in a preconfigured message format, and the target message is converted into a data stream.
The pre-configured message format may be a data transmission format agreed with each other after the server and the client establish a long connection, and includes a message verification mode of the message, the length of each module of a message header, and the like.
After the operation instruction and the request main body information (or the operation user information) are encapsulated into a message format agreed with the client, the message and the sending target client information are sent to a server message analysis module so as to convert the message into data flow information, convert the user information into long connection route information, and send the data flow information and the long connection route information to a server for routing after the processing is finished.
Step S103, according to the long connection routing information, finding the target long connection which is pre-established with the client of each client indicated by the client information.
In order to facilitate the behavior control, data transmission can be effectively performed between the server and the client, the operation instruction and the request subject information carried in the control request can be converted into data streams, the client information of a plurality of clients included in the client set carried in the operation instruction is converted into long connection routing information, and the long connection routing information can be used for finding the target long connection which is pre-established by the client of each client, namely the long connection of the client requesting to control.
Optionally, the step of finding the target long connection pre-established with the client of each client indicated by the client information according to the long connection routing information includes: sending the data stream and the long connection routing information to a server routing module; the server routing module finds a server long connection module which is in a pre-established association relation with the client of each client indicated by the client information according to the long connection routing information, and forwards the data stream and the long connection routing information to the server long connection module; and the server long connection module searches the target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information.
After the behavior control request is sent to the server through the data stream, the server routing module can search the server long connection module which is used for establishing the association relationship in advance for the client of each client requesting to be controlled according to the long connection routing information, and the data stream can be sent to the long connection module according to the long connection routing information through the server routing module.
In this embodiment, the long connection module may further search, according to the received long connection routing information, a target long connection that is pre-established between the server and the client of the client that needs to be managed and controlled, that is, a target long connection that is pre-established between the server and the client of each client indicated by the client information.
The target long connection is searched through the long connection routing information, the purpose of quickly searching the long connection of the client needing the server to control is achieved, and the technical effect of improving the processing speed of the server to effectively intervene the client is achieved.
And step S104, transmitting the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
According to the target long connection, the data stream carrying the operation instruction and the request main body information can be sent to the client of each client indicated by the client information, namely, the client of the client group requested to be managed and controlled by the external equipment, so that the client is controlled to finish the service indicated by the operation instruction, the purpose of effectively intervening the client through the server is achieved, and the technical effect of improving the control capability of the background system on the client is achieved.
An optional implementation manner, after sending the data stream to the client of each client indicated by the client information through the target long connection, further includes: after receiving the data stream, the long connection module of the client forwards the data stream to a client message analysis module; and the client message analysis module analyzes the data stream according to a preset message analysis rule to obtain an operation instruction, and sends the operation instruction to the client instruction distribution module.
The long connection module of the client can send the data stream to a message analysis module of the client after receiving the data stream sent by the server routing module, the client can analyze the message in the data stream according to a preset message analysis rule after receiving the data stream to obtain an operation instruction for the current client, and send the operation instruction to an instruction distribution module of the client, and the instruction distribution module sends the operation instruction to the client of a target client, so that the server can effectively intervene in the client.
Optionally, after sending the operation instruction to the client instruction distribution module, the method further includes: the client instruction distribution module sends the operation instruction to a logic processing module of a target client according to a preset distribution rule and an instruction type of the operation instruction; and the logic processing module of the target client finishes the service content according to the instruction information of the operation instruction.
The client instruction distribution module may send the operation instruction to a logic processing module of a target client according to a pre-configured distribution rule, for example, in a sequential distribution or random distribution manner, and execute the operation instruction through the logic processing module to complete service content according to instruction information of the operation instruction.
As an optional implementation manner of this embodiment, the service content may include, but is not limited to: service function switch, UI switching, log uploading, data transmission and the like.
The invention is described below in connection with an alternative embodiment.
Example two
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for controlling a client, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that herein.
The embodiment takes the client as an implementation subject and provides another control method for the client.
Fig. 2 is a schematic diagram of another control method for a client according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step S201, receiving a data stream sent by a server, where the data stream at least includes: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type;
step S202, analyzing a data stream according to a preset message analysis rule to obtain an operation instruction;
step S203, sending the operation instruction to a logic processing module of the target client according to a preset distribution rule and an instruction type;
and step S204, the logic processing module of the control target client finishes the service content according to the instruction information of the operation instruction.
Through the steps, receiving a data stream sent by a server, wherein the data stream at least comprises: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type; analyzing the data stream according to a preset message analysis rule to obtain an operation instruction; sending the operation instruction to a logic processing module of a target client according to a preset distribution rule and an instruction type; and the logic processing module of the control target client finishes the service content according to the instruction information of the operation instruction. In this embodiment, the client receives the data stream sent by the server, parses the data stream according to the preconfigured message parsing rule to obtain the operation instruction, and controls the client to complete the service according to the operation instruction, so as to achieve the purpose of effectively intervening the client by the server, thereby achieving the technical effect of improving the control capability of the background system on the client, and further solving the technical problems that the background system of the fusing mechanism in the related art cannot effectively control the running client and cannot intervene the running process of the client.
In this embodiment, the process of establishing the long connection between the client and the server is the same as the long connection process described in the first embodiment, and is not described herein again.
The data stream may include an operation instruction for the client and request subject information, where the operation instruction may carry: the client set and the instruction type are convenient for effectively searching the client of the client needing to be managed and controlled.
After receiving the data stream sent by the server, the client may parse the data stream according to a preconfigured message parsing rule, parse a message of the data stream, obtain the operation instruction, and send the operation instruction to a logic processing module of a target client according to a preconfigured distribution rule, such as in a sequential distribution manner or a random distribution manner, where the operation instruction is executed by the logic processing module, and service content is completed according to instruction information of the operation instruction, so as to implement effective intervention of the server on the client, and solve the problem that the server cannot effectively intervene the client and can only passively receive a request of the client in the prior art.
The client instruction distribution module may send the operation instruction to a logic processing module of the target client according to a pre-configured distribution rule, for example, in a sequential distribution manner or a random distribution manner, and execute the operation instruction through the logic processing module to complete service content according to instruction information of the operation instruction.
As an optional implementation manner of this embodiment, the service content may include but is not limited to: service function switching, UI switching, log uploading, data transmission and the like.
The invention is described below in connection with an alternative embodiment.
EXAMPLE III
This embodiment provides a control system of a client, where the control system of the client includes a client implementing the implementation steps in the second embodiment, and includes a server implementing the implementation steps in the first embodiment. The client and the server included in the control system in the present embodiment are described in detail below.
Wherein, the server includes: the system comprises a server long connection module, a system management and control module, a server routing module, a server message analysis module and a server instruction receiving module, wherein the server long connection module is responsible for establishing long connection with a client long connection module and is responsible for mutually transmitting data streams with the client through the long connection; the server routing module is responsible for maintaining user connection routing information; the server message analysis module is responsible for converting the target message into a data stream which is sent to the client through long connection and analyzing the data stream sent by the client into an appointed message; the server instruction receiving module is responsible for receiving an operation instruction sent by the system management and control module and converting the operation instruction into a target message; the system management and control module provides an operation interface for a background administrator and receives an operation instruction initiated by the external equipment.
The client comprises: the system comprises a client long connection module, a client message analysis module, a client instruction distribution module and a logic processing module, wherein the client long connection module is responsible for establishing long connection with a server long connection module; the client message analysis module is responsible for receiving the data stream transmitted by the client long connection module and analyzing the data stream into an operation instruction according to an agreed rule; the client instruction distribution module is responsible for distributing the operation instruction to the logic processing module of the target client; and the logic processing module completes the service content according to the instruction information of the operation instruction.
The long connection module of the server side comprises: the module can be responsible for establishing and maintaining long connection between the module and the client based on a transmission layer, and for mutually transmitting data streams with the client through the long connection, and can call the server routing module to register user connection routing information after the module successfully establishes the long connection with the client; the system management and control module comprises: an operation user interface can be provided for a background manager, and the background manager can select a target client group for implementing instructions and an operation instruction type through the operation user interface to initiate specific operation instructions to the server instruction receiving module; the server routing module: the system can be responsible for maintaining user connection routing information and supporting specific long connection established between a mobile client and a server used by the user through user information association; the server message analysis module: the client side can be responsible for assembling the appointment messages into data streams which are sent to the client side through the long connection and analyzing the data streams which are sent from the client side through the long connection into the appointment messages; the server instruction receiving module: the server side can be responsible for receiving the operation instruction sent by the system management and control module, converting the operation instruction into a message and sending the message to the server side message analysis module.
The client long connection module: the method can complete the long connection establishment and maintenance of the mobile client and the server based on the transmission layer, can mutually transmit data streams with the server, and can also transmit the server message to the client message analysis module. The client message analysis module: the data stream transmitted by the long connection module of the client can be received and parsed into the standard format command according to the agreed rule. The client instruction distribution module: the client message analysis module can receive the instruction sent by the client message analysis module and distribute the instruction to the target client logic processing module. The logic processing module of the target client: the instructions distributed by the client instruction distribution module can be analyzed, and client logic required by the instructions can be completed, for example: function switch, UI switching, log uploading and the like.
Optionally, the client further includes: a client HTTP module, configured to initiate a connection establishment request to a server HTTP service module, where the connection establishment request at least includes: IP address and port information of the target server; the client long connection module uses the IP address and the port information of the target server to apply for establishing long connection based on a transmission layer with the server long connection module.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
It should be noted that the present application also provides an alternative embodiment, which is described in detail below.
The embodiment provides a bank mobile client real-time behavior control method based on long connection, overcomes the defect of real-time control capability of a background system of a financial institution on a mobile client in operation, and provides a method for controlling the behavior of the mobile client in real time as required.
Fig. 3 is a schematic diagram of an alternative system architecture for controlling real-time behavior of a client according to the present invention, as shown in fig. 3:
the entire system of the present embodiment includes: the system is deployed at two parts of a mobile client and a server (or a server), and specifically comprises the following modules: the system comprises a client long connection module, a client message analysis module, a client instruction distribution module, a client logic processing module (which can correspond to a logic processing module of a target client) and a client HTTP communication module; the server side is connected with the access module, the server side routing module, the server side message analysis module, the server side instruction receiving module, the server side management and control system module and the server side HTTP service module. The long connection is established based on an Open System interconnection reference model (OSI for short) Transmission layer, the long connection is established based on a socket (socket) encapsulated by a TCP (Transmission Control Protocol) layer, and the core is based on the end-to-end real-time communication capability of the socket, and the real-time behavior Control of the online client is realized by establishing four layers of long connections between the mobile client and the background server.
The various modules and functional logic will now be described in detail:
(1) client long connection module: the module completes the long connection establishment and maintenance of the mobile client and the server based on the transmission layer, is responsible for data stream transmission with the server and is responsible for transmitting the server message to the client message analysis module.
(2) A client message analysis module: the module is responsible for receiving the data stream transmitted by the long connection module of the client and analyzing the data stream into a standard format command according to an agreed rule.
(3) The client instruction distribution module: the module is responsible for receiving the instruction sent by the client message analysis module and distributing the instruction to the target client logic processing module.
(4) The client logic processing module: the module is responsible for interpreting the instructions distributed by the client instruction distribution module and completing client logic required by the instructions, such as operations of function switch, User Interface (UI) switching, log uploading and the like.
(5) Client HTTP communication module: the module is responsible for initiating an HTTP service request to a server and requesting information such as an IP address and a port required for establishing long connection.
(6) The server side long connection module: the module is responsible for establishing and maintaining long connection based on a transmission layer between the module and the client long connection module, and is responsible for mutually transmitting data streams with the client through the long connection, and in addition, the module can call the server routing module to register user connection routing information after the module successfully establishes the long connection with the client.
(7) The server routing module: the module is responsible for maintaining user connection routing information and supporting specific long connection established between a mobile client and a server used by the user through user information association.
(8) The server message analysis module: the module is responsible for assembling the appointment messages into data streams which are sent to the client through the long connection and analyzing the data streams which are sent from the client through the long connection into the appointment messages.
(9) The server instruction receiving module: the module is responsible for receiving the operation instruction sent by the system management and control module, converting the operation instruction into a message and sending the message to the server message analysis module.
(10) A system management and control module: the module provides an operation user interface for a background administrator, and the background administrator can select a target client group for implementing instructions and an operation instruction type through the operation user interface to initiate specific operation instructions to the server instruction receiving module.
(12) The server HTTP communication service module: the module is responsible for mobile client HTTP service, including login service, service logic service, service for obtaining long connection IP address and port information, etc.
In this embodiment, the long connection establishment procedure between the client and the server includes:
step 1: the client HTTP module initiates a request to the server HTTP service module to acquire the server IP address and port information required for establishing the long connection.
Step 2: the client long connection module uses the server IP address and the port information acquired in the step 1 to apply for establishing long connection based on a transmission layer with the server long connection module, the connection is successfully established, and the server long connection module initiates the connection information of the registered user to the server routing module.
And step 3: the server routing module records the connection information of the registered user.
In this embodiment, the process of controlling the real-time behavior of the mobile client includes:
step 1: and the background manager receives the control requirement, selects a target customer group, selects the instruction type and the specific parameters through the system control module and then initiates the real-time instruction.
Step 2: the server instruction receiving module receives the operation instruction and the operation user information sent by the system management and control module, packages and converts the operation instruction and the operation user information into a message format agreed with the client, and then sends the message and the sending target user information to the server message analysis module.
And step 3: and the server message analysis module receives the message sent to the module by the server instruction receiving module and the sending target user information, converts the message into data flow information and converts the user information into long connection routing information, and sends the data flow information and the long connection routing information to the server routing module after the processing is finished.
And 4, step 4: and after receiving the data stream information and the long connection routing information sent by the server message analysis module, the server routing module finds the server long connection module where the target user long connection is located according to the routing information, and forwards the data stream information and the long connection routing information to the target server long connection module.
And 5: and after receiving the data stream information and the long connection routing information sent by the server routing module, the server long connection module searches the target long connection established with the mobile equipment of the client represented by the current client information according to the long connection routing information, and sends the data stream to the client long connection module through the long connection.
Step 6: after receiving the data stream information sent by the server routing module, the client long connection module forwards the data volume information to the client message analysis module, and the client message analysis module analyzes the data stream into a standard format command according to an agreed rule and sends the command to the client command distribution module.
And 7: and after receiving the instruction sent by the client message analysis module, the client instruction distribution module sends the instruction to the target client logic processing module according to the distribution rule in the module.
And 8: and after receiving the instruction sent by the client instruction distribution module, the target client logic processing module executes the established service logic or technical logic in the module according to the instruction information to complete the established control target.
Through the implementation mode, the control strategy capable of intervening the mobile client in real time is realized, so that a background manager of a financial institution can quickly and efficiently manage and control the behavior of the client running at present under emergency conditions, the safety of a business system of the financial institution is promoted, meanwhile, the influence on the performance of a processor of a mobile device of the client is small, and the network flow consumption of the device is low.
The invention is described below in connection with an alternative embodiment.
Example four
The present embodiment provides a control device for a client, and each implementation unit included in the control device corresponds to each implementation step in the first embodiment.
The embodiment of the present application further provides a control device for a client, and it should be noted that the control device for a client according to the embodiment of the present application may be used to execute the control method for a client according to the embodiment of the present application. The following describes a control device for a client according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a control device for a client according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a first receiving unit 41, a converting unit 42, a searching unit 43, a first sending unit 44, which will be described in detail below.
A first receiving unit 41, configured to receive a behavior control request for managing and controlling a client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers;
a conversion unit 42, connected to the first receiving unit 41, for responding to the behavior control request, converting the operation instruction and the request body information into a data stream, and converting the client information of the plurality of clients included in the client set into long connection route information;
a searching unit 43, connected to the converting unit 42, for searching the target long connection pre-established with the client of each client indicated by the client information according to the long connection routing information;
and a first sending unit 44, connected to the searching unit 43, configured to send the data stream to the client of each client indicated by the client information through the target long connection, so as to control the client to complete the service content indicated by the operation instruction.
The control device for the client, provided in the embodiment of the present application, receives, by using the first receiving unit 41, a behavior control request for managing and controlling the client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: the client set then responds to the behavior control request through the conversion unit 42, the operation instruction and the request main body information are converted into data streams, the client information of a plurality of clients included in the client set is converted into long connection routing information, a target long connection which is established in advance with the client of each client indicated by the client information is found through the search unit 43 according to the long connection routing information, and the data streams are sent to the client of each client indicated by the client information through the target long connection through the first sending unit 44, so that the client is controlled to complete the service content indicated by the operation instruction. In the embodiment, the behavior control request for the client is sent to the clients of the clients through the pre-established long connection so as to control the clients to complete the operation, and the purpose of effectively intervening the clients by the background server is achieved, so that the technical effect of improving the control capability of the background system on the clients is achieved, and the technical problem that the background system of the fusing mechanism in the related art cannot effectively control the running clients and cannot intervene the running process of the clients is solved.
Optionally, the control device for the client further includes: the third receiving unit is used for receiving a management and control requirement sent by the external equipment to the background terminal before receiving a behavior control request for managing and controlling the client; the display unit is used for displaying a customer selection interface, an instruction selection interface and a parameter selection interface based on the control requirement; the determining unit is used for receiving the client group selected by the external equipment and determining a client set; receiving an operation instruction selected by external equipment, and determining the type of the instruction; the generating unit is used for receiving parameters configured by the external equipment to obtain parameter configuration information; and combining the client set, the operation instruction, the instruction type and the parameter configuration information to generate the behavior control request.
Optionally, the conversion unit includes: the first conversion module is used for responding to the behavior control request and packaging the operation instruction and the request main body information into a target message according to a pre-configured message format; and the second conversion module is used for converting the target message into a data stream.
Optionally, the searching unit includes: the first searching unit is used for sending the data stream and the long connection routing information to the server routing module; the server routing module finds a server long connection module which is in a pre-established association relation with the client of each client indicated by the client information according to the long connection routing information, and forwards the data stream and the long connection routing information to the server long connection module; and the second searching unit is used for searching the target long connection which is pre-established with the client of each client indicated by the client information by the long connection routing module of the server according to the long connection routing information.
Optionally, the control device for the client further includes: a connection unit, configured to initiate, by a client, a connection establishment request before receiving a behavior control request for managing and controlling the client, where the connection establishment request at least includes: IP address and port information of the target server; the client responds to the connection establishment request, and applies for long connection based on a transmission layer with a long connection module of the target server based on the IP address and the port information of the target server.
Optionally, the control device for the client further includes: the registration unit is used for initiating the connection information of the registered user to the server routing module after the target server successfully establishes the long connection with the client after applying for establishing the long connection based on the transmission layer with the long connection module of the target server; the server routing module records the connection information of the registered user.
Optionally, the control device for the client further includes: the analysis unit is used for transmitting the data stream to the client of each client indicated by the client information through the target long connection, and the long connection module of the client forwards the data stream to the client message analysis module after receiving the data stream; and the client message analysis module analyzes the data stream according to a preset message analysis rule to obtain an operation instruction, and sends the operation instruction to the client instruction distribution module.
Optionally, the control device for the client further includes: the processing unit is used for sending the operation instruction to the client instruction distribution module, and then the client instruction distribution module sends the operation instruction to the logic processing module of the target client according to a preset distribution rule and an instruction type of the operation instruction; and the logic processing module of the target client finishes the service content according to the instruction information of the operation instruction.
The control device for the client includes a processor and a memory, the first receiving unit 41, the converting unit 42, the searching unit 43, the first sending unit 44, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the technical problems that a background system of a financial institution in the related technology cannot effectively control a running client and cannot intervene in the running process of the client are solved by adjusting kernel parameters.
The invention is described below in connection with an alternative embodiment.
EXAMPLE five
The present embodiment provides a control device for a client, and each implementation unit included in the control device corresponds to each implementation step in the second embodiment.
Fig. 5 is a schematic diagram of another control device for a client according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: the second receiving section 51, the analyzing section 52, the second transmitting section 53, and the control section 54 will be described in detail below.
A second receiving unit 51, configured to receive a data stream sent by a server, where the data stream at least includes: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type;
an analyzing unit 52, connected to the second receiving unit 51, configured to analyze the data stream according to a preconfigured message analysis rule, so as to obtain an operation instruction;
a second sending unit 53, connected to the parsing unit 52, for sending the operation instruction to the logic processing module of the target client according to a pre-configured distribution rule and instruction type;
and a control unit 54, connected to the second sending unit 53, for controlling the logic processing module of the target client to complete the service content according to the instruction information of the operation instruction.
The control apparatus for a client according to the embodiment of the present application receives, through the second receiving unit 51, a data stream sent by a server, where the data stream at least includes: for the operation instruction and the request main body information of the client, the operation instruction at least carries: the client set and the instruction type are then used for parsing the data stream according to the preconfigured message parsing rule through the parsing unit 52 to obtain the operation instruction, and then the operation instruction is sent to the logic processing module of the target client through the second sending unit 53 according to the preconfigured distribution rule and the instruction type, and finally the service content is completed according to the instruction information of the operation instruction through the logic processing module of the control unit 54 used for controlling the target client. In the embodiment, the behavior control request for the client is sent to the clients of the clients by using the pre-established long connection so as to control the clients to complete the operation, so that the aim of effectively intervening the clients by the server is fulfilled, the technical effect of improving the control capability of the background system on the clients is achieved, and the technical problem that the background system of the fusing mechanism in the related technology cannot effectively control the running clients and cannot intervene the running process of the clients is solved.
The control device for the client includes a processor and a memory, the second receiving unit 51, the analyzing unit 52, the second transmitting unit 53, the control unit 54, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the technical problems that a background system of a financial institution in the related technology cannot effectively control a running client and cannot intervene in the running process of the client are solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing a control method for a client when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes a control method for a client when running.
Fig. 6 is a block diagram of a hardware structure of an electronic device (or a mobile device) of a method of controlling a client according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and memory 104 for storing data. In addition, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a keyboard, a power supply, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, the electronic device may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The electronic device comprises a memory, a program which can run on a processor is stored in the memory, and the processor executes the program to realize the following steps: receiving a behavior control request for managing and controlling a client, wherein the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers; responding to the behavior control request, converting the operation instruction and the request main body information into data streams, and converting the client information of a plurality of clients contained in the client set into long connection routing information; according to the long connection routing information, searching a target long connection which is pre-established with the client of each client indicated by the client information; and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a behavior control request for managing and controlling a client, wherein the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers; responding to the behavior control request, converting the operation instruction and the request main body information into a data stream, and converting the client information of a plurality of clients contained in the client set into long connection routing information; searching target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information; and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (15)

1. A control method for a client is applied to a server, wherein the server and the client establish long connection in advance, and the method comprises the following steps:
receiving a behavior control request for managing and controlling the client, wherein the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers;
responding to the behavior control request, converting the operation instruction and the request main body information into data streams, and converting the client information of a plurality of clients contained in the client set into long connection routing information;
searching target long connection pre-established with the client of each client indicated by the client information according to the long connection routing information;
and sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
2. The control method according to claim 1, before receiving the behavior control request that governs the client, further comprising:
receiving a management and control requirement sent by an external device to a background terminal;
displaying a customer selection interface, an instruction selection interface and a parameter selection interface based on the control requirement;
receiving a customer group selected by the external equipment, and determining the customer set;
receiving an operation instruction selected by the external equipment, and determining an instruction type;
receiving parameters configured by the external equipment to obtain parameter configuration information;
and combining the client set, the operation instruction, the instruction type and the parameter configuration information to generate the behavior control request.
3. The control method according to claim 1, wherein the step of converting the operation instruction and the request subject information into a data stream in response to the behavior control request includes:
responding the behavior control request, and packaging the operation instruction and the request main body information into a target message according to a pre-configured message format;
and converting the target message into the data stream.
4. The control method according to claim 1, wherein the step of finding the target long connection pre-established with the client of each client indicated by the client information according to the long connection routing information comprises:
sending the data stream and the long connection routing information to a server routing module;
the server routing module finds a server long connection module which is in a pre-established association relationship with the client of each client indicated by the client information according to the long connection routing information, and forwards the data stream and the long connection routing information to the server long connection module;
and the server long connection module searches the target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information.
5. The control method according to claim 1, before receiving the behavior control request that governs the client, further comprising:
the client side initiates a connection establishment request, wherein the connection establishment request at least comprises: IP address and port information of the target server;
and the client responds to the connection establishment request, and applies for establishing long connection based on a transmission layer with a long connection module of the target server based on the IP address and the port information of the target server.
6. The control method according to claim 5, further comprising, after applying for establishing a transport layer-based long connection with the long connection module of the target server:
after the target server successfully establishes long connection with the client, initiating the connection information of the registered user to a server routing module;
and the server routing module records the connection information of the registered user.
7. The control method according to claim 1, further comprising, after sending the data stream to the client of each client indicated by the client information through the target long connection:
after receiving the data stream, the long connection module of the client forwards the data stream to a client message analysis module;
and the client message analysis module analyzes the data stream according to a preset message analysis rule to obtain the operation instruction, and sends the operation instruction to a client instruction distribution module.
8. The control method according to claim 7, further comprising, after sending the operation instruction to a client instruction distribution module:
the client instruction distribution module sends the operation instruction to a logic processing module of a target client according to a preset distribution rule and the instruction type of the operation instruction;
and the logic processing module of the target client finishes the service content according to the instruction information of the operation instruction.
9. A control method for a client is applied to the client, the client establishes a long connection with a server in advance, and the method comprises the following steps:
receiving a data stream sent by the server, wherein the data stream at least comprises: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type;
analyzing the data stream according to a preset message analysis rule to obtain the operation instruction;
sending the operation instruction to a logic processing module of a target client according to a preset distribution rule and the instruction type;
and controlling a logic processing module of the target client to complete service content according to the instruction information of the operation instruction.
10. A control system for a client is characterized by comprising the client and a server, wherein,
the server includes: the system comprises a server long connection module, a system management and control module, a server routing module, a server message analysis module and a server instruction receiving module, wherein the server long connection module is responsible for establishing long connection with a client long connection module and is responsible for mutually transmitting data streams with the client through long connection; the server routing module is responsible for maintaining user connection routing information; the server message analysis module is responsible for converting a target message into a data stream which is sent to the client through long connection and analyzing the data stream sent by the client into an appointed message; the server instruction receiving module is responsible for receiving an operation instruction sent by the system management and control module and converting the operation instruction into the target message; the system management and control module provides an operation interface for a background administrator and receives an operation instruction initiated by external equipment;
the client comprises: the system comprises a client long connection module, a client message analysis module, a client instruction distribution module and a logic processing module, wherein the client long connection module is responsible for establishing long connection with a server long connection module; the client message analysis module is responsible for receiving the data stream transmitted by the client long connection module and analyzing the data stream into an operation instruction according to an agreed rule; the client instruction distribution module is responsible for distributing the operation instruction to a logic processing module of a target client; and the logic processing module completes the service content according to the instruction information of the operation instruction.
11. The control system of claim 10,
the client further comprises: a client HTTP module, configured to initiate a connection establishment request to a server HTTP service module, where the connection establishment request at least includes: IP address and port information of the target server; and the client long connection module applies for establishing long connection based on a transmission layer with the server long connection module by using the IP address and the port information of the target server.
12. A control device for a client, which is applied to a server that establishes a long connection with the client in advance, comprising:
a first receiving unit, configured to receive a behavior control request for managing and controlling the client, where the behavior control request at least carries: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers;
a conversion unit, configured to convert the operation instruction and the request subject information into a data stream in response to the behavior control request, and convert the client information of the multiple clients included in the client set into long connection routing information;
the searching unit is used for searching the target long connection which is pre-established with the client of each client indicated by the client information according to the long connection routing information;
and the first sending unit is used for sending the data stream to the client of each client indicated by the client information through the target long connection so as to control the client to finish the service content indicated by the operation instruction.
13. A control device for a client, which is applied to the client, wherein the client establishes a long connection with a server in advance, and the control device comprises:
a second receiving unit, configured to receive a data stream sent by the server, where the data stream at least includes: for the operation instruction and the request main body information of the client, the operation instruction at least carries: a set of customers and an instruction type;
the analysis unit is used for analyzing the data stream according to a preset message analysis rule to obtain the operation instruction;
the second sending unit is used for sending the operation instruction to a logic processing module of a target client according to a preset distribution rule and the instruction type;
and the control unit is used for controlling the logic processing module of the target client to complete the service content according to the instruction information of the operation instruction.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium is used for storing a computer program, wherein when the computer program runs, the computer-readable storage medium is controlled by a device to execute the control method for the client according to any one of claims 1 to 9.
15. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of controlling a client of any one of claims 1 to 9.
CN202210536820.7A 2022-05-17 2022-05-17 Method, device and system for controlling client, storage medium and electronic equipment Pending CN114979288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210536820.7A CN114979288A (en) 2022-05-17 2022-05-17 Method, device and system for controlling client, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210536820.7A CN114979288A (en) 2022-05-17 2022-05-17 Method, device and system for controlling client, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114979288A true CN114979288A (en) 2022-08-30

Family

ID=82983642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210536820.7A Pending CN114979288A (en) 2022-05-17 2022-05-17 Method, device and system for controlling client, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114979288A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669447A (en) * 2020-06-16 2020-09-15 中国建设银行股份有限公司 Page display method, device, equipment and medium
CN111934840A (en) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 Communication method of client and server, gateway, electronic equipment and storage medium
CN113076362A (en) * 2021-03-17 2021-07-06 北京达佳互联信息技术有限公司 Service execution method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669447A (en) * 2020-06-16 2020-09-15 中国建设银行股份有限公司 Page display method, device, equipment and medium
CN111934840A (en) * 2020-06-29 2020-11-13 北京百度网讯科技有限公司 Communication method of client and server, gateway, electronic equipment and storage medium
CN113076362A (en) * 2021-03-17 2021-07-06 北京达佳互联信息技术有限公司 Service execution method and device

Similar Documents

Publication Publication Date Title
US10116507B2 (en) Method of and system for managing computing resources
US10044756B2 (en) Enabling an on-premises resource to be exposed to a public cloud application securely and seamlessly
CN107613020B (en) Equipment management method and device
US10999405B2 (en) Method for processing access requests and web browser
US10924542B2 (en) Content delivery system
CN114095577A (en) Resource request method and device, calculation network element node and calculation application equipment
US11645582B2 (en) Parameter sharing in federated learning
US20170373939A1 (en) Data uploading method, apparatus, and system
CN103002034B (en) Application QoS (Quality of Service) management system based on cloud service bus and operation method thereof
WO2018048769A1 (en) System and method for programmable native analytics in 5g mobile networks
Nguyen et al. Why cloud applications are not ready for the edge (yet)
CN105099769B (en) Abnormal operation processing method, equipment and the system of business platform
CN110417795A (en) Receiving information method for subscribing, device and cash collecting system
CN109561054A (en) A kind of data transmission method, controller and access device
US9413811B2 (en) Establishing upload channels to a cloud data distribution service
CN114465867A (en) Server maintenance method and device, storage medium and processor
CN116915827A (en) Data transmission method and device of internet of things edge gateway, electronic equipment and medium
CN114979288A (en) Method, device and system for controlling client, storage medium and electronic equipment
US9749224B2 (en) Method and apparatus for cloud provisioning of communication services
US9537948B2 (en) Method and apparatus for chunk-level sharing-based open virtualization format (OVF) package distribution through dependency analysis
CN111930557A (en) Data processing method, device and equipment
CN113114503B (en) Deployment method and device based on application delivery network requirements
CN115022074A (en) User authentication and authorization method, device, medium and equipment
CN109062848A (en) Purchasing management method, apparatus and bus platform based on ESB bus platform
CN105897476B (en) A kind of method and device creating transmission channel

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