CN103294527A - Method, system, and server for processing network task - Google Patents

Method, system, and server for processing network task Download PDF

Info

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
Application number
CN2012100509243A
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.)
SHENZHEN SINOCYBER TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN SINOCYBER TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN SINOCYBER TECHNOLOGY Co Ltd filed Critical SHENZHEN SINOCYBER TECHNOLOGY Co Ltd
Priority to CN2012100509243A priority Critical patent/CN103294527A/en
Publication of CN103294527A publication Critical patent/CN103294527A/en
Pending legal-status Critical Current

Links

Images

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

A kind of method, system and server of handling network task
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.
CN2012100509243A 2012-02-29 2012-02-29 Method, system, and server for processing network task Pending CN103294527A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
CN102147746B (en) Dynamic thread pool management system and method
US9277030B2 (en) Stream processing using a client-server architecture
CN104219316A (en) Method and device for processing call request in distributed system
US20200159622A1 (en) Rule based failure addressing
CN103530255A (en) Distributed asynchronous event processing method and system
CN110830548A (en) Internet of things card operation platform, data updating method, device and storage medium
CN108900627B (en) Network request method, terminal device and storage medium
CN111490963A (en) Data processing method, system, equipment and storage medium based on QUIC protocol stack
CN113411404A (en) File downloading method, device, server and storage medium
CN103532755A (en) Method and system for processing distributed asynchronous events
CN113703997A (en) Bidirectional asynchronous communication middleware system integrating multiple message agents and implementation method
US10313450B2 (en) Method for transparently connecting augmented network socket operations
CN103186536A (en) Method and system for scheduling data shearing devices
CN103294527A (en) Method, system, and server for processing network task
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN113965628A (en) Message scheduling method, server and storage medium
CN114090268B (en) Container management method and container management system
CN115426361A (en) Distributed client packaging method and device, main server and storage medium
CN104618219A (en) Cross-machine-room data synchronizing method and device
CN113992740A (en) Middleware based on autonomous control and data transmission method
CN112148803A (en) Method, device and equipment for calling tasks in block chain and readable storage medium
CN114942797B (en) System configuration method, device, equipment and storage medium based on side car mode
CN116915860B (en) Instruction transmission method, device, equipment and medium based on UDP
CN109388536B (en) Data collection method and device
CN106653027A (en) Smart home voice control system based on NodeJS

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