CN103294527A - Method, system, and server for processing network task - Google Patents
Method, system, and server for processing network task Download PDFInfo
- Publication number
- CN103294527A CN103294527A CN2012100509243A CN201210050924A CN103294527A CN 103294527 A CN103294527 A CN 103294527A CN 2012100509243 A CN2012100509243 A CN 2012100509243A CN 201210050924 A CN201210050924 A CN 201210050924A CN 103294527 A CN103294527 A CN 103294527A
- Authority
- CN
- China
- Prior art keywords
- task
- daily record
- program
- processing
- grade
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method, a system, and a server for processing a network task, which are suitable for the field of telecommunications. The method comprises the following steps: arranging task processing parameters; receiving task programs sent by a sending terminal, and loading the task programs to a processing thread; and processing the task programs, and storing processing log information and unusual error information. In the embodiment of the invention, by arranging the task parameters, processing the received task programs in sequence, and storing the log information and the abnormal error information which are processed according to log level, a plurality of task programs can be received at the same time, a plurality of the task programs can be processed at the same time, a task can be automatically received and transmitted, and an engineer only needs to process the received task; and a task programmed by C programming language, JAVA programming language and other multiple programming languages can be processed to allow a developer to be absorbed in the development of software only.
Description
Technical field
The invention belongs to the communications field, relate in particular to a kind of method, system and server of handling network task.
Background technology
Along with the development of computing machine and software engineering, all trades and professions all more and more adopt various softwares to manage and control business.The server of prior art needs the slip-stick artist to carry out the task reception usually, handles, and the task that the whole process of Zhuan Faing, and prior art again receives is all used different language, causes trouble for the server of this task of processing.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method of handling network task, is intended to solve in existing server process network task inefficiency, the skimble-scamble problem of task language.
The embodiment of the invention is achieved in that a kind of method of handling network task, and described method comprises the steps:
The task processing parameter is set;
The task program that receiving end/sending end sends, and described task program is loaded in the processing threads;
Described task program is handled, and stores processor log information and exception error information.
Another purpose of the embodiment of the invention is to provide a kind of system that handles network task, and described system comprises:
Task parameters arranges the unit, is used for arranging the task processing parameter;
The task program receiving element is used for the task program that receiving end/sending end sends;
The task program loading unit is used for the task program that described task program receiving element receives is loaded into processing threads;
The task program processing unit is used for the task program that described task program loading unit loads is handled;
The log information storage unit is used for information and the exception error information of described task program processing unit processes task are stored with the daily record form.
Another purpose of the embodiment of the invention is to protect a kind of server, and described server comprises aforesaid system.
In the embodiment of the invention, task parameters is set, the task program that receives is handled in regular turn, and according to log information and the exception error information of the described processing of daily record class stores, make the present invention can receive a plurality of task programs simultaneously, and handle a plurality of task programs simultaneously, automatic reception and forwarding task, the task that the slip-stick artist only need handle reception gets final product, and the present invention is set to handle the task of being write by multilinguals such as C language, JAVA language, and the exploitation that makes the developer only need be absorbed in software itself gets final product.
Description of drawings
Fig. 1 is the process flow diagram of the processing network task method that provides of the embodiment of the invention;
Fig. 2 is the structural drawing of the processing network task system that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
In the embodiment of the invention, task parameters is set, the task program that receives is handled in regular turn, and according to log information and the exception error information of the described processing of daily record class stores, make that the present invention can automatic reception and forwarding task, the task that the slip-stick artist only need handle reception gets final product, and the present invention is set to handle the task of being write by multilinguals such as C language, JAVA language, and the exploitation that makes the developer only need be absorbed in software itself gets final product.
Embodiment one:
Fig. 1 shows the process flow diagram of the processing network task method that the embodiment of the invention provides, and details are as follows:
In step S101, the task processing parameter is set, described task processing parameter comprises: maximum task receives number and maximum mission thread number.
In the embodiment of the invention, before beginning to handle the task requests of transmitting terminal, task parameters need be set, described parameter comprises: maximum task receives number, the task requests number that namely can receive simultaneously at most; Maximum mission thread number namely at most can simultaneously treated number of tasks, and these two parameters are to change according to the needs of task.
In step S102, the task program that receiving end/sending end sends, and described task program is loaded in the processing threads.
In embodiments of the present invention, the present invention can use in each server with the internet, namely use each server of this method also can send data mutually and carry out task and handle, so the present invention's transmitting terminal comprises: client, use other servers of the present invention.Transmitting terminal is when having task to handle, and the task that needs are handled sends to server, and server is loaded into described task in the processing threads after receiving task, and the task of being about to is loaded into etc. in the pending thread.The maximum task that arranges by step S101 receives the number of tasks that number can receive a plurality of transmitting terminals, can realize a plurality of task handling by the maximum mission thread number that step S101 arranges.Its loading procedure is specially: listening port receives the socket of this task task that is saved in the formation after listening to task requests; Receive quantity and the task parameters that connects in the formation according to task, in regular turn described task is handled.
In step S103, described task program is handled, and stored handling log information and exception error information.
In embodiments of the present invention, calling corresponding program handles the task program in the processing threads, the present invention is set to handle the task of being write by multilinguals such as C language, JAVA language, and the form of processing procedure daily record stored, if abnormal conditions in processing procedure, occur, then store described exception error information, be used for subsequent treatment.
The step of stores processor log information is specially:
The storing daily record grade is set, is set to 4 as the log store grade, and definition has only the daily record grade greater than 4 just can store.
Task daily record grade is set, the daily record grade of the task correspondence that transmitting terminal sends namely is set, as task daily record grade can for: 1,2,3,4,5,6 etc.
Store tasks daily record grade is more than or equal to the daily record of storing daily record grade.
In step S104, the task program result is sent it back transmitting terminal.
The inventive method also can be monitored hardware resource in addition, and the utilization rate of monitoring CPU, hard disk, internal memory in case hardware resource exhausts, and reports monitored results and the operation conditions of self.
In the embodiment of the invention, task parameters is set, the task program that receives is handled in regular turn, and according to log information and the exception error information of the described processing of daily record class stores, make the present invention can receive a plurality of task programs simultaneously, and handle a plurality of task programs simultaneously, automatic reception and forwarding task, the task that the slip-stick artist only need handle reception gets final product, and the present invention is set to handle the task of being write by multilinguals such as C language, JAVA language, and the exploitation that makes the developer only need be absorbed in software itself gets final product.
Embodiment two:
Figure 2 shows that the structural drawing of the processing network task system that the embodiment of the invention provides, only be illustrated in the relevant part of the embodiment of the invention for convenience of explanation, comprising:
Task parameters arranges unit 21, is used for arranging the task processing parameter.
Task program receiving element 22 is used for the task program that receiving end/sending end sends.
Task program loading unit 23 is used for the task program that described task program receiving element 23 receives is loaded into processing threads.
Task program processing unit 24 is used for the task program that described task program loading unit 23 loads is handled.
Log information storage unit 25 is used for information and the exception error information of described task program processing unit 24 Processing tasks are stored with the daily record form.
Result transmitting element 27 is used for the task result that described task program processing unit 24 is handled is sent to transmitting terminal.
Wherein, described task parameters arranges unit 21 and specifically comprises:
Task receives number unit 211 is set, and is used for arranging the maximum task requests number that can receive simultaneously.
The mission thread number arranges unit 212, and being used for arranging can simultaneously treated maximum task requests number.
Wherein, described log information storage unit 25 specifically comprises:
The log store grade arranges module 251, is used for arranging the stored log message level.
Task daily record grade arranges module 252, for the daily record grade of the task correspondence that the transmitting terminal transmission is set.
Log information memory module 253 is used for storing daily record information, and the grade of described log information arranges the daily record grade that module 251 arranges more than or equal to described log store grade.
In the embodiment of the invention, task parameters is set, the task program that receives is handled in regular turn, and according to log information and the exception error information of the described processing of daily record class stores, make the present invention can receive a plurality of task programs simultaneously, and handle a plurality of task programs simultaneously, automatic reception and forwarding task, the task that the slip-stick artist only need handle reception gets final product, and the present invention is set to handle the task of being write by multilinguals such as C language, JAVA language, and the exploitation that makes the developer only need be absorbed in software itself gets final product.
The embodiment of the invention also provides a kind of server, and described server comprises aforesaid system.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a method of handling network task is characterized in that, described method comprises the steps:
The task processing parameter is set;
The task program that receiving end/sending end sends, and described task program is loaded in the processing threads;
Described task program is handled, and stores processor log information and exception error information.
2. the method for claim 1 is characterized in that, described task program is handled, and after the step of the information of stores processor daily record and exception error information, described method is further comprising the steps of:
The task program result is sent it back transmitting terminal.
3. the method for claim 1 is characterized in that, described task processing parameter comprises:
Maximum task receives number, the task requests number that namely can receive simultaneously at most;
Maximum mission thread number namely at most can simultaneously treated number of tasks.
4. the method for claim 1 is characterized in that, the step of described stores processor log information is specially:
The storing daily record grade is set;
Task daily record grade is set;
Store tasks daily record grade is more than or equal to the daily record of storing daily record grade.
5. as each described method of claim 1-4, it is characterized in that described task processing parameter is adjusted according to the task needs.
6. a system that handles network task is characterized in that, described system comprises:
Task parameters arranges the unit, is used for arranging the task processing parameter;
The task program receiving element is used for the task program that receiving end/sending end sends;
The task program loading unit is used for the task program that described task program receiving element receives is loaded into processing threads;
The task program processing unit is used for the task program that described task program loading unit loads is handled;
The log information storage unit is used for information and the exception error information of described task program processing unit processes task are stored with the daily record form.
7. system as claimed in claim 6.It is characterized in that described system also comprises:
The result transmitting element is used for the task handling result is sent to transmitting terminal.
8. system as claimed in claim 6 is characterized in that, described task parameters arranges the unit and specifically comprises:
Task receives number the unit is set, and is used for arranging the maximum task requests number that can receive simultaneously;
The mission thread number arranges the unit, and being used for arranging can simultaneously treated maximum task requests number.
9. system as claimed in claim 6 is characterized in that, described log information storage unit specifically comprises:
The log store grade arranges module, is used for arranging the stored log message level;
Task daily record grade arranges module, for the daily record grade of the task correspondence that the transmitting terminal transmission is set;
The log information memory module is used for storing daily record information, and the grade of described log information arranges the daily record grade that module arranges more than or equal to described log store grade.
10. server, described server comprises each described system as claim 6-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100509243A CN103294527A (en) | 2012-02-29 | 2012-02-29 | Method, system, and server for processing network task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100509243A CN103294527A (en) | 2012-02-29 | 2012-02-29 | Method, system, and server for processing network task |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103294527A true CN103294527A (en) | 2013-09-11 |
Family
ID=49095460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100509243A Pending CN103294527A (en) | 2012-02-29 | 2012-02-29 | Method, system, and server for processing network task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103294527A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919494A (en) * | 2015-12-25 | 2017-07-04 | 阿里巴巴集团控股有限公司 | The implementation method and device of Android application daily record |
CN108319495A (en) * | 2017-01-16 | 2018-07-24 | 阿里巴巴集团控股有限公司 | Task processing method and device |
CN115454954A (en) * | 2022-08-31 | 2022-12-09 | 上海移柯通信技术股份有限公司 | Data processing method, system and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957746A (en) * | 2009-07-13 | 2011-01-26 | 中兴通讯股份有限公司 | Task management system and method |
CN101980206A (en) * | 2010-11-05 | 2011-02-23 | 北京云快线软件服务有限公司 | File task management tool |
CN102279730A (en) * | 2010-06-10 | 2011-12-14 | 阿里巴巴集团控股有限公司 | Parallel data processing method, device and system |
-
2012
- 2012-02-29 CN CN2012100509243A patent/CN103294527A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957746A (en) * | 2009-07-13 | 2011-01-26 | 中兴通讯股份有限公司 | Task management system and method |
CN102279730A (en) * | 2010-06-10 | 2011-12-14 | 阿里巴巴集团控股有限公司 | Parallel data processing method, device and system |
CN101980206A (en) * | 2010-11-05 | 2011-02-23 | 北京云快线软件服务有限公司 | File task management tool |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919494A (en) * | 2015-12-25 | 2017-07-04 | 阿里巴巴集团控股有限公司 | The implementation method and device of Android application daily record |
CN106919494B (en) * | 2015-12-25 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Method and device for realizing android application log |
CN108319495A (en) * | 2017-01-16 | 2018-07-24 | 阿里巴巴集团控股有限公司 | Task processing method and device |
CN115454954A (en) * | 2022-08-31 | 2022-12-09 | 上海移柯通信技术股份有限公司 | Data processing method, system and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9277030B2 (en) | Stream processing using a client-server architecture | |
US20200159622A1 (en) | Rule based failure addressing | |
CN102147746A (en) | Dynamic thread pool management | |
CN103034475B (en) | Distributed Parallel Computing method, Apparatus and system | |
CN113411404A (en) | File downloading method, device, server and storage medium | |
CN110830548A (en) | Internet of things card operation platform, data updating method, device and storage medium | |
CN111490963A (en) | Data processing method, system, equipment and storage medium based on QUIC protocol stack | |
CN111831503B (en) | Monitoring method based on monitoring agent and monitoring agent device | |
CN108900627B (en) | Network request method, terminal device and storage medium | |
CN108519987A (en) | A kind of data persistence method and apparatus | |
CN113157405B (en) | Method and device for retrying break points of business process | |
CN110324384B (en) | Data pushing method and device | |
CN103294527A (en) | Method, system, and server for processing network task | |
CN113965628A (en) | Message scheduling method, server and storage medium | |
US20120102168A1 (en) | Communication And Coordination Between Web Services In A Cloud-Based Computing Environment | |
US20170041402A1 (en) | Method for transparently connecting augmented network socket operations | |
CN114090268B (en) | Container management method and container management system | |
CN113703933A (en) | Task processing method and device | |
CN114942797B (en) | System configuration method, device, equipment and storage medium based on side car mode | |
CN106653027A (en) | Smart home voice control system based on NodeJS | |
CN113992740A (en) | Middleware based on autonomous control and data transmission method | |
CN109034768B (en) | Financial reconciliation method, apparatus, computer device and storage medium | |
CN106899652A (en) | A kind of method and device of transmission service result | |
CN105677692A (en) | Information system and method for providing information inquiry in real time | |
CN113485811B (en) | Computing task management method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130911 |
|
RJ01 | Rejection of invention patent application after publication |