CN109981230A - A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal - Google Patents

A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal Download PDF

Info

Publication number
CN109981230A
CN109981230A CN201910229454.9A CN201910229454A CN109981230A CN 109981230 A CN109981230 A CN 109981230A CN 201910229454 A CN201910229454 A CN 201910229454A CN 109981230 A CN109981230 A CN 109981230A
Authority
CN
China
Prior art keywords
module
business datum
failure
aided terminal
upload
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
CN201910229454.9A
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.)
Guangdong Jin Fu Polytron Technologies Inc
Original Assignee
Guangdong Jin Fu Polytron Technologies Inc
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 Guangdong Jin Fu Polytron Technologies Inc filed Critical Guangdong Jin Fu Polytron Technologies Inc
Priority to CN201910229454.9A priority Critical patent/CN109981230A/en
Publication of CN109981230A publication Critical patent/CN109981230A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1874Buffer management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1887Scheduling and prioritising arrangements

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to government affairs self-aided terminal technical fields more particularly to a kind of business datum of government affairs self-aided terminal to upload ensuring equipment, comprising: catch of exception module, data back module and timing module;Whether the catch of exception module uploads success to judge that self-aided terminal is uploaded to the business datum of server end, and is responsible for the business datum that acquisition uploads failure;The collected business datum of catch of exception module can be back to server end by the data back module;The business datum for uploading failure is back to server end to data back module described in the periodic activation according to setting by the timing module.The business datum of government affairs self-aided terminal provided by the invention uploads ensuring equipment, and business datum backhaul service device end caused by avoiding because of network fluctuation fails, and leads to the generation of event of data loss.

Description

A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal
Technical field
The invention belongs to government affairs self-aided terminal technical fields more particularly to a kind of business datum of government affairs self-aided terminal to upload Ensuring equipment and application method.
Background technique
Conditional electronic government affairs gently service and user demand, and information island effect is prominent, on-line off-line Integrated service quality It is not high, it is unable to satisfy government affairs demand for services.As a kind of novel electron government affairs development model, " internet+government affairs " should be with citizen Demand is guiding, optimizes online service mode;It is disclosed as core with data sharing and power, driving is made government affairs public;With government affairs APP It is hinge with third-party platform, government affairs service at one's side is provided;Based on government affairs cloud, government affairs information on services net is established.24 is small When self-service government affairs terminal come into being under this historical background, citizen just can conveniently handle the various government affairs people's livelihood near community Item, with rising steadily for self-aided terminal portfolio, government also increasingly payes attention to the business handling data of terminal, data transmission Integrality, correctness is just particularly important.When there is network or third party's environmental abnormality, how to handle transmission in, with And data to be transmitted seem particularly critical, while should be noted the repeatability for avoiding data.
Shortcoming in the prior art: business datum saves process and belongs to disposable step, and former design pattern is ignored certainly Terminal is helped to be connected to the network problem of background server, default business datum passback is successful on the whole, through transporting on line after a period of time Battalion's discovery has a possibility that network fluctuation or exception, is possible to failure to cause business datum to pass back to background server process, Former design pattern avoids reducing user experience as far as possible, and data back is done directly remaining operation flow when failing and ignores pair The business datum of passback failure is operated, and causes certain to need business datum to complete the subsequent industry for checking data with third party Business can not be carried out by former design pattern, need manually to thumb, analysing terminal log with give for change passback fail business datum, for a long time Since waste certain human resources.
Summary of the invention
(1) technical problems to be solved
For existing technical problem, the business datum that the present invention provides a kind of government affairs self-aided terminal, which uploads, ensures dress It sets and application method, solves in the prior art because business datum backhaul service device end caused by network fluctuation fails, cause to count The technical issues of according to losing.
(2) technical solution
In order to achieve the above object, the main technical schemes that the present invention uses include:
A kind of business datum upload ensuring equipment of government affairs self-aided terminal, comprising: catch of exception module, data back module And timing module;
Whether the catch of exception module uploads success to judge that self-aided terminal is uploaded to the business datum of server end, And it is responsible for the business datum that acquisition uploads failure;
The collected business datum of catch of exception module can be back to server end by the data back module;
The timing module will upload the business number of failure to data back module described in the periodic activation according to setting According to being back to server end.
Preferably, further includes: serialization module and log module;
The serialization module and the log module are embedded in the catch of exception module, and can be caught with the exception Catch module synchronization work.
Preferably, the serialization module turns to the collected business datum sequence for uploading failure using fastjson Json format, the data basis as log module record log.
Preferably, the timing module includes one or more Quartz timer;
One or more of Quartz timers can be for one or more business for uploading failure or passback failure The passback of data, and dispatch the data back module.
Preferably, the log module includes Log4j component;
The Log4j component carries out encrypting storing using daily record data of the encryption mode to record;
The daily record data includes at least: the upload of serializing or business datum event, upload or the passback of passback failure The time of failure and the label of place government affairs self-aided terminal.
It preferably, further include memory module;
The memory module is to store the daily record data of the log module record, the industry of upload and/or passback failure Business data.
The business datum that this technology method also provides a kind of government affairs self-aided terminal uploads the application method of ensuring equipment,
When government affairs self-aided terminal uploads business datum to server end and fails, catch of exception module is to the industry for uploading failure Business data are acquired, and the collected business datum for uploading failure is sent to memory module and is stored.
Preferably, the method also includes:
Timing module according to setting periodic activation data back module;
Data back module obtains the business datum for uploading or returning failure from memory module, and will upload or passback mistake The business datum lost is back to server end.
Preferably, the method also includes:
Serialization module will upload or the business datum of passback failure carries out serializing pretreatment;And it will be pre- by serializing The business datum of upload that treated or passback failure is sent to log module;
The business datum that failure is uploaded or returned by pretreatment received is recorded as uploading or be returned by log module The business datum event of failure.
Preferably, the method also includes:
The daily record data of record is uploaded to server end by means of the upload mechanism of government affairs self-aided terminal by log module.
(3) beneficial effect
The beneficial effects of the present invention are: a kind of business datum of government affairs self-aided terminal provided by the invention uploads ensuring equipment And application method, business datum backhaul service device end caused by avoiding because of network fluctuation fail, and lead to event of data loss Occur.
Catch of exception module is main logic processing module, is operated based on AOP, calls the process of service in this module It executes, realizes to abnormal capture and processing.Serialization module and log module, which are all embedded in catch of exception module, to be realized, two The all start-up operations when capturing abnormal module and capturing exception of a module, play the effect of auxiliary investigation analysis mistake, also completely It ensure that the integrality of business datum.Timing module executes task as an individual module, according to the timing of the period of setting, The follow-up work of catch of exception module is completed, the acquisition abnormal data of catch of exception module simultaneously caches, in addition timing module obtains It takes data cached and returns, form a complete dealing of abnormal data process.
Detailed description of the invention
Fig. 1 is the stream in a kind of embodiment of the business datum upload ensuring equipment of government affairs self-aided terminal provided by the invention Journey schematic diagram;
Fig. 2 is the stream in a kind of embodiment of the business datum upload ensuring equipment of government affairs self-aided terminal provided by the invention Journey schematic diagram.
Specific embodiment
In order to preferably explain the present invention, in order to understand, with reference to the accompanying drawing, by specific embodiment, to this hair It is bright to be described in detail.
Present embodiment discloses a kind of business datums of government affairs self-aided terminal to upload ensuring equipment as shown in Figure 1:, comprising: Catch of exception module, data back module and timing module.
Catch of exception module described in the present embodiment is to judge that self-aided terminal is uploaded to the business datum of server end It is no to upload successfully, and it is responsible for the business datum that acquisition uploads failure.
It is noted that catch of exception modular terminal program described here is developed based on Java, service call frame Similar Spring frame can handle abnormal conditions using AOP mode in turn, and modification scheme introduces the Cache Framework of open source Ehcache caches abnormal service data object as tool, and Ehcache cache tools is based on Java context, can be section The abnormal data captured is cached in local disk as Java object processing.Characteristic quick using its, simple, It is configured to terminal program and start can realize can persistence the caching work of data backstage.It is taken in this module basis Build the serialization module of serializing abnormal data and by the log module of the independent record log of abnormal data.
Data back module described in the present embodiment can return the collected business datum of catch of exception module Reach server end.
It is as shown in Figure 2: business of the data back module here for needing using business datum abnormal retransmission mode, It occurs to obtain it when service is abnormal in the request object of request service, to obtain the interface type of the inside, data object simultaneously It is cached in the local disk of terminal by tool, last terminal program timing is obtained from local cache uploads failure or passback The data object of failure simultaneously re-calls the service passback business datum, for returning successful data object, deletes it and is delaying Record in depositing does not deal with then for failure and waits fixed cycle operator next time until returning successfully.
Timing module described in the present embodiment will be uploaded to data back module described in the periodic activation according to setting The business datum of failure is back to server end.
For example, being set as 10 minutes a cycles, every 10 minutes timing modules here can all activate the data back The business datum that government affairs self-aided terminal uploads failure or passback failure is sent to server end by module.
The business datum of government affairs self-aided terminal in the present embodiment uploads ensuring equipment further include: serialization module and log Module.
Specifically, the serialization module and the log module are embedded in the catch of exception module, and can be with institute State the work of catch of exception module synchronization.
Serialization module described in the present embodiment is using fastjson the business datum sequence of collected passback failure Json format is turned to, the data basis as log module record log.
Timing module described here includes one or more Quartz timer.
One or more of Quartz timers can be for one or more business datums for uploading failure or passback Passback, and dispatch the data back module.
The execution of timing module uses Quartz Timer Utility, Java context is equally based on, to being all Java object The management of abnormal traffic data object is very convenient, can make by oneself the job scheduling period go obtain local cache data object simultaneously Execute the operation for passing back to background server.It can be dispatched respectively using multiple Quartz timers and obtain data cached and return And the upload of log.
Log module described in the present embodiment includes Log4j component.
The Log4j component carries out encrypting storing using daily record data of the encryption mode to record;
The daily record data includes at least: the upload of serializing or business datum event, upload or the passback of passback failure The time of failure and the label of place government affairs self-aided terminal.
It is noted that log module here is with terminal program running log, abnormal data log recording is also using opening Source log equipments of recording Log4j, the output that can be adjusted flexibly and control log by modifying configuration.Logging tools support encryption It saves, background server can be uploaded to log timing upload mechanism, it is the log recording generation time of abnormal data, specific Content etc. is conducive to assist the analysis to the abnormal conditions and guarantees the integrality of abnormal data object, exception described here Data object is primarily referred to as uploading the business datum of failure.
It further includes memory module that the business datum of government affairs self-aided terminal, which uploads ensuring equipment, in the present embodiment.
The memory module is to store the daily record data of the log module record, the industry of upload and/or passback failure Business data.
It is noted that memory module described in the present embodiment can be individual storage hard disk, it can also be for government affairs certainly Help the hard disk cache that terminal itself carries.
The business datum that the technical program also provides a kind of government affairs self-aided terminal uploads the application method of ensuring equipment, in political affairs When being engaged in self-aided terminal to server end passed-back traffic data failure, catch of exception module is acquired passed-back traffic data, and The collected business datum for uploading failure is sent to memory module to store.
Here memory module can may be the included caching of government affairs self-aided terminal for the storage hard disk individually set up.
It is noted that method described in the present embodiment further include:
Timing module according to setting periodic activation data back module;
Data back module obtains the business datum for uploading or returning failure from memory module, and will upload or passback mistake The business datum lost is back to server end.
It is noted that will accordingly return successful business datum in memory module after data back module returns successfully It deletes, is not deleted if returning failure, next cycle is waited to continue to return.
Here it will be uploaded by data back module or the business datum of passback failure be back to server end again, avoided Lead to the problem of loss of data for being uploaded to server end because of network fluctuation.
Method described in the present embodiment further include:
Serialization module will upload or the business datum of passback failure carries out serializing pretreatment;And it will be pre- by serializing The business datum of upload that treated or passback failure is sent to log module.
The business datum that failure is uploaded or returned by pretreatment received is recorded as uploading or be returned by log module The business datum event of failure.
Finally, it is noted that the method also includes:
The daily record data of record is uploaded to server end by means of the upload mechanism of government affairs self-aided terminal by log module.
The technical principle of the invention is described above in combination with a specific embodiment, these descriptions are intended merely to explain of the invention Principle shall not be construed in any way as a limitation of the scope of protection of the invention.Based on explaining herein, those skilled in the art It can associate with other specific embodiments of the invention without creative labor, these modes fall within this hair Within bright protection scope.

Claims (10)

1. a kind of business datum of government affairs self-aided terminal uploads ensuring equipment characterized by comprising catch of exception module, number According to passback module and timing module;
Whether the catch of exception module uploads success to judge that self-aided terminal is uploaded to the business datum of server end, and bears Duty acquisition uploads the business datum of failure;
The collected business datum of catch of exception module can be back to server end by the data back module;
The timing module returns the business datum for uploading failure to data back module described in the periodic activation according to setting Reach server end.
2. ensuring equipment according to claim 1, which is characterized in that
Further include: serialization module and log module;
The serialization module and the log module are embedded in the catch of exception module, and can be with the catch of exception mould Block synchronous working.
3. according to ensuring equipment as claimed in claim 2 is removed, which is characterized in that
The collected business datum sequence for uploading failure is turned to Json format using fastjson by the serialization module, is made For the data basis of log module record log.
4. the ensuring equipment according to shown in claim 3, which is characterized in that
The timing module includes one or more Quartz timer;
One or more of Quartz timers can be for the passback of one or more business datums for uploading failure, and adjusts Spend the data back module.
5. ensuring equipment according to claim 4, which is characterized in that
The log module includes Log4j component;
The Log4j component carries out encrypting storing using daily record data of the encryption mode to record;
The daily record data includes at least: the upload of serializing or business datum event, upload or the passback failure of passback failure Time and place government affairs self-aided terminal label.
6. ensuring equipment according to claim 5, which is characterized in that
It further include memory module;
The memory module is to store the daily record data of the log module record and upload or return the business datum of failure.
7. the application method that a kind of business datum of government affairs self-aided terminal uploads ensuring equipment, which is characterized in that
When government affairs self-aided terminal uploads business datum to server end and fails, catch of exception module is to the business number for uploading failure According to being acquired, and the collected business datum for uploading failure is sent to memory module and is stored.
8. application method according to claim 7, which is characterized in that
The method also includes:
Timing module according to setting periodic activation data back module;
Data back module obtains the business datum for uploading or returning failure from memory module, and will upload or return failure Business datum is back to server end.
9. application method according to claim 8, which is characterized in that
The method also includes:
Serialization module will upload or the business datum of passback failure carries out serializing pretreatment;And it will be by serializing pretreatment The business datum of upload or passback failure afterwards is sent to log module;
The business datum that failure is uploaded or returned by pretreatment received is recorded as uploading or returning failing by log module Business datum event.
10. application method according to claim 9, which is characterized in that
The method also includes:
The daily record data of record is uploaded to server end by means of the upload mechanism of government affairs self-aided terminal by log module.
CN201910229454.9A 2019-03-25 2019-03-25 A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal Pending CN109981230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229454.9A CN109981230A (en) 2019-03-25 2019-03-25 A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229454.9A CN109981230A (en) 2019-03-25 2019-03-25 A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal

Publications (1)

Publication Number Publication Date
CN109981230A true CN109981230A (en) 2019-07-05

Family

ID=67080474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229454.9A Pending CN109981230A (en) 2019-03-25 2019-03-25 A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal

Country Status (1)

Country Link
CN (1) CN109981230A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997661A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Data packet sending method, data packet acquiring method and device
CN105871520A (en) * 2015-12-31 2016-08-17 乐视网信息技术(北京)股份有限公司 Data transmission method and device
CN108900625A (en) * 2018-07-17 2018-11-27 河北中科恒运软件科技股份有限公司 It is a kind of based on government affairs application cloud on storage method
CN108960092A (en) * 2018-06-21 2018-12-07 深圳市丰巢科技有限公司 A kind of government affairs business is self-service to handle method and intelligent express delivery cabinet
CN109034727A (en) * 2018-06-28 2018-12-18 上海卓繁信息技术股份有限公司 Self-service electronic government affairs processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997661A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Data packet sending method, data packet acquiring method and device
CN105871520A (en) * 2015-12-31 2016-08-17 乐视网信息技术(北京)股份有限公司 Data transmission method and device
CN108960092A (en) * 2018-06-21 2018-12-07 深圳市丰巢科技有限公司 A kind of government affairs business is self-service to handle method and intelligent express delivery cabinet
CN109034727A (en) * 2018-06-28 2018-12-18 上海卓繁信息技术股份有限公司 Self-service electronic government affairs processing method
CN108900625A (en) * 2018-07-17 2018-11-27 河北中科恒运软件科技股份有限公司 It is a kind of based on government affairs application cloud on storage method

Similar Documents

Publication Publication Date Title
CN112637318B (en) Intelligent gateway system and device for storage integrity and control method thereof
CN109889551A (en) A kind of method of the Internet of Things cloud platform of Intelligent hardware access
CN105653425B (en) Monitoring system based on complex event processing engine
CN104239132B (en) A kind of wake up the method for alignment, device and terminal up
CN110069354A (en) The full link trace method of micro services and micro services framework
CN101399715B (en) Network test platform and test method for optical fiber channel
CN101227343B (en) Method and device for testing TCPv6 and UDPv6
CN105138398B (en) SOCKET communication and management of process general-purpose platform and method under synchronous communication mode
CN109889381A (en) Automatic configuration management method and device based on fort machine
CN103812726A (en) Automated testing method and device for data communication equipment
CN102497427B (en) Method and device for realizing data acquisition services of renewable energy source monitoring system
CN111400127B (en) Service log monitoring method and device, storage medium and computer equipment
CN109302476A (en) A kind of PLC program upgrade method and system based on mobile terminal
CN110320875B (en) PAC cloud operation and maintenance system based on MQTT protocol
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN113553310B (en) Data acquisition method and device, storage medium and electronic equipment
CN103198007A (en) Multi-process log output method and system
CN110071855A (en) Equipment linkage control method, device, system, gateway and storage medium
CN103544060B (en) A kind of service dispatch system and method based on WEBSERVICE
CN109981230A (en) A kind of the business datum upload ensuring equipment and application method of government affairs self-aided terminal
CN110989537A (en) Production data processing method, apparatus, medium, and system
CN109525422A (en) A kind of daily record data method for managing and monitoring
CN106254540B (en) A kind of node serve monitoring system and implementation method suitable for distributed system
CN108449375A (en) The system and method for network interconnection data grabber distribution
CN105162640A (en) System and method of configuring switches in batch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705