Summary of the invention
In order to solve the above technical problems, the embodiment of the present invention provides a kind of e-book method for pushing and device, so that electricThe shelf life of subgraph book chapters and sections shortens, so that user be made to get newest e-book chapters and sections information as early as possible.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of e-book method for pushing, comprising:
Increase in the first message that analysis e-book chapters and sections obtain and describes the excellent of the e-book chapters and sections priorityFirst grade field;Identify the precedence field, and according to the information of the precedence field to the first message in message teamPosition in column is arranged;Message queue after arrangement is handled.
In above scheme, when the first message is the message of the newly-increased e-book chapters and sections of description, the method also includes:High priority is set by the information of the precedence field of the first message.
In above scheme, the message queue by after arrangement is handled, comprising: by the message queue after the arrangementIt is synchronized to notice synchronization system NSS, makes NSS that Notification of Changes system CNS be notified to send Notification of Changes message to portal.
In above scheme, the information of the identification precedence field, and according to the information pair of the precedence fieldPosition of the first message in message queue is arranged, comprising: is carried out to whole queue messages according to priority-levelIt rearranges, and high-priority message is preferentially pushed;Alternatively, whole queue messages are divided into high-priority message queueWith low priority message queue, and the message prioritization in high-priority message queue is pushed.
In above scheme, described increase in the first message that analysis e-book chapters and sections obtain describes the e-bookBefore the precedence field of chapters and sections priority, the method also includes: it generates comprising the e-book chapters and sections related dataFirst message;Wherein, the e-book chapters and sections related data, including e-book ID, books charging case data and booksCopyright information.
In above scheme, the information of the precedence field by the first message is set as high priority, comprising: willThe information of the precedence field of the first message is set as the highest priority in the priority of many levels.
The embodiment of the present invention provides a kind of e-book driving means, and described device includes:
Adding unit describes the e-book chapter for increasing in the first message that analysis e-book chapters and sections obtainSave the precedence field of priority;Arrangement units, the precedence field for identification, and according in the precedence fieldInformation arranges position of the first message in message queue;Processing unit, for the message queue after arrangingIt is handled.
In above scheme, the adding unit is specifically used for: the first message is to describe newly-increased e-book chapters and sectionsWhen message, high priority is set by the information of the precedence field of the first message.
In above scheme, the processing unit is specifically used for: the message queue after the arrangement is synchronized to notice NSS,Make NSS that CNS be notified to send Notification of Changes message to portal.
In above scheme, the arrangement units are specifically used for: carrying out again to whole queue messages according to priority-levelArrangement, and high-priority message is preferentially pushed;Alternatively, whole queue messages are divided into high-priority message queue and lowPriority message queue, and the message prioritization in high-priority message queue is pushed.
In above scheme, described device further include: generation unit includes the e-book chapters and sections dependency number for generatingAccording to first message;Wherein, the e-book chapters and sections related data, including e-book ID, books charging case data andBooks copyright information.
In above scheme, the adding unit is also used to: the first message is to describe disappearing for newly-increased e-book chapters and sectionsWhen breath, the highest priority that sets the information of the precedence field of the first message in the priority of many levels.
E-book method for pushing and device provided by the embodiment of the present invention describe the e-book chapters and sections by increasingThe precedence field of priority, and position of the first message in message queue is carried out according to the information in the precedence fieldArrangement, is later handled message by putting in order;In this way, the shelf life of e-book chapters and sections can be made to shorten, to makeUser gets newest e-book chapters and sections information as early as possible.
Specific embodiment
In order to more fully hereinafter understand the features of the present invention and technology contents, with reference to the accompanying drawing to reality of the inventionIt is now described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the present invention.
Fig. 2 is the implementation flow chart of e-book of embodiment of the present invention method for pushing, as shown in Fig. 2, the embodiment of the present inventionThe e-book method for pushing of offer includes:
Step 201, the increase description e-book chapters and sections are preferential in the first message that analysis e-book chapters and sections obtainThe precedence field of grade;
Here, first message can be the message for describing newly-increased e-book chapters and sections.
Step 202, identify the precedence field, and according to the information in precedence field to first message in message queueIn position arranged.
Step 203, the message queue after arrangement is handled.
After step 203, it needs for the message queue after arrangement to be synchronized to notice NSS, NSS is made to notify Notification of Changes systemSystem CNS sends Notification of Changes message to portal.
Before step 201, e-book method for pushing provided in an embodiment of the present invention further include: generating includes electronic chartThe first message of book chapters and sections related data.
Wherein, e-book chapters and sections related data, including e-book ID, books charging case data and books copyright letterBreath.
The whole flow process of e-book chapters and sections restocking are as follows:
Firstly, file packet is parsed after CP platform receives the file packet that MRMP is uploaded, if successfully resolved,In-stockroom operation is carried out, i.e., generates respective record by major key of e-book ID in books relevant information table.
It includes: that book item information is recorded in the books book item information that parsing obtains that relative recording is generated in book information tableTable;The upload result detail records that parsing is obtained upload detail list to books;Book is recorded in the upload result that parsing obtainsNationality upload information table;The essential information of the e-book, copyright information are saved in books model table;Content is integrated into quotient's correlationInformation is stored to extension information table.Wherein, the state of book item information table is " to be committed " state.
In addition, needing according to the actual situation, it is also possible to it is related to chapters and sections model table etc. to generate book item model table, volume model tableRecord.
After generating relative recording, books and copyright information etc. are associated by CP platform, i.e., will be in book item information tableThe information updates such as writer ID, writer pseudonym, copyright status are the current copyright information for uploading books.
After being associated with books copyright information, CP platform audits the information such as books copyright, writer, price, audits itWhether the operational requirement such as lowest price is met, if met the requirements, audit passes through.
It requires after the approval, not verifying content translator and carry out flame to e-book relevant information operationalScanning, judges whether there is sensitive information, indecency information.If scanned successfully, CP platform is returned result to after scanning;If scanning failure, sends out scan request after the first setting time again, if scanning times reach first threshold, abandonsScanning.
After CP platform receives scanning result, judge whether the books of restocking are restocking books for the first time, if it is, being believedBreath increases to newly-increased batch table, and is assigned to list to be allocated and is edit and reviseed, its state is set as " to be allocated ", if not,It is then assigned to non-first batch of first trial list, its state is set as " to first trial ".
When distributing to editing, can be selected from editing group membership's information table, editing group information table or MCP Administrator Info's tableSelect the editing group membership of distribution.
Editing personnel carry out first trial, last instance to books, if audit does not pass through, according to essential information, chapters and sections information etc.Books are rejected and are modified to CP platform;If audit passes through, enter subsequent processing step.
After last instance passes through, audits the new file passed through and be packaged.
In packing process, need to judge whether to be related in packing task to be processed the packing of charging chapters and sections.If wait be packagedFile be not related to charging chapters and sections, then directly new file is packaged;If charging chapters and sections involved in packing task are packaged, needAccording to circumstances first beat encrypted packet.
After the completion of packing, MRMP carries out generation product to books, and according to whether complete, classifying content, board-like classification andContent integrates quotient ID and carries out automatic get-on carriage operation, generates bibliography Notification of Changes, generates search ticket and is added and recommends library operation.
Portal is connected to Notification of Changes, and server interface is called to update caching, to the success of this shelving.
In books on MRMP after automatic get-on carriage, MRMP is by bibliography Notification of Changes message synchronization to NSS, from NSS to changeNotice system CNS sends message, to notify portal, wherein portal includes various reading terminals, application or browser.
In the process of above-mentioned e-book chapters and sections restocking, NSS provides a total the processing clothes of at least 19 kinds change messageBusiness, but mainly include contentChange and two kinds of nodeChange for the message of content alteration, wherein nodeChange packetThe newly-increased function with undercarriage on books in prefecture in prefecture is contained, requirement of real-time is not high;ContentChange is mainly completedNewly-increased chapters and sections or the function of having increased the book content change including this books newly, requirement of real-time are higher.In actual operation ringIn border, the size of message of the size of message of nodeChange often far super contentChange.Since the treatment mechanism of NSS is queueForm, the change message that priority processing first receives cause important books of publishing in instalments to increase the message needs waiting of chapters and sections newly very muchCould be processed after the completion of undercarriage on books, put off Message Processing significantly.And the embodiment of the present invention is excellent to News Category progressFirst grade setting considers that two factors of time and priority carry out Message Processing arrangement, will be preferential in the message of newly-increased books chapters and sectionsThe information of level field is set as high priority, can as early as possible handle the message of newly-increased books chapters and sections.
When increasing the precedence field for describing the e-book chapters and sections priority, if first message is to describe new electronationWhen the message of books chapters and sections, then high priority is set by the information of the precedence field of first message.
Preferably, to set the highest in the priority of many levels for the information of the precedence field of first message preferentialGrade.
Specifically, in step 201, for each first message type, increase a precedence field in message body,High priority is indicated with 1, and use 0 indicates low priority.Certainly, the priority that many levels can be set in practical applications, thanFour kinds of priority, i.e., 00,01,10,11 4 grade are such as indicated with two positions.
In step 202, position of the first message in message queue is arranged according to the information in precedence fieldIt, can be with as shown in figure 3, be rearranged to whole queue messages according to priority-level, and by high-priority message when columnPreferentially pushed;It can also be as shown in figure 4, whole queue messages be divided into high-priority message queue and low priority messageQueue, and the message prioritization in high-priority message queue is pushed.
In step 202, NSS is received after the first message that mobile phone reads management platform, first to first messagePrecedence field is identified, after the priority-level for determining first message, is handled the first message, specific processing sideFormula may include two kinds:
First is that being rearranged to whole queue messages.As shown in figure 3, identifying the message when receiving a new informationPriority-level, then according to the priority-level of identification in queue be in armed state in entire message arrangeNew message is inserted on corresponding position by sequence;In Fig. 3, after message N+1 is identified, according to priority rank sequence is insertedEnter between message 1 and message 2.The message of high priority can be arranged largely in the message queue determined using whichBefore queue, so that it is guaranteed that obtaining priority processing.Using which, on the one hand can not need to re-establish additional messageQueue saves message memory space;On the other hand message is reached into the time sequencing of message queue in conjunction with priority ordersGet up to consider, and not merely determine processing sequence according to the height of priority, to synthesize and coordinate the treatment process of message, flexiblyProperty is higher.
Second is that establishing new message queue.As shown in figure 4, after receiving a new information, to priority word in messageThe information of section is identified, if it find that being high-priority message, then the high-priority message is put into another special settingHigh-priority queue in, with priority processing.Only after the Message Processing in high-priority queue, then carry out low preferentialThe processing of message in grade queue.This mode is in the case where identifying the News Category of high priority, by priority processing Gao YouThe message of first grade ensures that high-priority message obtains priority processing in time.
E-book method for pushing provided by the embodiment of the present invention describes the e-book chapters and sections priority by increasingPrecedence field, and after being arranged according to the information in the precedence field position of the first message in message queueMessage is handled, the shelf life of e-book chapters and sections can be made to shorten, so that user be made to get newest electronics as early as possibleBooks chapters and sections information.
As shown in figure 5, e-book driving means provided in an embodiment of the present invention, comprising:
Adding unit 501 describes the e-book for increasing in the first message that analysis e-book chapters and sections obtainThe precedence field of chapters and sections priority;
Arrangement units 502, the precedence field for identification, and existed according to the information in precedence field to first messagePosition in message queue is arranged;
Processing unit 503, for handling the message queue after arrangement.
Adding unit 501 is specifically used for: first message is when describing the message of newly-increased e-book chapters and sections, by first messageThe information of middle precedence field is set as high priority.
Preferably, adding unit 501 is that when describing the message of newly-increased e-book chapters and sections, first is disappeared for first messageThe information of precedence field is set as the highest priority in the priority of many levels in breath.
Specifically, for each first message type, increase a precedence field in message body, use 1 indicates Gao YouFirst grade, use 0 indicate low priority.Certainly, can set the priority of many levels in practical applications, for example, with two positions comeIndicate four kinds of priority, i.e., 00,01,10,11 4 grade.
Before increasing above-mentioned precedence field, need to generate first message.E-book provided in an embodiment of the present inventionDriving means further include: generation unit, for generating the first message comprising e-book chapters and sections related data;Wherein, electronicsBooks chapters and sections related data, including e-book ID, books charging case data and books copyright information.
It, can be such as figure when being arranged according to the information in precedence field position of the first message in message queueShown in 3, whole queue messages are rearranged.During carrying out position arrangement as shown in Figure 3, specifically, arrangement is singleMember preferentially pushes high-priority message for rearranging to whole queue messages according to priority-level.
Alternatively, whole queue messages are divided into high-priority message queue and low priority message queue, and by Gao YouxianMessage prioritization in grade message queue is pushed.
By the way of rearranging whole queue messages, it on the one hand can not need to re-establish additional message teamColumn, save message memory space;On the other hand the time sequencing that message reaches message queue is risen in conjunction with priority ordersConsider, and not merely determines processing sequence according to the height of priority, so that the treatment process of message is synthesized and coordinated, flexibilityIt is higher.
It, can also be as when being arranged according to the information in precedence field position of the first message in message queueShown in Fig. 4, new message queue is established.
During carrying out position arrangement as shown in Figure 4, specifically, arrangement units are for pressing whole queue messagesIt is rearranged according to priority-level, and high-priority message is preferentially pushed.
By the way of establishing new message queue in the case where identifying the News Category of high priority, will preferentially it locateThe message for managing high priority, ensures that high-priority message obtains priority processing in time.
In the process of processing, processing unit is specifically used for message queue after it will arrange: by the message after arrangementQueue synchronization makes NSS that Notification of Changes system CNS be notified to send Notification of Changes message to portal to notice synchronization system NSS.
E-book driving means provided by the embodiment of the present invention describes the e-book chapters and sections priority by increasingPrecedence field, and after being arranged according to the information in the precedence field position of the first message in message queueMessage is handled, the shelf life of e-book chapters and sections can be made to shorten, so that user be made to get newest electronics as early as possibleBooks chapters and sections information.
In practical applications, adding unit 501, arrangement units 502, processing unit 503 and generation unit can be by being located atBased on e-book driving means central processing unit (CPU, Central Processing Unit), microprocessor (MPU,Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor) or scene can compileJourney gate array (FPGA, Field Programmable Gate Array) etc. is realized.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer programProduct.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present inventionFormula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program codeThe form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructionsThe combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programsInstruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produceA raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realThe device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram orThe function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that countingSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer orThe instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.