CN105847285A - Push service configuration method and device - Google Patents

Push service configuration method and device Download PDF

Info

Publication number
CN105847285A
CN105847285A CN201610323406.2A CN201610323406A CN105847285A CN 105847285 A CN105847285 A CN 105847285A CN 201610323406 A CN201610323406 A CN 201610323406A CN 105847285 A CN105847285 A CN 105847285A
Authority
CN
China
Prior art keywords
push service
application program
terminal
push
service
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
CN201610323406.2A
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610323406.2A priority Critical patent/CN105847285A/en
Publication of CN105847285A publication Critical patent/CN105847285A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/4061Push-to services, e.g. push-to-talk or push-to-video
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a push service configuration method and device and is applied to a network server side. The push service configuration method comprises the following steps: a push service stopping instruction for an application program is received; whether push service connection for the application program exists is determined; if the push service connection does not exist, push service of the application program is turned off; if the push service connection exists, a push service unavailable state instruction is sent to a terminal which allows push service connection for the application program, and push service connection with the terminal is switched off. An aim of the invention is to put forward the push service configuration method and device which can automatically turn off push service and reduce fault influence when push service faults occur.

Description

Push Service collocation method and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of Push Service collocation method and device.
Background technology
Push Service refers to that server orientation is by the service of information delivered in real time terminal unit.Based on Push Service, Pushed information is after server end configures, and triggering real time propelling movement is to terminal unit, and user then can connect in real time Receive PUSH message.
Based on Push Service, existing propelling movement scheme typically has 2 kinds of modes:
Mandatory propelling movement, PUSH message arrives in real time, and after user receives PUSH message, terminal unit can be given and carries Showing, user cannot actively close propelling movement switch, can only passively accept PUSH message;
User's selectivity pushes, and terminal unit provides setting options, and user can select to be turned on and off pushing Service.
Above-mentioned 2 kinds push mode, have a problem that, when Push Service generation emergency, and all collection The application program (app) becoming Push Service cannot close Push Service immediately, stops emergency to application Program produces impact, only could solve this problem until the version updating of application program.
Summary of the invention
In view of this, it is an object of the invention to propose a kind of Push Service collocation method and device, it is possible to It is automatically switched off Push Service when Push Service breaks down, reduces fault impact.
The Push Service collocation method provided based on the above-mentioned purpose present invention, is applied to webserver side, bag Include:
Receive the stopping Push Service for application program to instruct;
Judge whether to connect for the Push Service of described application program;
If there is not described Push Service to connect, close the Push Service of described application program;
If there is described Push Service to connect, to setting up what the Push Service for described application program connected Terminal sends the instruction of Push Service down state, and disconnection is connected with the Push Service of described terminal.
In some embodiments, described reception for application program stopping Push Service instruct step it Before also include:
Receive the Push Service registration request for application program that terminal sends;
Successful registration information is returned to described terminal;
And/or,
Also include after the step of the Push Service of the described application program of described closedown:
Receive the Push Service registration request for application program that terminal sends;
Not log-on message is returned to described terminal.
In some embodiments, described to described terminal return successful registration information step after also include:
Receive the Push Service connection request for application program that terminal sends;
According to described Push Service connection request, the Push Service setting up described application program with described terminal is long Connect.
In some embodiments, described to setting up the end that the Push Service for described application program connects End sends the instruction of Push Service down state, and disconnect the step that is connected with the Push Service of described terminal it After also include:
Receive the unlatching Push Service for application program to instruct;
Judge before closing the Push Service of described application program, if exist for described application program Push Service connects;
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
In some embodiments, described reception for application program stopping Push Service instruct step it Before also include:
Judge whether the Push Service of application program exception occurs;
If the Push Service of described application program occurs abnormal, automatically send the stopping for described application program Push Service instructs.
Another aspect of the present invention additionally provides a kind of Push Service configuration device, including:
Command reception module, instructs for receiving the stopping Push Service for application program;
Connection status judge module, for judging whether the Push Service connection for described application program;
Module is closed in service, is used for:
If there is not described Push Service to connect, close the Push Service of described application program;
If there is described Push Service to connect, to setting up what the Push Service for described application program connected Terminal sends the instruction of Push Service down state, and disconnection is connected with the Push Service of described terminal.
In some embodiments, described device also includes terminal request receiver module, is used for receiving terminal The Push Service registration request for application program sent;
Information sending module, is used for:
If the Push Service of described application program is not turned off, return successful registration information to described terminal;
And/or,
If the Push Service of described application program is turned off, return not log-on message to described terminal.
In some embodiments, described terminal request receiver module, be additionally operable to receive terminal send for The Push Service connection request of application program;
Connection establishment module, if the Push Service of described application program is not turned off, for pushing clothes according to described Business connection request, the Push Service length setting up described application program with described terminal is connected.
In some embodiments, described command reception module, it is additionally operable to receive the unlatching for application program Push Service instructs;
Described connection status judge module, is additionally operable to judge before closing the Push Service of described application program, The Push Service whether existing for described application program connects;
Service starts module, is used for:
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
In some embodiments, described device also includes:
Push Service condition judgment module, for judging whether the Push Service of application program exception occurs;
Instruction sending module, if the Push Service of described application program occurs abnormal, for automatically send for The stopping Push Service instruction of described application program.
From the above it can be seen that the Push Service collocation method of present invention offer and device, occurring tightly When urgent need to stop certain or whole Push Service, receive the stopping Push Service for application program and instruct also Close the Push Service of described application program, simultaneously for having built up the terminal that Push Service connects, to It sends the instruction of Push Service down state, and terminal receives the instruction of described Push Service down state, Can actively disconnect and discharge resource, and be no longer attempt to re-establish connection;Thus complete for application journey The comprehensive Push Service closedown of sequence processes.
Accompanying drawing explanation
The schematic flow sheet of one embodiment of the Push Service collocation method that Fig. 1 provides for the present invention;
The schematic flow sheet of another embodiment of the Push Service collocation method that Fig. 2 provides for the present invention;
The modular structure schematic diagram of the Push Service configuration device embodiment that Fig. 3 provides for the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, And referring to the drawings, the present invention is described in more detail.
The first aspect of the invention, it is proposed that a kind of Push Service collocation method, it is possible to go out in Push Service It is automatically switched off Push Service during existing fault, reduces fault impact.As it is shown in figure 1, pushing away for present invention offer Take the schematic flow sheet of an embodiment of business collocation method.
Described Push Service collocation method, is applied to webserver side, comprises the following steps:
Step 101: receive the stopping Push Service for application program and instruct;Optionally, server has phase The configuration page that the Push Service for each application program answered switchs, can manually close, additionally, Also can be automatically switched off Push Service according to the judgement to Push Service abnormality;
Step 102: judge whether to connect for the Push Service of described application program;
Under normal circumstances, terminal uses the Push Service of application program to need possess two preconditions: 1) Each application program is distributed to by server (being chosen as the main push server being responsible for pushing associative operation) One independent app key, if it is desired that by the Push Service of described application program, terminal needs first to clothes Business device (being chosen as mainly being responsible for data storage and the device management server of interface management) sends Push Service Registration request, described Push Service registration request carries described app key, terminal unit sole criterion, The fields such as application version information, if server confirms to register, then by checking app key Returning successful registration information, the described application program in terminal then can normally use the propelling movement of this application program Service;2) 1) on the basis of, disappear if the described application program in terminal needs to receive propelling movement in time Breath, then need to set up one with server (being chosen as the main engine server be responsible for and being attached with terminal) Individual socket length connects, and the most described Push Service connects, by checking app key and device id, it is judged that permit When being permitted to connect, then complete socket length and connect, as long as socket length connects keeps normal condition, then in terminal Described application program just can receive message in time;
Step 103: connecting if there is not described Push Service, closing the Push Service of described application program;
Concrete, owing to needs stop PUSH message timely and effectively from server, need from the description above 1) and 2) stop simultaneously;Therefore, new terminal is had to need registration to make in the Push Service down periods When using Push Service, if Push Service is closed mode, then server should refuse corresponding application programs Registration request, returns Push Service unusable state, and application program can preserve this shape in terminal local State, if Push Service is unavailable, then includes sending for any push operation after described application program Message etc. all will directly return, and no longer carry out, and so can ensure that new user opens described application program And when triggering registration Push Service to be used, can effectively keep halted state, thus alleviate server stress;
For completing the terminal that described Push Service connects, it is impossible to carry out the process of simple closedown Push Service, Because only disconnecting, terminal can continuously attempt to reconnect, and the most i.e. consumes resource, does not has the most completely Meaningful, therefore, step 104: connect, to setting up for described application if there is described Push Service The terminal that the Push Service of program connects sends the instruction of Push Service down state, and disconnects and described terminal Push Service connect;Terminal when receiving the instruction of described Push Service down state, then judges current Push Service is unavailable, then can the most actively disconnect, and discharges all resources;Accordingly even when have follow-up The PUSH message that Push Service is abnormal, terminal also will not receive.
From above-described embodiment it can be seen that the Push Service collocation method of present invention offer, urgent need is occurring When stopping certain or whole Push Service, receive the stopping Push Service for application program and instruct and close The Push Service of described application program, simultaneously for having built up the terminal that Push Service connects, Xiang Qifa Sending Push Service down state to instruct, terminal receives the instruction of described Push Service down state, can lead Move and disconnect and discharge resource, and be no longer attempt to re-establish connection;Thus complete for application program Comprehensively Push Service closedown processes.
Described Push Service collocation method, when Push Service goes wrong, it is possible to stop timely and effectively Only, the impact and the emergency that cause for process Push Service process highly effective, it is not necessary to distribution application The more redaction of program, can correct impact in time from server side, also may be used when Push Service is recovered normal It is again started up Push Service;Further, described Push Service collocation method, the energy when selecting to stop Push Service Ensure completeness, not only can prevent the user of new registration Push Service from can stop any relevant with Push Service Operation;And for having been switched on the user of Push Service, can refer to receiving Push Service down state Actively disconnect when making and being connected with the long of server, and thoroughly discharge resource.Again, described Push Service configuration Method, all can promptly use when any fault occurs in server, and such as Push Service causes have been sent out on line The application program of version is run quickly when bursting or application exception occur, can stop this application program from server side immediately Push Service, thus stop impact.Additionally, also do not have for Push Service initial stage, particularly stability The when of obtaining inspection, can quietly be stopped impact by described Push Service collocation method if there is problem, Impact is stopped without closing propelling movement switch by application program update version or prompting user;For user, It is the behavior of unaware, thus optimizes Consumer's Experience.
Further, in some optional embodiments, described reception pushes clothes for the stopping of application program Also include before the step 101 of business instruction:
Receive the Push Service registration request for application program that terminal sends;
Now, if the Push Service of application program is not off, then return successful registration information to described terminal, Set up Push Service with terminal further to be connected, Push Service can be carried out;
Corresponding, also include after the step 103 of the Push Service of the described application program of described closedown:
Receive the Push Service registration request for application program that terminal sends;
Now, if the Push Service of application program is turned off, it is impossible to reoffer Push Service, therefore to described Terminal returns not log-on message, and prompting Push Service wouldn't be used;So, for described application program it After any push operation include that sending message etc. all will directly return, and is no longer carried out, thus ensure to have new When user opens described application program and triggers registration Push Service to be used, can effectively keep halted state, Alleviate server stress.
Further, in some optional embodiments, described to described terminal return successful registration information Step after also include:
Receive the Push Service connection request for application program that terminal sends;
According to described Push Service connection request, the Push Service setting up described application program with described terminal is long Connect, thus in the case of Push Service can be used, it is possible to set up Push Service further and connect and use and push away Take business.
It is also preferred that the left in some optional embodiments, described to the propelling movement set up for described application program The terminal that service connects sends the instruction of Push Service down state, and disconnects the Push Service with described terminal Also include after the step 104 connected:
Receive the unlatching Push Service for application program to instruct;
Judge before closing the Push Service of described application program, if exist for described application program Push Service connects;
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
By above-described embodiment, when Push Service is recovered, by judging pushing away at the described application program of closedown Before taking business, if the Push Service existing for described application program connects, if existing, the most automatically enters Row connects, so that terminal can the most normally use Push Service, it is not necessary to again carry out connection actively Operation.
Optionally, in some optional embodiments, described reception is for the stopping Push Service of application program Also include before the step 101 of instruction:
Judge whether the Push Service of application program exception occurs;
If the Push Service of described application program occurs abnormal, automatically send the stopping for described application program Push Service instructs.The sending module of described stopping Push Service instruction and receiver module are for being in server together The disparate modules of side, sending module, for when judging that Push Service occurs abnormal, is mentioned described stopping and being pushed Service order, described receiver module is then for when receiving stopping Push Service instruction, drawing and push clothes The closedown step of business.
By above-described embodiment, when can occur abnormal by the Push Service judging application program, automatically open Stopping operation of dynamic Push Service, and without carrying out Non-follow control.
Present invention also offers another embodiment of described Push Service collocation method.As in figure 2 it is shown, be The schematic flow sheet of another embodiment of the Push Service collocation method that the present invention provides.
Described Push Service collocation method, comprises the following steps:
Step 201: receive the Push Service registration request for application program that terminal sends;
Step 202: return successful registration information to described terminal;
Step 203: receive the Push Service connection request for application program that terminal sends;
Step 204: according to described Push Service connection request, set up described application program with described terminal Push Service length connects;
Step 205: judge whether the Push Service of application program exception occurs;
Step 206: if the Push Service of described application program occurs abnormal, automatically send for described application The stopping Push Service instruction of program;
Step 207: receive the stopping Push Service for application program and instruct;
Step 208: judge whether to connect for the Push Service of described application program;
Step 209: connecting if there is not described Push Service, closing the Push Service of described application program;
Step 210: connect, to the propelling movement set up for described application program if there is described Push Service The terminal that service connects sends the instruction of Push Service down state, and disconnects the Push Service with described terminal Connect;
Step 211: receive the Push Service registration request for application program that terminal sends;
Step 212: return not log-on message to described terminal;
Step 213: receive the unlatching Push Service for application program and instruct;
Step 214: judge before closing the Push Service of described application program, if exist for described The Push Service of application program connects;
Step 215: connecting if there is not described Push Service, starting the Push Service of described application program;
Step 216: connect if there is described Push Service, in the Push Service closing described application program Set up the terminal that the Push Service for described application program connects before, send Push Service upstate Instruct, and foundation is connected with the Push Service of described terminal.
From above-described embodiment it can be seen that the Push Service collocation method of present invention offer, urgent need is occurring When stopping certain or whole Push Service, receive the stopping Push Service for application program and instruct and close The Push Service of described application program, simultaneously for having built up the terminal that Push Service connects, Xiang Qifa Sending Push Service down state to instruct, terminal receives the instruction of described Push Service down state, can lead Move and disconnect and discharge resource, and be no longer attempt to re-establish connection;Thus complete for application program Comprehensively Push Service closedown processes.
Described Push Service collocation method, when Push Service goes wrong, it is possible to stop timely and effectively Only, the impact and the emergency that cause for process Push Service process highly effective, it is not necessary to distribution application The more redaction of program, can correct impact in time from server side, also may be used when Push Service is recovered normal It is again started up Push Service;Further, described Push Service collocation method, the energy when selecting to stop Push Service Ensure completeness, not only can prevent the user of new registration Push Service from can stop any relevant with Push Service Operation;And for having been switched on the user of Push Service, can refer to receiving Push Service down state Actively disconnect when making and being connected with the long of server, and thoroughly discharge resource.Again, described Push Service configuration Method, all can promptly use when any fault occurs in server, and such as Push Service causes have been sent out on line The application program of version is run quickly when bursting or application exception occur, can stop this application program from server side immediately Push Service, thus stop impact.Additionally, also do not have for Push Service initial stage, particularly stability The when of obtaining inspection, can quietly be stopped impact by described Push Service collocation method if there is problem, Impact is stopped without closing propelling movement switch by application program update version or prompting user;For user, It is the behavior of unaware, thus optimizes Consumer's Experience.
The second aspect of the invention, it is proposed that a kind of Push Service configuration device, it is possible to go out in Push Service It is automatically switched off Push Service during existing fault, reduces fault impact.As it is shown on figure 3, pushing away for present invention offer Send the modular structure schematic diagram of service configuration device embodiment.
Described Push Service configuration device, including:
Command reception module 301, instructs for receiving the stopping Push Service for application program;Optionally, Server has the configuration page switched accordingly for the Push Service of each application program, can manually carry out Close, additionally, also Push Service can be automatically switched off according to the judgement to Push Service abnormality;
Connection status judge module 302, for judging whether the Push Service for described application program Connect;
Under normal circumstances, terminal uses the Push Service of application program to need possess two preconditions: 1) Each application program is distributed to by server (being chosen as the main push server being responsible for pushing associative operation) One independent app key, if it is desired that by the Push Service of described application program, terminal needs first to clothes Business device (being chosen as mainly being responsible for data storage and the device management server of interface management) sends Push Service Registration request, described Push Service registration request carries described app key, terminal unit sole criterion, The fields such as application version information, if server confirms to register, then by checking app key Returning successful registration information, the described application program in terminal then can normally use the propelling movement of this application program Service;2) 1) on the basis of, disappear if the described application program in terminal needs to receive propelling movement in time Breath, then need to set up one with server (being chosen as the main engine server be responsible for and being attached with terminal) Individual socket length connects, and the most described Push Service connects, by checking app key and device id, it is judged that permit When being permitted to connect, then complete socket length and connect, as long as socket length connects keeps normal condition, then in terminal Described application program just can receive message in time;
Module 303 is closed in service, is used for:
If there is not described Push Service to connect, close the Push Service of described application program;
Concrete, owing to needs stop PUSH message timely and effectively from server, need from the description above 1) and 2) stop simultaneously;Therefore, new terminal is had to need registration to make in the Push Service down periods When using Push Service, if Push Service is closed mode, then server should refuse corresponding application programs Registration request, returns Push Service unusable state, and application program can preserve this shape in terminal local State, if Push Service is unavailable, then includes sending for any push operation after described application program Message etc. all will directly return, and no longer carry out, and so can ensure that new user opens described application program And when triggering registration Push Service to be used, can effectively keep halted state, thus alleviate server stress;
For completing the terminal that described Push Service connects, it is impossible to carry out the process of simple closedown Push Service, Because only disconnecting, terminal can continuously attempt to reconnect, and the most i.e. consumes resource, does not has the most completely Meaningful, therefore, connect, to the propelling movement set up for described application program if there is described Push Service The terminal that service connects sends the instruction of Push Service down state, and disconnects the Push Service with described terminal Connect;Terminal when receiving the instruction of described Push Service down state, then judges current Push Service not Available, then can the most actively disconnect, discharge all resources;Accordingly even when there is follow-up Push Service different Normal PUSH message, terminal also will not receive.
From above-described embodiment it can be seen that the Push Service that the present invention provides configures device, urgent need is occurring When stopping certain or whole Push Service, receive the stopping Push Service for application program and instruct and close The Push Service of described application program, simultaneously for having built up the terminal that Push Service connects, Xiang Qifa Sending Push Service down state to instruct, terminal receives the instruction of described Push Service down state, can lead Move and disconnect and discharge resource, and be no longer attempt to re-establish connection;Thus complete for application program Comprehensively Push Service closedown processes.
Described Push Service configuration device, when Push Service goes wrong, it is possible to stop timely and effectively Only, the impact and the emergency that cause for process Push Service process highly effective, it is not necessary to distribution application The more redaction of program, can correct impact in time from server side, also may be used when Push Service is recovered normal It is again started up Push Service;Further, described Push Service configuration device, the energy when selecting to stop Push Service Ensure completeness, not only can prevent the user of new registration Push Service from can stop any relevant with Push Service Operation;And for having been switched on the user of Push Service, can refer to receiving Push Service down state Actively disconnect when making and being connected with the long of server, and thoroughly discharge resource.Again, described Push Service configuration Device, all can promptly use when any fault occurs in server, and such as Push Service causes have been sent out on line The application program of version is run quickly when bursting or application exception occur, can stop this application program from server side immediately Push Service, thus stop impact.Additionally, also do not have for Push Service initial stage, particularly stability The when of obtaining inspection, can quietly stop impact by described Push Service configuration device if there is problem, Impact is stopped without closing propelling movement switch by application program update version or prompting user;For user, It is the behavior of unaware, thus optimizes Consumer's Experience.
Further, in some optional embodiments, described Push Service configuration device also includes that terminal please Seek receiver module 304, for receiving the Push Service registration request for application program that terminal sends;
Information sending module 305, is used for:
If the Push Service of described application program is not turned off, returns successful registration information to described terminal, enter one Step is set up Push Service with terminal and is connected, and can carry out Push Service;
Corresponding, if the Push Service of described application program is turned off, it is impossible to reoffer Push Service, Therefore returning not log-on message to described terminal, prompting Push Service wouldn't be used;So, for described Any push operation after application program includes that sending message etc. all will directly return, and is no longer carried out, thus When ensureing have new user open described application program and trigger registration Push Service to be used, can effectively protect Hold halted state, alleviate server stress.
Further, in some optional embodiments, described terminal request receiver module 304, also use In receiving the Push Service connection request for application program that terminal sends;
Described Push Service configuration device also includes connection establishment module 306, if the propelling movement of described application program Service is not turned off, and for according to described Push Service connection request, sets up described application program with described terminal Push Service length connect, thus in the case of Push Service can be used, it is possible to set up Push Service further Connect and use Push Service.
It is also preferred that the left in some optional embodiments, described command reception module 301, it is additionally operable to receive pin The unlatching Push Service of application program is instructed;
Described connection status judge module 302, is additionally operable to judge the Push Service closing described application program Before, if the Push Service existing for described application program connects;
Described Push Service configuration device also includes that service starts module 307, is used for:
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
By above-described embodiment, when Push Service is recovered, by judging pushing away at the described application program of closedown Before taking business, if the Push Service existing for described application program connects, if existing, the most automatically enters Row connects, so that terminal can the most normally use Push Service, it is not necessary to again carry out connection actively Operation.
Optionally, in some optional embodiments, described Push Service configuration device also includes:
Push Service condition judgment module 308, for judging whether the Push Service of application program exception occurs;
Instruction sending module 309, if the Push Service of described application program occurs abnormal, for automatically sending Stopping Push Service for described application program instructs.
Sending module and the receiver module of the instruction of described stopping Push Service are the difference being in server side together Module, sending module is used for, when judging that Push Service occurs abnormal, mentioning the instruction of described stopping Push Service, Described receiver module then for when receiving stopping Push Service instruction, draws the closedown step of Push Service Suddenly.
By above-described embodiment, when can occur abnormal by the Push Service judging application program, automatically open Stopping operation of dynamic Push Service, and without carrying out Non-follow control.
Those of ordinary skill in the field it is understood that the discussion of any of the above embodiment is exemplary only, It is not intended to imply that the scope of the present disclosure (including claim) is limited to these examples;Think of in the present invention Under road, can also be combined between the technical characteristic in above example or different embodiment, step can With with random order realize, and exist the present invention as above different aspect many other change, for Simple and clear they do not provide in the details.
It addition, for simplifying explanation and discussing, and in order to obscure the invention, provided Accompanying drawing can illustrate or can not illustrate and integrated circuit (IC) chip and the known power supply of other parts / grounding connection.Furthermore, it is possible to illustrate device in block diagram form, in order to avoid obscuring the invention, And this have also contemplated that following facts, i.e. the details about the embodiment of these block diagram arrangements is highly to depend on In will implement the present invention platform (that is, these details should be completely in the reason of those skilled in the art In the range of solution).Elaborating that detail (such as, circuit) is to describe the exemplary embodiment of the present invention In the case of, it will be apparent to those skilled in the art that can there is no these details In the case of or these details change in the case of implement the present invention.Therefore, these descriptions should be recognized For being illustrative and not restrictive.
Although invention has been described to have been incorporated with the specific embodiment of the present invention, but according to above Description, these embodiments a lot of replace, amendment and modification will be for those of ordinary skills Obviously.Such as, other memory architecture (such as, dynamic ram (DRAM)) can use The embodiment discussed.
Embodiments of the invention be intended to fall within the broad range of claims all so Replacement, amendment and modification.Therefore, all within the spirit and principles in the present invention, any omission of being done, Amendment, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. a Push Service collocation method, it is characterised in that be applied to webserver side, including:
Receive the stopping Push Service for application program to instruct;
Judge whether to connect for the Push Service of described application program;
If there is not described Push Service to connect, close the Push Service of described application program;
If there is described Push Service to connect, to setting up what the Push Service for described application program connected Terminal sends the instruction of Push Service down state, and disconnection is connected with the Push Service of described terminal.
Method the most according to claim 1, it is characterised in that described reception is for application program Also include before stopping the step of Push Service instruction:
Receive the Push Service registration request for application program that terminal sends;
Successful registration information is returned to described terminal;
And/or,
Also include after the step of the Push Service of the described application program of described closedown:
Receive the Push Service registration request for application program that terminal sends;
Not log-on message is returned to described terminal.
Method the most according to claim 2, it is characterised in that described return successfully to described terminal Also include after the step of log-on message:
Receive the Push Service connection request for application program that terminal sends;
According to described Push Service connection request, the Push Service setting up described application program with described terminal is long Connect.
Method the most according to claim 1, it is characterised in that described to set up for described should The terminal connected by the Push Service of program sends the instruction of Push Service down state, and disconnects and described end Also include after the step that the Push Service of end connects:
Receive the unlatching Push Service for application program to instruct;
Judge before closing the Push Service of described application program, if exist for described application program Push Service connects;
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
Method the most according to claim 1, it is characterised in that described reception is for application program Also include before stopping the step of Push Service instruction:
Judge whether the Push Service of application program exception occurs;
If the Push Service of described application program occurs abnormal, automatically send the stopping for described application program Push Service instructs.
6. a Push Service configuration device, it is characterised in that including:
Command reception module, instructs for receiving the stopping Push Service for application program;
Connection status judge module, for judging whether the Push Service connection for described application program;
Module is closed in service, is used for:
If there is not described Push Service to connect, close the Push Service of described application program;
If there is described Push Service to connect, to setting up what the Push Service for described application program connected Terminal sends the instruction of Push Service down state, and disconnection is connected with the Push Service of described terminal.
Device the most according to claim 6, it is characterised in that also include terminal request receiver module, For receiving the Push Service registration request for application program that terminal sends;
Information sending module, is used for:
If the Push Service of described application program is not turned off, return successful registration information to described terminal;
And/or,
If the Push Service of described application program is turned off, return not log-on message to described terminal.
Device the most according to claim 7, it is characterised in that described terminal request receiver module, It is additionally operable to receive the Push Service connection request for application program that terminal sends;
Connection establishment module, if the Push Service of described application program is not turned off, for pushing clothes according to described Business connection request, the Push Service length setting up described application program with described terminal is connected.
Device the most according to claim 6, it is characterised in that described command reception module, also uses Instruct in receiving the unlatching Push Service for application program;
Described connection status judge module, is additionally operable to judge before closing the Push Service of described application program, The Push Service whether existing for described application program connects;
Service starts module, is used for:
If there is not described Push Service to connect, start the Push Service of described application program;
If there is described Push Service to connect, set up to before closing the Push Service of described application program The terminal connected for the Push Service of described application program, sends the instruction of Push Service upstate, and builds Stand and be connected with the Push Service of described terminal.
Device the most according to claim 6, it is characterised in that also include:
Push Service condition judgment module, for judging whether the Push Service of application program exception occurs;
Instruction sending module, if the Push Service of described application program occurs abnormal, for automatically send for The stopping Push Service instruction of described application program.
CN201610323406.2A 2016-05-16 2016-05-16 Push service configuration method and device Pending CN105847285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610323406.2A CN105847285A (en) 2016-05-16 2016-05-16 Push service configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610323406.2A CN105847285A (en) 2016-05-16 2016-05-16 Push service configuration method and device

Publications (1)

Publication Number Publication Date
CN105847285A true CN105847285A (en) 2016-08-10

Family

ID=56593556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610323406.2A Pending CN105847285A (en) 2016-05-16 2016-05-16 Push service configuration method and device

Country Status (1)

Country Link
CN (1) CN105847285A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512917A (en) * 2018-03-23 2018-09-07 杭州迪普科技股份有限公司 A kind of data push method and system based on Websocket
CN108520177A (en) * 2018-04-11 2018-09-11 厦门美图移动科技有限公司 Application software management method, device, mobile terminal and readable storage medium storing program for executing
CN110661925A (en) * 2019-08-30 2020-01-07 咪咕动漫有限公司 Shielding method, server and computer readable storage medium
CN115834668A (en) * 2022-11-08 2023-03-21 中国工商银行股份有限公司 Cluster node control method, device, equipment, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426181A (en) * 2008-11-12 2009-05-06 中国移动通信集团广东有限公司 Intelligent multimedia information mobile phone viewing system having instant interaction and implementation method
CN103442452A (en) * 2013-08-30 2013-12-11 东莞宇龙通信科技有限公司 Terminal, server and connection management method
CN104349288A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Message transmission method and device
CN104601668A (en) * 2014-12-24 2015-05-06 北京京东尚科信息技术有限公司 State management based data push method, device and system
CN104703146A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Information push method, information push client and information push system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426181A (en) * 2008-11-12 2009-05-06 中国移动通信集团广东有限公司 Intelligent multimedia information mobile phone viewing system having instant interaction and implementation method
CN104349288A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Message transmission method and device
CN103442452A (en) * 2013-08-30 2013-12-11 东莞宇龙通信科技有限公司 Terminal, server and connection management method
CN104703146A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Information push method, information push client and information push system
CN104601668A (en) * 2014-12-24 2015-05-06 北京京东尚科信息技术有限公司 State management based data push method, device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512917A (en) * 2018-03-23 2018-09-07 杭州迪普科技股份有限公司 A kind of data push method and system based on Websocket
CN108512917B (en) * 2018-03-23 2021-02-26 杭州迪普科技股份有限公司 Data pushing method and system based on Websocket
CN108520177A (en) * 2018-04-11 2018-09-11 厦门美图移动科技有限公司 Application software management method, device, mobile terminal and readable storage medium storing program for executing
CN108520177B (en) * 2018-04-11 2020-10-20 厦门美图移动科技有限公司 Application software management method and device, mobile terminal and readable storage medium
CN110661925A (en) * 2019-08-30 2020-01-07 咪咕动漫有限公司 Shielding method, server and computer readable storage medium
CN115834668A (en) * 2022-11-08 2023-03-21 中国工商银行股份有限公司 Cluster node control method, device, equipment, storage medium and program product
CN115834668B (en) * 2022-11-08 2024-05-07 中国工商银行股份有限公司 Cluster node control method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN105847285A (en) Push service configuration method and device
CN102185718B (en) System upgrading method and device
US20120102482A1 (en) Method for Communication System Service Upgrade and Upgrade Container Device Thereof
US9985471B2 (en) Mobile terminal and control method for battery thereof
CN101631324A (en) Mobile terminal fault diagnosis and repair method and mobile terminal thereof
CN101888304A (en) Updating method, device and system for routing equipment
CN105790980A (en) Fault recovery method and apparatus
JP4732403B2 (en) Storage battery system control method and control circuit
CN109040295A (en) Determination method and device, terminal and the storage medium of abnormal broken line
CN102609327A (en) Method and device for improving reliability of multi-core processor
CN103281720B (en) The hot standby changing method of wireless controller and device, wireless controller, connecting system
CN105049936B (en) A kind of method and device of switching on and shutting down
WO2020088351A1 (en) Method for sending device information, computer device and distributed computer device system
CN101114935A (en) System upgrading method, upgrading system and monitoring entity
CN105843216A (en) Method and system for off-line detection of new-energy vehicle
CN107276820A (en) A kind of router upgrade method and system
CN102487391B (en) Method and system for upgrading remote control edition
CN101237696B (en) Base station access unit switching method and base station
CN105302607A (en) Remote upgrade system
CN106357646B (en) Agent control system for storage management software
CN102215272B (en) Method and system for emergency switching
CN107743316A (en) A kind of reminding method, mobile terminal and storage device for recovering network connection
CN109947630B (en) Fault notification method, device and storage medium
CN103491602A (en) Method and terminal equipment for session management process optimizing
CN100525488C (en) Method and system for recovering network connection quickly after cluster server switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160810