CN103973718A - Operation and maintenance message pushing method based on android mobile platform - Google Patents

Operation and maintenance message pushing method based on android mobile platform Download PDF

Info

Publication number
CN103973718A
CN103973718A CN201310028244.6A CN201310028244A CN103973718A CN 103973718 A CN103973718 A CN 103973718A CN 201310028244 A CN201310028244 A CN 201310028244A CN 103973718 A CN103973718 A CN 103973718A
Authority
CN
China
Prior art keywords
message
service end
push
client
user
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
CN201310028244.6A
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.)
Chengdu Qinzhi Digital Technology Co Ltd
Original Assignee
Chengdu Qinzhi Digital 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 Chengdu Qinzhi Digital Technology Co Ltd filed Critical Chengdu Qinzhi Digital Technology Co Ltd
Priority to CN201310028244.6A priority Critical patent/CN103973718A/en
Publication of CN103973718A publication Critical patent/CN103973718A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an operation and maintenance message pushing method based on an android mobile platform. In the operation and maintenance message pushing method, a server-side and a client-side are adopted. The server-side is divided into a basic service module and a message pushing module. The server-side is provided for pushing an instant message, storing an off-line message and pushing the message at the time of secondary connection. Conversion between the client-side and the server-side is kept in a socket long connection mode. The client-side establishes android service in a registration mode. The client-side provides various message prompt modes. According to the scheme of the operation and maintenance application message pushing method, an alarm message is obtained in time, besides, inconvenience brought to operation of a user can be reduced, and interactivity and working efficiency can be improved.

Description

A kind of O&M information push method based on android mobile platform
Technical field
The present invention relates to IT O&M field, relate in particular to a kind of information push method of the O&M system applies of android mobile platform.
Background technology
The effect of IT O&M system applies on android mobile platform in the work of IT O&M is at present important all the more, to increasing work efficiency, reduces job costs and all plays an important role.Such as mobile platform is having obvious advantage aspect obtaining information, can allow the message of service end active push monitoring alarm to client.But the mode of the IT O&M system applies PUSH message on current android mobile platform is that note pushes mode, this mode has following deficiency:
1), because the factors such as common carrier, technology, network can cause certain delay, what O&M engineer can not be the fastest gets alarm information;
2) interactivity is poor, and O&M engineer artificial message identifier of remembeing alarm in the time checking note, then starts IT O&M system applies, and login system, goes to search to specific functional modules, checks the message of alarm.
Summary of the invention
The object of the present invention is to provide the information push method of a kind of O&M based on android mobile platform application, not only can improve the promptness that alarm information obtains and can make O&M personnel check with use convenient.
The present invention adopts following scheme to realize foregoing invention object, and a kind of O&M information push method based on android mobile platform, includes two of service end part and client parts, and the job step of service end is as follows:
1) service end starts, and comprises and starts basic business module, and initiation message pushing module, starts poll thread;
2) service end has judged whether that message needs to push, and does not have, and interval certain hour continues poll; Have, prepare to carry out message push;
3) judge that whether user is online, if user is online, directly PUSH message is to client; If user is not online, labeled message is deferred information, and in database persistence.
Adapt with service end, the work of client comprises the following steps:
1) start O&M application, and log in;
2) after logging in successfully, start Service, Service sets up in the mode of registration, and after startup, moves always and be operated in Android system backstage, user manually finishes in system or system restart after this service just can finish;
3) start thread, grow to connect with service end by socket and preserve session;
4) receive deferred information;
5) monitoring information; Whether have that new information is pushed to be entered, do not have, continue to monitor; Have, prepare to point out;
6) listen to message, judge whether to need the prompting of system message hurdle; Do not have startup or current interface not in O&M application if O&M is applied, point out user in the notification system message hurdle mode of android, and corresponding business module is applied, jumped in startup in the time that user clicks message; If in application interface, upgrade interface data and point out user with prompting frame form.
In this programme, server end not only provides the support of the needed business function of O&M system, and provides with the SOCKET of client communication is long and is connected, so that timely PUSH message; This module adopts the Apache MINA framework of increasing income, and realizes message push based on the asynchronous mode of not blocking of JAVA NIO; In the time starting service end, initiation message pushing module in the lump, starts poll thread in this module, needs the message pushing in polling data storehouse; Be found if any message, be pushed to client or labeled message as deferred information taking message mode, after client logs in, again push.
In this programme, client not only provides and the corresponding functional module of server end, and provide the service of an android, this service realizes in the mode of registration, after starting, reside in Android system, even if user closes client application, service is still in Android system background work; The pipeline of socket is provided in this service, keeps session with the long mode connecting and server end; Log in and maintain after session success, send message indicate identification to service end message push module, so that monitoring information obtains deferred information; After this, start thread uninterrupted monitoring information, after message, provide corresponding system prompt and relevant behaviour's prompting listening to.
The message push that adopts the O&M application of this scheme, not only alarm information obtains in time, and can reduce user and operate inconvenience, raising interactivity and operating efficiency.Such as: when application is not while starting, though or application while starting not in application, provide the system message prompting of Android system, and can directly start and apply and jump to corresponding module clicking after message; In application time, upgrade the related data of application, and prompting message, reminding user.
Brief description of the drawings
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein
Fig. 1 is principle schematic of the present invention;
Fig. 2 is the schematic flow sheet of service end of the present invention;
Fig. 3 is the schematic flow sheet of client of the present invention.
Embodiment
Disclosed all features in this specification, or step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
As shown in Figure 1, server end and client have been the present invention includes.Server end not only provides the support of the needed business function of O&M system, and provides with the SOCKET of client communication is long and is connected, so that timely PUSH message; This module adopts the Apache MINA framework of increasing income, and realizes message push based on the asynchronous mode of not blocking of JAVA NIO.Client not only provides and the corresponding functional module of server end, and the service of an android is provided, and this service realizes in the mode of registration, after starting, reside in Android system, even if user closes client application, service is still in Android system background work; The pipeline of socket is provided in this service, keeps session with the long mode connecting and server end; Client operates in each Android system terminal, and terminal quantity may have hundreds of or thousands of.
The overall workflow of the method is:
(1) comprise service end and client;
(2) client maintains session with service end in the long mode being connected of socket;
(3) client is set up android service in the mode of registration;
(4) client give information prompting mode: application do not start or not application in, adopt android notification mode to provide system prompt, and in the time clicking notification message corresponding in system message column, can startup, redirect or jump to the module of the information of corresponding prompting; In application, more new data provide information;
(5) service end is divided into basic business module and message push module;
(6) service end provides timely message push, and the propelling movement of the preservation of deferred information when being again connected.
As shown in Figure 2, describe the included following steps of service end work in detail:
1. start basic business module;
2. initiation message pushing module;
3. start poll thread;
4. judged whether that message needs to push.No, interval certain hour continues poll.Have, prepare to carry out message push;
5. judge that whether user is online.If online, directly PUSH message is to client; If not online, labeled message is deferred information, and in database persistence.
As shown in Figure 3, describe the included following steps of client work in detail:
1. start application, and log in;
2., after logging in successfully, start Service.Service with registration mode set up, and after startup, move always and be operated in Android system backstage (user in system, manually finish or system restart after this service just can finish);
3. start thread, grow to connect with service end by socket and preserve session;
4. receive deferred information;
5. monitoring information;
6. listen to message, judge whether to need the prompting of system message hurdle.If apply no startup or current interface not in application, point out user in the notification system message hurdle mode of android, and corresponding business module is applied, is jumped in startup in the time that user clicks message.If in application interface, upgrade interface data and point out user with prompting frame form.
As seen from the above description, the method of work of the message push in the present invention and device thereof, not only can be flexibly, convenient, realize message push timely and effectively, various delays or the Cost Problems of avoiding third party to cause, and interactive mode brings hommization to experience more easily.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination disclosing in this manual, and the arbitrary new method disclosing or step or any new combination of process.

Claims (3)

1. the O&M information push method based on android mobile platform, includes service end part and client part, it is characterized in that, the service end part of the method comprises the following steps:
1) service end starts;
2) service end has judged whether that message needs to push, and does not have, and interval certain hour continues poll; Have, prepare to carry out message push;
3) service end provides timely message push, and the propelling movement of the preservation of deferred information when being again connected;
Work and the service end of client adapt, and comprise the following steps:
1) start O&M application, and log in;
2) after logging in successfully, start Service, Service sets up in the mode of registration, and after startup, moves always and be operated in Android system backstage, user manually finishes in system or system restart after this service just can finish;
3) start thread, grow to connect with service end by socket and preserve session;
4) receive deferred information;
5) monitoring information; Whether have that new information is pushed to be entered, do not have, continue to monitor; Have, prepare to point out;
6) listen to message, judge whether to need the prompting of system message hurdle; Do not have startup or current interface not in O&M application if O&M is applied, point out user in the notification system message hurdle mode of android, and corresponding business module is applied, jumped in startup in the time that user clicks message; If in application interface, upgrade interface data and point out user with prompting frame form.
2. a kind of O&M information push method based on android mobile platform according to claim 1, is characterized in that: service end is divided into basic business module and message push module; Described service end setting up procedure specifically comprises, comprises and starts basic business module, and initiation message pushing module, starts poll thread.
3. a kind of O&M information push method based on android mobile platform according to claim 1, is characterized in that: the concrete steps of service end PUSH message are: judge that whether user is online, if user is online, directly PUSH message is to client; If user is not online, labeled message is deferred information, and in database persistence.
CN201310028244.6A 2013-01-25 2013-01-25 Operation and maintenance message pushing method based on android mobile platform Pending CN103973718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310028244.6A CN103973718A (en) 2013-01-25 2013-01-25 Operation and maintenance message pushing method based on android mobile platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310028244.6A CN103973718A (en) 2013-01-25 2013-01-25 Operation and maintenance message pushing method based on android mobile platform

Publications (1)

Publication Number Publication Date
CN103973718A true CN103973718A (en) 2014-08-06

Family

ID=51242763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310028244.6A Pending CN103973718A (en) 2013-01-25 2013-01-25 Operation and maintenance message pushing method based on android mobile platform

Country Status (1)

Country Link
CN (1) CN103973718A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610888A (en) * 2015-09-08 2016-05-25 华南师范大学 Method of using socket to push message based on Android and system thereof
CN106686056A (en) * 2016-11-25 2017-05-17 济南中维世纪科技有限公司 Android client communication device and method allowing Android client communication device to connect and communicate with server
CN106936927A (en) * 2017-04-19 2017-07-07 武汉票据交易中心有限公司 A kind of socket communication means based on pc client
CN107070769A (en) * 2016-11-29 2017-08-18 努比亚技术有限公司 A kind of device and method for obtaining service end PUSH message
CN107741884A (en) * 2017-10-09 2018-02-27 武汉斗鱼网络科技有限公司 The method and apparatus that a kind of stratification state machine realizes message push
CN108075947A (en) * 2017-07-31 2018-05-25 北京微应软件科技有限公司 The connective maintaining method of storage device, PC ends, communication connection and system
CN113132487A (en) * 2021-04-21 2021-07-16 深圳市乐唯科技开发有限公司 Simplified distributed long-connection data transmission method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610888A (en) * 2015-09-08 2016-05-25 华南师范大学 Method of using socket to push message based on Android and system thereof
CN106686056A (en) * 2016-11-25 2017-05-17 济南中维世纪科技有限公司 Android client communication device and method allowing Android client communication device to connect and communicate with server
CN107070769A (en) * 2016-11-29 2017-08-18 努比亚技术有限公司 A kind of device and method for obtaining service end PUSH message
CN106936927A (en) * 2017-04-19 2017-07-07 武汉票据交易中心有限公司 A kind of socket communication means based on pc client
CN108075947A (en) * 2017-07-31 2018-05-25 北京微应软件科技有限公司 The connective maintaining method of storage device, PC ends, communication connection and system
CN108075947B (en) * 2017-07-31 2024-02-27 北京微应软件科技有限公司 Storage device, PC (personal computer) end and maintenance method and system of communication connection connectivity
CN107741884A (en) * 2017-10-09 2018-02-27 武汉斗鱼网络科技有限公司 The method and apparatus that a kind of stratification state machine realizes message push
CN113132487A (en) * 2021-04-21 2021-07-16 深圳市乐唯科技开发有限公司 Simplified distributed long-connection data transmission method and system

Similar Documents

Publication Publication Date Title
CN103973718A (en) Operation and maintenance message pushing method based on android mobile platform
CN103179210B (en) The Internet of Things high in the clouds cut-in method of a kind of sing on web Service and system
CN101155331B (en) Method and system for group sending short messages
CN106445705B (en) Platform cascading method and system based on RabbitMQ and socket
CN104135491B (en) For method, terminal, server and the system of instruction message distribution
CN102413152B (en) A kind of method and server sending information to terminal
CN105095022A (en) Data backup method and device
WO2015149471A1 (en) Information pushing method, system and device and computer storage medium
CN102333128A (en) Active transmission method for real-time Web data
CN105635201A (en) Application starting method and application starting system based on pushed information
CN102238108A (en) Off-line message transmission method
CN110691398A (en) Network interaction method, system, equipment and storage medium of intelligent equipment
CN102185701A (en) Method and system for realizing group information interaction
CN103516766A (en) Method and system of communication between client-side and application server
CN106982130A (en) A kind of device version synchronous method and device
CN104506535A (en) Data pushing method and data pushing system
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
WO2016197897A1 (en) Converged communication interaction method, device and system
CN104503774B (en) A kind of software debugging method, relevant device and system
CN103036955A (en) Monitoring system and monitoring method of multimedia player terminal
CN102819455A (en) Method for managing progresses at application layer and managing system
CN101860839A (en) Technology for carrying out dynamic statistics on online time of mobile phone user of emergency system
CN103888535A (en) Position information processing method and system based on wechat platform
CN103974201A (en) Multimedia data live system and method for mobile terminal
CN104182265B (en) A kind of application program automatic starting method and client, server-side

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140806