CN108959046A - A kind of information processing method, equipment and device - Google Patents

A kind of information processing method, equipment and device Download PDF

Info

Publication number
CN108959046A
CN108959046A CN201810587160.9A CN201810587160A CN108959046A CN 108959046 A CN108959046 A CN 108959046A CN 201810587160 A CN201810587160 A CN 201810587160A CN 108959046 A CN108959046 A CN 108959046A
Authority
CN
China
Prior art keywords
data
service
application
container
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810587160.9A
Other languages
Chinese (zh)
Other versions
CN108959046B (en
Inventor
于连宇
李栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810587160.9A priority Critical patent/CN108959046B/en
Publication of CN108959046A publication Critical patent/CN108959046A/en
Application granted granted Critical
Publication of CN108959046B publication Critical patent/CN108959046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring

Abstract

The embodiment of the invention discloses a kind of information processing method, equipment and devices, wherein the described method includes: when starting service receives the first instruction of starting application, based on first instruction, obtain the first container, wherein the first container is container corresponding with the application;The starting service starts the first container, wherein the first container built in agent service based on first instruction;The agency service acquires the data that the application generates in the process of running by the first plug-in unit;The data are sent to route service by the agency service, wherein the route service is not in the first container.

Description

A kind of information processing method, equipment and device
Technical field
The present invention relates to technical field of information processing more particularly to a kind of information processing methods, equipment and device.
Background technique
Currently, when using container arranging system (Kubernetes) dynamic generation operation service, if when service operation, clothes Business developer can monitor service operation state in real time.And container is once destroyed, when container internal applications are run The information such as log are then lost together, can not effectively be analyzed application.In this case, service developers can not be to service Operation conditions is effectively assessed.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of information processing side to solve problems of the prior art Method, equipment and device can save the related data applied in container, to improve system reliability.
The technical solution of the embodiment of the present invention is achieved in that
On the one hand, the embodiment of the present invention provides a kind of information processing method, is applied to electronic equipment, which comprises
When starting service receives the first instruction of starting application, is instructed based on described first, obtains the first container, In, the first container is container corresponding with the application;
The starting service starts the first container, wherein generation built in the first container based on first instruction Reason service;
The agency service acquires the data that the application generates in the process of running by the first plug-in unit;
The data are sent to route service by the agency service, wherein the route service is not held described first In device.
On the other hand, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment includes at least memory, communication Bus and processor, in which:
The memory is used for storing information processing program;
The communication bus, for realizing the connection communication between processor and memory;
The processor, for executing the message handling program stored in memory, to realize that the embodiment of the present invention provides Information processing method the step of.
In another aspect, the embodiment of the present invention provides a kind of information processing unit, the information processing unit includes: first to obtain Modulus block, the first starting module, acquisition module and the first sending module, in which:
Described first obtains module, for based on first instruction, obtaining when receiving the first instruction of starting application Take the first container, wherein the first container is container corresponding with the application;
First starting module, for starting the first container, wherein described first based on first instruction Container built in agent service;
Acquisition module, for acquiring the data that the application generates in the process of running by the first plug-in unit;
First sending module, for the data to be sent to route service, wherein the route service is not described In one container.
The embodiment of the present invention provides a kind of information processing method, equipment and device, wherein first when starting service receives Starting application first instruction when, based on it is described first instruction, obtain the first container, wherein the first container be with it is described Using corresponding container;Then starting service starts the first container based on first instruction, wherein described the One container built in agent service;Then the agency service acquires what the application generated in the process of running by the first plug-in unit Data;The data are sent to route service by the last agency service, wherein the route service is not held described first In device;In this way, since route service is not in the first container, it also can be from route service so even the first container is destroyed The related data of the application in the first container is obtained, so as to assess the operation conditions of application, and then improves system Reliability.
Detailed description of the invention
Fig. 1 is a kind of implementation process schematic diagram of information processing method of the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram of another kind of embodiment of the present invention information processing method;
Fig. 3 is the application scenarios schematic diagram of information processing method of the embodiment of the present invention;
Fig. 4 is the composed structure schematic diagram of electronic equipment of the embodiment of the present invention;
Fig. 5 is the composed structure schematic diagram of information processing unit of the embodiment of the present invention.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
The present embodiment provides a kind of information processing method, this method is applied to electronic equipment, and information processing method institute is real Existing function can realize that certain program code can be stored in meter by the processor caller code in electronic equipment In calculation machine storage medium, it is seen then that the electronic equipment includes at least pocessor and storage media.
Fig. 1 is a kind of implementation process schematic diagram of information processing method of the embodiment of the present invention, as shown in Figure 1, this method packet It includes:
Step S101, when starting service and receiving the first instruction of starting application, based on first instruction, acquisition the One container.
Here, the step S101 can be by electronic equipment realization, and it is intelligent terminal that the electronic equipment, which can be, Such as can be the mobile terminal device that mobile phone (mobile phone), tablet computer, laptop etc. have wireless communication ability, It can also be the inconvenient mobile intelligent terminal such as desktop computer, desktop computer.
The first container is container corresponding with the application.Container be positioned at application/component and server platform it Between set of interfaces run so that application/component can be convenient to be deployed on server.Using often there is many components, For example, most of applications require the support of database or middleware services to realize storage to data, retrieval and integrated.Institute To need that these services are split the container become using oneself by designing and disposing.In general, an application operates in In one process, the theory of a process is only run based on a container, an application corresponds to a container.Certainly, one One application of operation is not absolute in container, under certain conditions, multiple applications can also be run in a container.
In embodiments of the present invention, the first instruction for starting application can be the icon that user clicks the application, also It can be the operation that user is made that the preset starting application, such as can be user and be made that described in preset starting and answer Gesture, or issue the voice of the preset starting application.The mark of the application is carried in first instruction Know.
After starting service receives first instruction, the mark of the application carried in first instruction is obtained, then Mark based on the application obtains the corresponding the first container of the application.
It should be noted that in the present embodiment, the starting of an application can be responsible for a starting service, can also be The starting of multiple applications is responsible in one starting service.
Step S102, the starting service start the first container based on first instruction.
Here, after starting service receives the first instruction, the first instruction can be parsed, is referred to understanding described first The intention of order, and responded accordingly based on the first instruction.In the present embodiment, since the first instruction is for starting application Instruction, and apply operate in the first container, therefore, it is necessary to based on it is described first instruct, start the first container.
The first container built in agent (agent) service.Since application is made of various components, and component It exactly " is serviced " with what other assemblies communication in container communication or component and same container was leaned on, " service " can be write from memory by container Recognize built-in services in offer namely container, the service of the available container of various components, each service is responsible for one or several Being closely related for task.For example, the agency service is responsible for the data of acquisition applications operation and sends the data to route service.
Step S103, the agency service acquire the data that the application generates in the process of running by the first plug-in unit.
Here, first plug-in unit is the plug-in unit that can acquire the data applied and generated in the process of running in real time. First plug-in unit includes but is not limited to thrift, http, shell, jms, file, directory, kafka plug-in unit.
The data are sent to route service by step S104, the agency service.
Here, routing (route) service is the external service of container arranging system not in the first container.
Container arranging system is capable of providing such as container configuration, publication and discovery, system monitoring and fault recovery, statement formula system It is under unified central planning to set and the rule in relation to receptacle and performance and constraint definition mechanism.Currently used container arranging system includes Docker Swarm, Kubernetes, Marathon and Nomad.In the present embodiment, Kubernetes container is used to compile Heat-extraction system.Kubernetes is that a complete distributed system supports platform, supports Multilayered security protection, mechanism of permitting the entrance, more Tenant's application support, transparent service registration, service discovery, built-in load equilibrium, powerful fault discovery and self-regeneration machine System, service rolling upgrade and on-line rapid estimation, expansible resource Automatic dispatching mechanism, the resource quota managerial ability of more granularities, Perfect management tool, including exploitation, test, deployment, O&M monitoring, one-stop complete Development of Distributed System and support Platform.
Since the route service is Kubernetes external, there is no with the service in the first container, therefore Even if when unexpected destroy occurs for container, the route service will not be destroyed, and then can be obtained and be held by route service Some operation informations of the device before destruction obtain the operation conditions and appearance of application to analyze these operation informations The reason of device is destroyed, to improve to system, further increases the reliability of system.
In information processing method provided in an embodiment of the present invention, first when starting service receives the first of starting application When instruction, based on first instruction, the first container is obtained, wherein the first container is container corresponding with the application; Then the starting service starts the first container based on first instruction, wherein the first container built in agent clothes Business;Then the agency service acquires the data that the application generates in the process of running by the first plug-in unit;The last generation The data are sent to route service by reason service, wherein the route service is not in the first container;In this way, due to Route service is not in the first container, so even the first container is destroyed also to be obtained in the first container from route service Application related data, the operation conditions so as to operation conditions and container to application assesses, and then improves The reliability of system.
Based on embodiment above-mentioned, the embodiment of the present invention provides a kind of information processing method again, and Fig. 2 is the embodiment of the present invention The implementation process schematic diagram of information processing method, as shown in Fig. 2, the described method comprises the following steps:
Step S201, when starting service and receiving the first instruction of starting application, based on first instruction, acquisition the One container.
Here, the first container is container corresponding with the application.
Step S202, the starting service start the first container based on first instruction.
Here, the first container built in agent service.
Step S203, the agency service acquire the data that the application generates in the process of running by the first plug-in unit.
The data are sent to route service by step S204, the agency service.
Here, the route service is not in the first container.
In the present embodiment, the agency service by the data be sent to route service can by two ways reality It is existing:
The data are sent to institute by socket mode by preset interval duration by first way, the agency service State route service;
The second way, when the occupied space size of the collected data of the agency service is greater than preset threshold, The data are sent to the route service by socket mode.
Step S205, the route service store the data.
Here, the routing stores the data and can be data write-in local disk, or the specified clothes of write-in It is engaged in device.
Step S206, the service of request data receive the second instruction of the data for obtaining application.
Here, the service of the request data can be data retention service, can also be that data show service.
Step S207, based on second instruction, operation service of the service of the request data to the first container Send the second request message for obtaining the data of the application.
Here, since agency service is not to send data to route service in real time, in order to obtain most comprehensively Data, need operation service into container to send the second request message, to obtain the data of the application.
Step S208, the service of the request data judge whether that receiving the second response that the operation service is sent disappears Breath.
Here, if the service of the request data receives the second response message that the operation service is sent, It is destroyed to illustrate that the container does not have, enters step S209 at this time;If the service of the request data is not received by described The second response message that operation service is sent, illustrates that the container is destroyed, enters step S210 at this time.
In other embodiments, when the service of the request data judges whether to receive second response message, When can star a timer, judge second response message whether is received in preset duration, if default Second response message is received in duration, enters step S208;If receiving second response in preset duration Message enters step S209.
The service of step S209, the request data parse second response message, obtain second response message The data of the application of middle carrying.
Step S210, the service of the request data send the data for obtaining the application to the route service First request message.
Step S211, the route service parse first request message received, obtain the mark of the application.
Step S212, the route service obtain the data of the application according to the mark of the application.
The data of the application are carried in the first response message by step S213, the route service, are sent to described The service of request data.
Here, the step S213 can be the route service and take the data of the application during realization Band is sent to the service of the request data by first plug-in unit in the first response message.
Step S214, the service of the request data receive and parse through first response message, obtain first sound Answer the data of the application carried in message.
In other embodiments, after the step S206, step S207 to step S209 can not be executed, and it is direct Step S210 is executed, namely after the service of the request data receives second instruction, directly to the route service First request message is sent, because the route service is the service except the first container, even if the first container is destroyed It is also existing, then sending the first request message to route service is the data for surely getting the application.
It should be noted that can refer in the present embodiment with the explanation of same steps in other embodiments or concept other Description in embodiment.
Fig. 3 is the application scenarios schematic diagram of information processing method of the embodiment of the present invention, as shown in figure 3, in the first container 301 It is equipped with route service 302 outside, the data generated in application operational process are sent to route service 302, asked by agency service 305 When the service 303 of data being asked to need to obtain the data of application, if the first container 301 is not destroyed, the number of request According to operation service 304 of the service 303 into the first container send the second request message, to obtain data;When container is destroyed, The service 303 of the request data sends the first request message to route service 302 to obtain data.
In information processing method provided in an embodiment of the present invention, first when starting service receives the first of starting application When instruction, based on first instruction, the first container is obtained, and based on first instruction, starts the first container, In, the first container built in agent service;The agency service acquires the application in the process of running by the first plug-in unit The data of generation, and the data are sent to route service, wherein the route service is not in the first container;When When the service of request data receives the second instruction of the data for obtaining application, based on second instruction, hold to described first The operation service of device sends the second request message for obtaining the data of the application;If receiving the operation service hair The second response message sent parses second response message, obtains the application carried in second response message Data;If being not received by second response message, the data for obtaining the application are sent to the route service The first request message;The service of the request data receives and parses through the first response message, obtains first response message The data of the application of middle carrying;In this way, can guarantee the route service except container is sent to using data in container Also the operation information of application or container can be got in the case where destruction, in order to determine the reason of container is destroyed and container pin Operation conditions before ruining.
Based on embodiment above-mentioned, the embodiment of the present invention provides a kind of information processing method again, and the method includes following Step:
Step 31, it when starting service receives the first instruction of starting application, is instructed based on described first, obtains first Container.
Here, the first container is container corresponding with the application.
Step 32, the starting service starts the first container based on first instruction.
Here, the first container built in agent service.
Step 33, the agency service acquires the data that the application generates in the process of running by the first plug-in unit.
Step 34, the data are sent to route service by the agency service.
Here, the route service is not in the first container.
In the present embodiment, the agency service by the data be sent to route service can by two ways reality It is existing:
The data are sent to institute by socket mode by preset interval duration by first way, the agency service State route service;
The second way, when the occupied space size of the collected data of the agency service is greater than preset threshold, The data are sent to the route service by socket mode.
Step 35, the route service stores the data.
Here, the routing stores the data and can be data write-in local disk, or the specified clothes of write-in It is engaged in device.
Step 36, the service of request data receives the second instruction of the data for obtaining application.
Here, the service of the request data can be data retention service, can also be that data show service.
Step 37, the service of the request data is based on second instruction, sends to the route service for obtaining First request message of the data of the application, and send to the operation service of the first container for obtaining the application Second request message of data.
Here, most comprehensive, real-time data are arrived since the operation service by the first container is available, but if The first container is destroyed, then cannot obtain data from operation service;And can guarantee by route service can get data, Therefore can be after receiving second instruction, the service of the request data is concurrently to operation service and route service Send the request message for obtaining data.
Step 38, the service of the request data is sent based on the route service that receives the first response message and/or The second response message that operation service is sent, obtains the data of the application.
It should be noted that can refer in the present embodiment with the explanation of same steps in other embodiments or concept other Description in embodiment.
In information processing method provided in an embodiment of the present invention, first when starting service receives the first of starting application When instruction, based on first instruction, the first container is obtained, and based on first instruction, starts the first container, In, the first container built in agent service;The agency service acquires the application in the process of running by the first plug-in unit The data of generation, and the data are sent to route service, wherein the route service is not in the first container;When When the service of request data receives the second instruction of the data for obtaining application, based on second instruction, taken to the routing Business sends the first request message for obtaining the data of the application, and is used for the operation service of the first container transmission Obtain the second request message of the data of the application;The first response message finally sent based on the route service received And/or the second response message that operation service is sent, obtain the data of the application;It is generated in operational process in this way, will apply Data be sent to the route service outside the first container, request data service need obtain application data when, concurrently Operation service into route service and the first container sends the request message for obtaining data, not only can guarantee The data of application are enough got, and most real-time comprehensive data can also be obtained as far as possible.
Here, in the actual implementation process, the step 38 can be realized by following steps:
Step 381, the service of the request data judges whether to receive the first response message within default waiting time With the second response message.
Here, the default waiting time be counted before after sending the first request message to receiving the The first waiting time between one response message and after sending the second request message to receive the second response message it Between the second waiting time determine.If the first container is not destroyed, should be able to be received within default waiting time To the second response message.
If receiving first response message and second response message within the default waiting time, enter Step 382;If not receiving first response message and second response message in preset duration, enter step 385。
Step 382, the first data for being carried in the first response message described in the service acquisition of the request data and described First attribute information of the first data.
Here, it is big that the first initial time, the first termination time and the first space are included at least in first attribute information It is small.
First initial time can be first data and start the time saved, and described first terminates the time can be with It is the time that first end of data saves, first space size can be the memory space that first data occupy Size.
Step 383, the second data for being carried in the second response message described in the service acquisition of the request data and described Second attribute information of the second data.
Here, it is big that the second initial time, the second termination time and second space are included at least in second attribute information It is small.
Step 384, first attribute information and second attribute information are based on, the service of the request data is from institute State the data of the determination application to be saved in the first data and second data.
Step 385, the service of the request data judges whether to receive the first response message within default waiting time.
Here, if receiving first response message within default waiting time and being not received by second sound Message is answered, enters step 386;If being not received by the first response message within default waiting time, 387 are entered step.
Step 386, the service of the request data parses first response message, obtains the data of the application.
Step 387, if receiving second response message within default waiting time and being not received by described the One response message parses second response message, obtains the data of the application.
In other embodiments, here, in practical applications, the step 384 can be realized by following steps:
Step 41, if described first terminates the time earlier than the second termination time, and first space size is small In the second space size, the data for the application that second data are determined as being saved;
Step 42, if described first terminates the time earlier than second initial time, or if described second terminates First data and second data earlier than first initial time, are determined as the number of the application of preservation by the time According to;
Step 43, if described second terminates the time earlier than the first termination time, and the second space is slight greatly In first space size, the data for the application that first data are determined as being saved.
In the embodiment where step 41 to step 43, if the first termination time terminates earlier than described second Between, and first space size is less than the second space size, illustrates the first data ratio saved in route service from fortune The end holding time of second data of row service acquisition is early, and the first space size is less than the second space size description second Include the first data in data, therefore, the second data is determined as to the data for the application to be saved at this time, opposite described second The time is terminated earlier than the first termination time, and the second space size is less than first space size, then it will be described First data are determined as the data for the application to be saved.And if when the first termination time is earlier than the described second starting Between, or if described second terminates the time earlier than first initial time, illustrate that the first data and the second data are that do not have Intersection, then needing the data of the first data and the second data all determinations application to be saved.
Based on embodiment above-mentioned, the embodiment of the present invention provides a kind of electronic equipment, and Fig. 4 is that electronics of the embodiment of the present invention is set Standby composed structure schematic diagram, as shown in figure 4, the electronic equipment 400 includes memory 401, communication bus 402 and processor 403, in which:
The memory 401 is used for storing information processing program;
The communication bus 402, for realizing the connection communication between processor and memory;
The processor 403, for executing the message handling program stored in memory, to perform the steps of
When starting service receives the first instruction of starting application, is instructed based on described first, obtains the first container, In, the first container is container corresponding with the application;
The starting service starts the first container, wherein generation built in the first container based on first instruction Reason service;
The agency service acquires the data that the application generates in the process of running by the first plug-in unit;
The data are sent to route service by the agency service, wherein the route service is not held described first In device.
In other embodiments, the processor 403, is also used to execute the message handling program stored in memory, with It performs the steps of
When the service of request data receives the second instruction for obtaining the data of application, instructed based on described second, to The route service sends the first request message for obtaining the data of the application;
The service of the request data receives and parses through the first response message, obtains carrying in first response message The data of the application.
In other embodiments, disappear in the first request for sending the data for obtaining the application to the route service Before breath, the processor 403 is also used to execute the message handling program stored in memory, to perform the steps of
When the service of request data receives the second instruction for obtaining the data of application, instructed based on described second, to The operation service of the first container sends the second request message for obtaining the data of the application;
If receiving the second response message that the operation service is sent, second response message is parsed, institute is obtained State the data of the application carried in the second response message;
If being not received by second response message, the number for obtaining the application is sent to the route service According to the first request message.
In other embodiments, the processor 403, is also used to execute the message handling program stored in memory, with It performs the steps of
When the service of request data receives the second instruction for obtaining the data of application, instructed based on described second, to The route service sends the first request message for obtaining the data of the application, and takes to the operation of the first container Business sends the second request message for obtaining the data of the application;
The second response that the first response message sent based on the route service received and/or operation service are sent disappears Breath, obtains the data of the application.
In other embodiments, first response message sent based on the route service received and/or operation clothes The second response message that business is sent, obtains the data of the application, comprising:
Disappear if receiving first response message within default waiting time and being not received by second response Breath parses first response message, obtains the data of the application;Alternatively,
Disappear if receiving second response message within default waiting time and being not received by first response Breath parses second response message, obtains the data of the application;Alternatively,
If receiving first response message and second response message within default waiting time, described in acquisition First attribute information of the first data and first data that are carried in the first response message;
Obtain the second attribute information of the second data carried in second response message and second data;
Based on first attribute information and second attribute information, from first data and second data The data of the determination application to be saved.
In other embodiments, in first attribute information include at least the first initial time, first terminate the time and First space size includes at least the second initial time in second attribute information, second terminates the time and second space is big It is small, it is accordingly, described to be based on first attribute information and second attribute information, from first data and described second The data of the determination application to be saved in data, comprising:
If described first, which terminates the time, terminates the time earlier than described second, and first space size is less than described the Two space sizes, the data for the application that second data are determined as being saved;
If it is described first terminate the time earlier than second initial time, or if it is described second terminate the time earlier than First initial time, the data for the application that first data and second data are determined as saving;
If described second, which terminates the time, terminates the time earlier than described first, and the second space size is less than described the One space size, the data for the application that first data are determined as being saved.
In other embodiments, the processor 403, is also used to execute the message handling program stored in memory, with It performs the steps of
The route service parses first request message received, obtains the mark of the application;
The route service obtains the data of the application according to the mark of the application;
The data of the application are carried in the first response message by the route service, are sent to the request data Service.
In other embodiments, the data are sent to route service by the agency service, comprising: the agency service The data are sent to the route service by socket mode by preset interval duration;Alternatively, working as the agency service When the collected occupied space size of data is greater than preset threshold, the data are sent to the road by socket mode By servicing;
Alternatively,
The data of the application are carried in the first response message by the route service, are sent to the clothes of request data Business, comprising: the data of the application are carried in the first response message by the route service, are sent by first plug-in unit To the service of the request data.
It need to be noted that: the above electronic equipment implements the description of item, is similar, tool with above method description There is the identical beneficial effect of same embodiment of the method.For undisclosed technical detail in electronic equipment embodiment of the present invention, ability The technical staff in domain please refers to the description of embodiment of the present invention method and understands.
Correspondingly, the embodiment of the present invention provides a kind of computer storage medium again, stores in the computer storage medium There are computer executable instructions, the described computer executable instructions realize letter provided by the above embodiment when being executed by processor The step of ceasing processing method.
The embodiment of the present invention provides a kind of information processing unit, and Fig. 5 is the realization of information processing unit of the embodiment of the present invention Flow diagram, as shown in figure 5, described device 500 includes: the first acquisition module 501, the first starting module 502, acquisition module 503 and first sending module 504, in which:
Described first obtains module 501, for referring to based on described first when receiving the first instruction of starting application It enables, obtains the first container, wherein the first container is container corresponding with the application;
First starting module 502, for starting the first container, wherein described the based on first instruction One container built in agent service;
Acquisition module 503, for acquiring the data that the application generates in the process of running by the first plug-in unit;
First sending module 504, for the data to be sent to route service, wherein the route service is not in institute It states in the first container.
In other embodiments, described device further include:
Second sending module, for being instructed based on described second when receiving the second instruction of the data for obtaining application, The first request message for obtaining the data of the application is sent to the route service;
First receiving module obtains carrying in first response message for receiving and parsing through the first response message The data of the application.
In other embodiments, described device further include:
Third sending module, for being instructed based on described second when receiving the second instruction of the data for obtaining application, The second request message for obtaining the data of the application is sent to the operation service of the first container;
Parsing module, if the second response message sent for receiving the operation service, parses second sound Message is answered, the data of the application carried in second response message are obtained;
4th sending module, if sending and using to the route service for being not received by second response message In the first request message of the data for obtaining the application.
In other embodiments, described device further include:
5th sending module, for being instructed based on described second when receiving the second instruction of the data for obtaining application, The first request message for obtaining the data of the application, and the operation to the first container are sent to the route service Service sends the second request message for obtaining the data of the application;
Second obtains module, the first response message and/or operation service for being sent based on the route service received The second response message sent, obtains the data of the application.
In other embodiments, the second acquisition module includes:
First acquisition unit, if for receiving first response message within default waiting time and not receiving To second response message, first response message is parsed, the data of the application are obtained;Alternatively,
Second acquisition unit, if for receiving second response message within default waiting time and not receiving To first response message, second response message is parsed, the data of the application are obtained;Alternatively,
Third acquiring unit, if for receiving first response message and described second within default waiting time Response message obtains the first attribute information of the first data and first data that carry in first response message;
4th acquiring unit, for obtaining the second data carried in second response message and second data Second attribute information;
Determination unit, for being based on first attribute information and second attribute information, from first data and The data of the determination application to be saved in second data.
In other embodiments, in first attribute information include at least the first initial time, first terminate the time and First space size includes at least the second initial time in second attribute information, second terminates the time and second space is big Small, accordingly, the determination unit is also used to:
If described first, which terminates the time, terminates the time earlier than described second, and first space size is less than described the Two space sizes, the data for the application that second data are determined as being saved;
If it is described first terminate the time earlier than second initial time, or if it is described second terminate the time earlier than First initial time, the data for the application that first data and second data are determined as saving;
If described second, which terminates the time, terminates the time earlier than described first, and the second space size is less than described the One space size, the data for the application that first data are determined as being saved.
In other embodiments, described device further include:
Third obtains module and obtains the mark of the application for parsing first request message received;
4th acquisition module obtains the data of the application for the mark according to the application;
6th sending module is sent to the request for the data of the application to be carried in the first response message The service of data.
In other embodiments, first sending module includes:
First transmission unit, for the data to be sent to the routing by socket mode by preset interval duration Service;Alternatively,
Second transmission unit is used for when the occupied space size of collected data is greater than preset threshold, by being socketed The data are sent to the route service by word mode;
In other embodiments, the 6th sending module includes:
Third transmission unit is inserted for the data of the application to be carried in the first response message by described first Part is sent to the service of the request data.
It need to be noted that: the description of information above processing device embodiment item is similar with above method description , there is with embodiment of the method identical beneficial effect.For undisclosed technology in information processing unit embodiment of the present invention Details, those skilled in the art please refer to the description of embodiment of the present invention method and understand.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment A particular feature, structure, or characteristic is included at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction " in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot Structure or characteristic can combine in any suitable manner in one or more embodiments.It should be understood that in various implementations of the invention In example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, and the execution sequence of each process should be with its function It can determine that the implementation process of the embodiments of the invention shall not be constituted with any limitation with internal logic.The embodiments of the present invention Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit;Both it can be located in one place, and may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: movable storage device, read-only deposits The various media that can store program code such as reservoir (Read Only Memory, ROM), magnetic or disk.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes: various Jie that can store program code such as movable storage device, ROM, magnetic or disk Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of information processing method is applied to electronic equipment, which is characterized in that the described method includes:
When starting service receives the first instruction of starting application, is instructed based on described first, obtains the first container, wherein The first container is container corresponding with the application;
The starting service starts the first container based on first instruction, wherein the first container built in agent clothes Business;
The agency service acquires the data that the application generates in the process of running by the first plug-in unit;
The data are sent to route service by the agency service, wherein the route service is not in the first container.
2. method according to claim 1, which is characterized in that the method also includes:
When the service of request data receives the second instruction for obtaining the data of application, based on second instruction, to described Route service sends the first request message for obtaining the data of the application;
The service of the request data receives and parses through the first response message, obtains carrying in first response message described The data of application.
3. method according to claim 2, which is characterized in that send to the route service for obtaining described answer Before first request message of data, the method also includes:
When the service of request data receives the second instruction for obtaining the data of application, based on second instruction, to described The operation service of the first container sends the second request message for obtaining the data of the application;
If receiving the second response message that the operation service is sent, second response message is parsed, obtains described the The data of the application carried in two response messages;
If being not received by second response message, the data for obtaining the application are sent to the route service First request message.
4. method according to claim 2, which is characterized in that the method also includes:
When the service of request data receives the second instruction for obtaining the data of application, based on second instruction, to described Route service sends the first request message for obtaining the data of the application, and sends out to the operation service of the first container Send the second request message of the data for obtaining the application;
The second response message that the first response message sent based on the route service received and/or operation service are sent, is obtained Take the data of the application.
5. method according to claim 4, which is characterized in that first sent based on the route service received The second response message that response message and/or operation service are sent, obtains the data of the application, comprising:
If receiving first response message within default waiting time and being not received by second response message, solve First response message is analysed, the data of the application are obtained;Alternatively,
If receiving second response message within default waiting time and being not received by first response message, solve Second response message is analysed, the data of the application are obtained;Alternatively,
If receiving first response message and second response message within default waiting time, described first is obtained First attribute information of the first data and first data that are carried in response message;
Obtain the second attribute information of the second data carried in second response message and second data;
Based on first attribute information and second attribute information, determined from first data and second data The data for the application to be saved.
6. method according to claim 5, which is characterized in that include at least the first starting in first attribute information Time, first terminate time and the first space size, and the second initial time, second are included at least in second attribute information eventually Only time and second space size, it is accordingly, described to be based on first attribute information and second attribute information, from described The data of the determination application to be saved in first data and second data, comprising:
If described first terminates the time earlier than the second termination time, and first space size is less than second sky Between size, the data for the application that second data are determined as being saved;
If described first terminates the time earlier than second initial time, or if described second terminates the time earlier than described First initial time, the data for the application that first data and second data are determined as saving;
If described second terminates the time earlier than the first termination time, and the second space size is less than first sky Between size, the data for the application that first data are determined as being saved.
7. method according to any one of claim 2 to 4, which is characterized in that the method also includes:
The route service parses first request message received, obtains the mark of the application;
The route service obtains the data of the application according to the mark of the application;
The data of the application are carried in the first response message by the route service, are sent to the clothes of the request data Business.
8. method according to any one of claim 1 to 6, which is characterized in that the agency service sends out the data It send to route service, comprising: the data are sent to institute by socket mode by preset interval duration by the agency service State route service;Alternatively, when the occupied space size of the collected data of the agency service is greater than preset threshold, by covering It connects word mode and the data is sent to the route service;
Alternatively,
The data of the application are carried in the first response message by the route service, are sent to the service of request data, packet Include: the data of the application are carried in the first response message by the route service, are sent to institute by first plug-in unit State the service of request data.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes at least: memory, communication bus and processor, In:
The memory is used for storing information processing program;
The communication bus, for realizing the connection communication between processor and memory;
The processor, for executing the message handling program stored in memory, to realize any one of claims 1 to 8 Described in information processing method the step of.
10. a kind of information processing unit, which is characterized in that the information processing unit includes: the first acquisition module, the first starting Module, acquisition module and the first sending module, in which:
Described first obtains module, for based on first instruction, obtaining the when receiving the first instruction of starting application One container, wherein the first container is container corresponding with the application;
First starting module, for starting the first container, wherein the first container based on first instruction Built in agent service;
Acquisition module, for acquiring the data that the application generates in the process of running by the first plug-in unit;
First sending module, for the data to be sent to route service, wherein the route service is not held described first In device.
CN201810587160.9A 2018-06-08 2018-06-08 Information processing method, equipment and device Active CN108959046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810587160.9A CN108959046B (en) 2018-06-08 2018-06-08 Information processing method, equipment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810587160.9A CN108959046B (en) 2018-06-08 2018-06-08 Information processing method, equipment and device

Publications (2)

Publication Number Publication Date
CN108959046A true CN108959046A (en) 2018-12-07
CN108959046B CN108959046B (en) 2020-10-30

Family

ID=64493513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810587160.9A Active CN108959046B (en) 2018-06-08 2018-06-08 Information processing method, equipment and device

Country Status (1)

Country Link
CN (1) CN108959046B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600380A (en) * 2018-12-19 2019-04-09 北京创鑫旅程网络技术有限公司 Data transmission method and device
WO2020143324A1 (en) * 2019-01-08 2020-07-16 平安科技(深圳)有限公司 Service program releasing method and apparatus, and computer device and storage medium
CN112242933A (en) * 2019-07-16 2021-01-19 贵州白山云科技股份有限公司 TCPCOPY test method, device, medium and equipment
CN112532715A (en) * 2020-11-25 2021-03-19 京东方科技集团股份有限公司 Deployment method, access method, device, system and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170060699A1 (en) * 2015-08-27 2017-03-02 Netapp, Inc. Methods and systems for restoring data containers in a storage system
CN106776064A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for managing logs in multiple systems
CN107463450A (en) * 2017-07-26 2017-12-12 中国联合网络通信集团有限公司 The data processing method and device of container
CN107506258A (en) * 2016-06-14 2017-12-22 伊姆西公司 Method and apparatus for data backup
CN107844539A (en) * 2017-10-19 2018-03-27 广州阿里巴巴文学信息技术有限公司 Isolated data management method, device, system, computing device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170060699A1 (en) * 2015-08-27 2017-03-02 Netapp, Inc. Methods and systems for restoring data containers in a storage system
CN107506258A (en) * 2016-06-14 2017-12-22 伊姆西公司 Method and apparatus for data backup
CN106776064A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for managing logs in multiple systems
CN107463450A (en) * 2017-07-26 2017-12-12 中国联合网络通信集团有限公司 The data processing method and device of container
CN107844539A (en) * 2017-10-19 2018-03-27 广州阿里巴巴文学信息技术有限公司 Isolated data management method, device, system, computing device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600380A (en) * 2018-12-19 2019-04-09 北京创鑫旅程网络技术有限公司 Data transmission method and device
CN109600380B (en) * 2018-12-19 2020-11-10 北京创鑫旅程网络技术有限公司 Data transmission method and device
WO2020143324A1 (en) * 2019-01-08 2020-07-16 平安科技(深圳)有限公司 Service program releasing method and apparatus, and computer device and storage medium
CN112242933A (en) * 2019-07-16 2021-01-19 贵州白山云科技股份有限公司 TCPCOPY test method, device, medium and equipment
CN112532715A (en) * 2020-11-25 2021-03-19 京东方科技集团股份有限公司 Deployment method, access method, device, system and computer-readable storage medium

Also Published As

Publication number Publication date
CN108959046B (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN108959046A (en) A kind of information processing method, equipment and device
CN108287917A (en) file open method, device, storage medium and electronic equipment
WO2014206289A1 (en) Method and apparatus for outputting log information
CN106296135A (en) Event-prompting method, device and terminal
CN108076017A (en) The protocol analysis method and device of a kind of data packet
CN107609086B (en) APP pushing method and engine system thereof
CN110740145A (en) Message consumption method, device, storage medium and electronic equipment
CN110457132B (en) Method and device for creating functional object and terminal equipment
CN109471627A (en) Page presentation control method, system and device
CN115480753A (en) Application integration system and corresponding computer device and storage medium
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN113220403A (en) Method and device for h5 intercepting Android return event and electronic equipment
CN107633080B (en) User task processing method and device
CN109739665A (en) Interface managerial method, device, server and storage medium
CN111191225B (en) Method, device, medium and electronic equipment for switching isolated objects
CN110119269B (en) Method, device, server and storage medium for controlling task object
CN110213310B (en) Method, device and storage medium for acquiring path of network service
CN110147294A (en) Acquisition methods, device, terminal and the computer readable storage medium of Debugging message
CN115794583A (en) Kernel analysis method and device
CN114928562A (en) Flow processing method and system for graph computing platform
CN105577904B (en) A kind of file sharing method and mobile terminal
CN110618881B (en) Method and system for simulating message queue
CN113067878A (en) Information acquisition method, information acquisition device, information acquisition apparatus, information acquisition medium, and program product
CN107888445B (en) Method and device for analyzing performance state, computer equipment and storage medium
CN110086893A (en) Domain name analytic method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant