CN101969456B - Geographical map displaying system and method - Google Patents

Geographical map displaying system and method Download PDF

Info

Publication number
CN101969456B
CN101969456B CN201010285474.7A CN201010285474A CN101969456B CN 101969456 B CN101969456 B CN 101969456B CN 201010285474 A CN201010285474 A CN 201010285474A CN 101969456 B CN101969456 B CN 101969456B
Authority
CN
China
Prior art keywords
data
module
cache
protocol
agreement
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.)
Expired - Fee Related
Application number
CN201010285474.7A
Other languages
Chinese (zh)
Other versions
CN101969456A (en
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.)
Jiangxi Yubo Technology Co ltd
Original Assignee
Shenzhen Temobi Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Temobi Science and Technology Co Ltd filed Critical Shenzhen Temobi Science and Technology Co Ltd
Priority to CN201010285474.7A priority Critical patent/CN101969456B/en
Publication of CN101969456A publication Critical patent/CN101969456A/en
Priority to PCT/CN2011/076158 priority patent/WO2012034431A1/en
Application granted granted Critical
Publication of CN101969456B publication Critical patent/CN101969456B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a geographical map displaying system, comprising a network transmission device for NIO frame adaptation, data receiving and sending, data coding/decoding; a geographical map protocol device connected with the network transmission device for analyzing and assembling the protocol, dispensing the protocol, processing the protocol logic and generating the bond value; a distributed buffer device connected with the geographical map protocol device for storing the buffer group, the buffer zone, the buffer backup and the buffer restoring of the geographical map data. The invention accelerates the network transmission speed and solves the network concurrency problem through the existing NIO frame so as to provide the scalability for the system; the invention realizes the user-defined protocol for simplifying the data packet of the request/response and accelerating the speed of the request response; the invention utilizes the feature of the buffer; the data storage structure mainly uses the buffer; and all data can be put in the distributed buffer for accelerating the response time of the processing request.

Description

A kind of map display system and method
Technical field
The present invention relates to map and show field, relate in particular to a kind of map display system and method.
Background technology
Along with the continuous progress of society, internet, applications increasingly extensive, location-based business is also being accepted by user gradually and is popularizing.Under the developing rapidly of mobile Internet, realized the position application of different accuracy at present, user can use by the application program in mobile terminal the related service of GIS at any time, as: the functions such as location, public transportation enquiry, route inquiry.
In existing mobile Internet map server end system, can be divided at present: map datum provider, and map application provider.Both responsible main businesses are different, and map datum provider is absorbed in the exploitation of map datum, engine map; And map application provider is absorbed in the exploitation of product application.
In prior art, in the implementation of mobile Internet map application system:
Data acquisition aspect: common way is to obtain data in the interface by map datum provider, then conventional map datum is stored in to buffer memory, by the deposit data being of little use in database, by obtain data from buffer memory and database.
There is performance issue in this way, increase along with user, conventional map datum amount can be excessive, by traditional cache way, deposit the situation that there will be buffer memory not enough, because according to different operating system, the size of each process operation internal memory is placed restrictions on, the operating system of one 32, and a process maximum is operable as 4G internal memory.Map datum when buffer memory is inadequate in direct accessing database, a large amount of data can be stored in database, but along with user's increase, the I/O performance of database can decline, thereby can affect the speed of obtaining map datum, cause access speed slack-off.
Network connection aspect: it is based on Thread per request that traditional Server/Client realizes, server is set up a thread process for each client-requested, and individual responsibility is processed a client's request.Such as realizing as the Web servers such as Tomcat, Resin.Certainly in order to reduce transient peak problem, server is generally all used thread pool, has stipulated simultaneously concurrent maximum quantity, has avoided increasing without limitation of thread.
But there is like this problem: when there is a large number of users to obtain a large amount of pictures by Socket or HTTP simultaneously, all threads are all at transmission picture, when the thread pool of server has been finished, even if ensuing requestor only asks the picture of a very little byte, server also cannot respond, and only has and waits until that thread available free in thread pool occurs.
Summary of the invention
The object of the embodiment of the present invention is to propose a kind of map display system, and the network transfer speeds that is intended to solve prior art map display system is slow, concurrent indifferent, processes the long problem of response time of request.
A map display system, described system comprises:
Network transmission device, map protocol apparatus, distributed caching device, described map protocol apparatus is connected with distributed caching device with network transmission device respectively, wherein,
Network transmission device, adds decoding for NIO framework adaptation, data receiver and transmission, data;
Map protocol apparatus, is connected with described network transmission device, for the treatment of the distributing of the parsing of agreement and assembling, agreement, protocol logic is processed, key assignments generates;
Distributed caching device, be connected, and described distributed caching device comprises with described map protocol apparatus:
Cache partitions module, is used to cache interface function that initiation parameter is provided, and according to buffer memory type, level of zoom, coordinate offset amount is connected to the region cache sub-module in different cache module groups by cache interface;
Cache module group, be connected with described cache partitions module, for unified cache access interface is provided, use Telnet agreement as basic agreement, utilize internal memory as buffer memory, by supporting 32/64 bit manipulation system maximum can utilize internal memory not limited by physical memory, this module comprises a plurality of regions cache sub-module;
Timed backup module, is connected with described cache module group, for according to timed task, regularly the data cached persistence of a plurality of regions cache sub-module in cache module group is saved in database;
Data restoring module, is connected with described cache module group, for Backup Data being reverted in a plurality of regions cache sub-module of cache module group.
Another object of the embodiment of the present invention is to propose a kind of map-indication method, and described method comprises:
The NIO framework of supporting according to XML file configuration, has realized Socket and HTTP according to described framework;
Reception, from the network request of client, sends response data to client, and the data of transmission are added to decoding;
The data that reception is come from Internet Transmission, and described data are carried out to protocol analysis, business logic processing, generation key assignments and access cache interface, after finishing service logical process, the data of returning are carried out to agreement assembling;
According to the access of cache interface, the region buffer memory of cache partitions Divide File is conducted interviews;
Wherein, describedly according to the access of cache interface, the region buffer memory of cache partitions Divide File is conducted interviews and is comprised:
Allocating cache partitioned file, the mode by buffer memory key assignments with scope is configured in partitioned file;
Receive cache interface request, according to cache partitions configuration, access corresponding caching server, obtain data;
Start timed task, the data in buffer memory are backuped in database, then by database timed backup;
Restoring data is in the caching server list of appointment in batches;
Access third party interface, generate data cached, according to cache partitions configuration, by deposit data in corresponding caching server.
Another object of the embodiment of the present invention is to propose a kind of map protocol apparatus, and described map protocol apparatus comprises:
Protocol analysis module, for the network data receiving is carried out to protocol analysis according to predetermined format, and sends to business logic processing module by the data after resolving; Wherein said predetermined format is: " packet content of data packet length+protocol number+agreement association attributes+request ";
Agreement Knockdown block, for assembling the response data from business logic processing module, assembles described response data and protocol header, and sends the protocol package after assembling; Wherein said assembling form is: " packet content of data packet length+protocol number+agreement association attributes+response ";
Business logic processing module, is connected with agreement Knockdown block, for the data after resolving are distributed to corresponding protocol logic processing capacity;
Key assignments Knockdown block, is connected with described business logic processing module, for when business logic processing resume module data need to be obtained non-real-time data, generates corresponding key assignments, the parameter by this key assignments as access cache; The form of the corresponding key assignments of described generation is divided into two kinds: a kind of is " key assignments+agreement association attributes ", and another kind is " key assignments+level of zoom+coordinate offset amount ";
Cache interface module, be connected with described key assignments Knockdown block, for the handle of quoting as access distributed caching device, the initialization of described handle generates according to the configuration of reading cache partitions module, in described cache interface module, comprise one group of buffer memory and quote handle, each is quoted handle and is connected with the region cache sub-module in cache module group;
Log pattern, is connected with all modules in described map protocol apparatus, and for record request daily record, logicality is processed daily record and buffer memory access log, facilitates map protocol apparatus described in trace debug;
Another object of the embodiment of the present invention is to propose a kind of map protocol method, and described method comprises:
User's request msg is resolved with the structure of custom protocol;
Protocol number in custom protocol after resolving is carried out to agreement division, and distribute in corresponding map processing logic method, then carry out corresponding logical process according to concrete request msg;
Generate buffer memory key assignments, obtain cache set interface handle, call this handle acquiring cache interface method, described buffer memory key assignments is imported into simultaneously, analyze described buffer memory key assignments whether in effective range;
As returned to corresponding cache interface object in effective range, data cached by described cache interface object acquisition;
If described buffer memory key assignments is not in effective range or obtain data cached failure, accesses third party's data-interface and obtain data;
The data of returning are assembled and returned with the structure of custom protocol.
Beneficial effect of the present invention: the present invention, by realizing existing NIO framework, has accelerated network transfer speeds and solved network concurrent problem, for system provides scalability; By realizing custom protocol, the packet of having simplified request/response has more been accelerated the speed of request response; Make full use of the characteristic of buffer memory, data store organisation is to take buffer memory as main, and all data are all put in distributed caching, thereby has accelerated the response time of the request of processing.
Accompanying drawing explanation
Fig. 1 is a kind of map display server of embodiment of the present invention system construction drawing;
Fig. 2 is a kind of map display server of embodiment of the present invention detailed system structure chart;
Fig. 3 is the system configuration schematic diagram of embodiment of the present invention network transmission device;
Fig. 4 is the system configuration schematic diagram of embodiment of the present invention map protocol apparatus;
Fig. 5 is the system configuration schematic diagram of embodiment of the present invention distributed caching device.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
The present invention has carried out design and optimization again to the mixed-media network modules mixed-media of traditional map application service end system, logic processing module, data memory module.By realizing existing NIO framework, accelerate network transfer speeds and solved network concurrent problem, support simple expansion and configuration just can realize adaptive existing outstanding NIO framework, for system provides scalability simultaneously; By realizing custom protocol, simplified the packet of request/response, remove the redundancy of attribute that other agreement is brought, played the use of doing to packet fat-reducing, standard map datum request protocol specification, has more accelerated the speed that request responds; By adjusting data store organisation, use high speed distributed cache server group, the parameter of data is according to the map generated to corresponding key assignments, according to this key assignments, divide cache partitions, Value Data is stored in different caching servers respectively, to accelerate to obtain the speed of map datum, by buffer memory timed backup and reduction mechanism, realize data cached persistence simultaneously, effectively solved the problems such as data cached loss, make full use of the characteristic of buffer memory, thereby accelerated the response time of the request of processing.Data store organisation after adjustment is to take buffer memory as main, and all data are all put in distributed caching.
Fig. 1, Fig. 2 are a kind of map display server of embodiment of the present invention system construction drawings, and described server comprises:
Network transmission device, map protocol apparatus, distributed caching device, described map protocol apparatus is connected with distributed caching device with network transmission device respectively, wherein,
Network transmission device, adds decoding for NIO framework adaptation, data receiver and transmission, data;
Be the system construction drawing of network transmission device as described in Figure 3, described network transmission device comprises:
NIO framework adaptation module, for according to abstract class definition abstract method, by expanding the mode of this abstract class and configuration respective attributes file, has realized the adaptation of NIO framework;
Procotol support module, is connected with described NIO framework adaptation module, for supporting the procotol of mobile terminal; Wherein said procotol comprises the popular procotols of mobile terminal such as Socket, HTTP1.0/HTTP1.1
Data reception module, is connected with described procotol support module, the data that send for receiving network protocol support module;
Data transmission blocks, is connected with described procotol support module, for agreement being added to decoder module, passes the data come and sends to procotol support module;
Agreement adds decoder module, be connected with data reception module with described data transmission blocks, for sending to protocol analysis module after the decoding data that data reception module is transmitted, receive the data that agreement Knockdown block sends and raise the price after send to data transmission blocks.
Map protocol apparatus, is connected with described network transmission device, for the treatment of the distributing of the parsing of agreement and assembling, agreement, protocol logic is processed, key assignments generates;
Be the system construction drawing of map protocol apparatus as described in Figure 4, described map protocol apparatus comprises:
Protocol analysis module, adding decoder module phase with described agreement is connected with log pattern, for resolving the agreement of network transmission device, add the data that decoder module sends, according to predetermined format, carry out protocol analysis, and the data after resolving are sent to business logic processing module; Wherein said predetermined format is: " packet content of data packet length+protocol number+agreement association attributes+request ";
Agreement Knockdown block, adding decoder module with described agreement is connected with log pattern, for assembling the response data from business logic processing module, described response data and protocol header are assembled, and the agreement that the protocol package after assembling sends to network transmission device is added to decoder module; Wherein said assembling form is: " packet content of data packet length+protocol number+agreement association attributes+response ";
Business logic processing module, is connected with described protocol analysis module, agreement Knockdown block, for the data after protocol analysis module parses being distributed to corresponding protocol logic processing capacity; Its protocol logic is processed concrete function and is comprised:
(1) get map
(2) get real-time road cartographic information
(3) obtain sectional drawing
(4) send map multimedia message
(5) map error correction
(6) search information
(7) search third party data message
(8) architecture
(9) by the actual longitude and latitude of GPS module, obtain side-play amount
(10) drive route inquiry
(11) keyword query public bus network title
(12) according to bus routes name query public bus network information
(13) according to longitude and latitude and city codes inquiry big city Public Transport Transfer
(14) according to current centre coordinate, obtain under different proportion the side-play amount with respect to center longitude
(15) heartbeat packet
(16) address resolution service
(17) obtain geographical position longitude and latitude, city title etc.;
Key assignments Knockdown block, is connected with described business logic processing module, for when business logic processing resume module data need to be obtained non-real-time data, generates corresponding key assignments, the parameter by this key assignments as access cache; The form of the corresponding key assignments of described generation is divided into two kinds: a kind of is that " key assignments+agreement association attributes ", another kind are " key assignments+level of zoom+coordinate offset amounts ".
Cache interface module, be connected with described key assignments Knockdown block, for the handle of quoting as access distributed caching device, the initialization of described handle generates according to the configuration of reading cache partitions module, in described cache interface module, comprise one group of buffer memory and quote handle, each is quoted handle and is connected with the region cache sub-module in cache module group;
Log pattern, is connected with all modules in described map protocol apparatus, and for record request daily record, logicality is processed daily record and buffer memory access log, facilitates map protocol apparatus described in trace debug;
Distributed caching device, is connected with described map protocol apparatus, is the system construction drawing of distributed caching device as described in Figure 5, and described distributed caching device comprises:
Cache partitions module, is connected with described cache interface module, is used to cache interface function that initiation parameter is provided, and according to buffer memory type, level of zoom, coordinate offset amount is connected to the region cache sub-module in different cache module groups by cache interface;
Cache module group, be connected with described cache partitions module, for unified cache access interface is provided, use Telnet agreement as basic agreement, utilize internal memory as buffer memory, by supporting 32/64 bit manipulation system maximum can utilize internal memory not limited by physical memory, in this module, also comprise a plurality of regions cache sub-module;
Timed backup module, is connected with described cache module group, and this module is automatically to trigger, and for according to timed task, regularly the data cached persistence of a plurality of regions cache sub-module in cache module group is saved in database;
Data restoring module, is connected with described cache module group, and this module is manual triggers, for Backup Data being reverted in a plurality of regions cache sub-module of cache module group.
The embodiment of the present invention has been carried out design and optimization again to the mixed-media network modules mixed-media of traditional map application service end system, logic processing module, data memory module.By realizing existing NIO framework, accelerate network transfer speeds and solved network concurrent problem, support simple expansion and configuration just can realize adaptive existing outstanding NIO framework, for system provides scalability simultaneously; By realizing custom protocol, simplified the packet of request/response, remove the redundancy of attribute that other agreement is brought, played the use of doing to packet fat-reducing, standard map datum request protocol specification, has more accelerated the speed that request responds; By adjusting data store organisation, use high speed distributed cache server group, the parameter of data is according to the map generated to corresponding key assignments, according to this key assignments, divide cache partitions, Value Data is stored in different caching servers respectively, to accelerate to obtain the speed of map datum, by buffer memory timed backup and reduction mechanism, realize data cached persistence simultaneously, effectively solved the problems such as data cached loss, make full use of the characteristic of buffer memory, thereby accelerated the response time of the request of processing.Data store organisation after adjustment is to take buffer memory as main, and all data are all put in distributed caching.
Be below the process step of a kind of map-indication method of the embodiment of the present invention:
The NIO framework that step 1. is supported according to XML file configuration, has realized Socket and HTTP according to described framework; Reception, from the network request of client, sends response data to client, and the data of transmission are added to decoding.
Step 2. receives the data of coming from Internet Transmission, and described data are carried out to protocol analysis, business logic processing, generation key assignments and access cache interface, after finishing service logical process, the data of returning is carried out to agreement assembling.
Step 3. conducts interviews to the region buffer memory of cache partitions Divide File according to the access of cache interface.
Be below the process step of a kind of network transfer method of the embodiment of the present invention:
Step 1, the NIO framework of supporting according to XML file configuration.
Step 2, receives user's request, and according to the port of user's access, distinguishing is HTTP or Socket.
Step 3, the corresponding callback method according to different agreement call request data imports described request data into corresponding callback method in the mode of parameter simultaneously, calling data response method, and send the response data that described data response method is passed back.
Step 4, utilizes filter mechanism to add decoding to described request data and described response data.
The embodiment of the present invention, by realizing existing NIO framework, has been accelerated network transfer speeds and has been solved network concurrent problem, supports simple expansion and configuration just can realize adaptive existing outstanding NIO framework, for system provides scalability simultaneously.
Be below the process step of embodiment of the present invention map protocol method:
Step 1. is resolved user's request msg with the structure of custom protocol.
The form of wherein said custom protocol is: " packet content of data packet length+protocol number+agreement association attributes+request ";
Protocol number in custom protocol after step 2. pair parsing carries out agreement division, and distributes in corresponding map processing logic method, then carries out corresponding logical process according to concrete request msg.
Step 3. generates buffer memory key assignments, obtains cache set interface handle, calls this handle acquiring cache interface method, described buffer memory key assignments is imported into simultaneously, analyzes described buffer memory key assignments whether in effective range,
As returned to corresponding cache interface object in effective range, data cached by described cache interface object acquisition;
If described buffer memory key assignments is not in effective range or obtain data cached failure, accesses third party's data-interface and obtain data.
Wherein buffer memory key assignments refers in effective range needs the data of access in the module of cache partitions.
Step 4. assembles with the structure of custom protocol the data of returning return.
The embodiment of the present invention, by realizing custom protocol, has been simplified the packet of request/response, removes the redundancy of attribute that other agreement is brought, and has played the use of doing to packet fat-reducing, and standard map datum request protocol specification has more been accelerated the speed that request responds.
Be below the process step of embodiment of the present invention distributed caching method:
Step 1. allocating cache partitioned file, the mode by buffer memory key assignments with scope is configured in partitioned file, such as: one group of buffer memory range of key values corresponds to a caching server etc.
Step 2. receives cache interface request, according to cache partitions configuration, accesses corresponding caching server, obtains data.
Step 3. starts timed task, the data in buffer memory is backuped in database, then by database timed backup.
Step 4. batch restoring data is in the caching server list of appointment.
Step 5. access third party interface, generate data cached, according to cache partitions configuration, by deposit data in corresponding caching server.
The embodiment of the present invention is by adjusting data store organisation, use high speed distributed cache server group, the parameter of data is according to the map generated to corresponding key assignments, according to this key assignments, divide cache partitions, Value Data is stored in different caching servers respectively, to accelerate to obtain the speed of map datum, simultaneously by buffer memory timed backup and reduction mechanism, realized data cached persistence, the problems such as data cached loss have effectively been solved, make full use of the characteristic of buffer memory, thereby accelerated the response time of the request of processing.Data store organisation after adjustment is to take buffer memory as main, and all data are all put in distributed caching.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. a map display system, is characterized in that, described system comprises:
Network transmission device, map protocol apparatus, distributed caching device, described map protocol apparatus is connected with distributed caching device with network transmission device respectively, wherein,
Network transmission device, adds decoding for NIO framework adaptation, data receiver and transmission, data;
Map protocol apparatus, is connected with described network transmission device, for the treatment of the distributing of the parsing of agreement and assembling, agreement, protocol logic is processed, key assignments generates;
Distributed caching device, is connected with described map protocol apparatus, comprising:
Cache partitions module, is used to cache interface function that initiation parameter is provided, and according to buffer memory type, level of zoom, coordinate offset amount is connected to the region cache sub-module in different cache module groups by cache interface;
Cache module group, be connected with described cache partitions module, for unified cache access interface is provided, use Telnet agreement as basic agreement, utilize internal memory as buffer memory, by supporting 32/64 bit manipulation system maximum can utilize internal memory not limited by physical memory, this module comprises a plurality of regions cache sub-module;
Timed backup module, is connected with described cache module group, for according to timed task, regularly the data cached persistence of a plurality of regions cache sub-module in cache module group is saved in database;
Data restoring module, is connected with described cache module group, for Backup Data being reverted in a plurality of regions cache sub-module of cache module group;
Wherein, described network transmission device comprises:
NIO framework adaptation module, for according to abstract class definition abstract method, by expanding the mode of this abstract class and configuration respective attributes file, has realized the adaptation of NIO framework;
Procotol support module, is connected with described NIO framework adaptation module, for supporting the procotol of mobile terminal;
Data reception module, is connected with described procotol support module, the data that send for receiving network protocol support module;
Data transmission blocks, is connected with described procotol support module, for agreement being added to decoder module, passes the data come and sends to procotol support module;
Agreement adds decoder module, be connected with data reception module with described data transmission blocks, for sending to protocol analysis module after the decoding data that data reception module is transmitted, receive the data that agreement Knockdown block sends and raise the price after send to data transmission blocks; Described map protocol apparatus comprises:
Protocol analysis module, adding decoder module phase with described agreement is connected with log pattern, for resolving the agreement of network transmission device, add the data that decoder module sends, according to predetermined format, carry out protocol analysis, and the data after resolving are sent to business logic processing module; Wherein said predetermined format is: " packet content of data packet length+protocol number+agreement association attributes+request ";
Agreement Knockdown block, adding decoder module with described agreement is connected with log pattern, for assembling the response data from business logic processing module, described response data and protocol header are assembled, and the agreement that the protocol package after assembling sends to network transmission device is added to decoder module; Wherein said assembling form is: " packet content of data packet length+protocol number+agreement association attributes+response ";
Business logic processing module, is connected with described protocol analysis module, agreement Knockdown block, for the data after resolving are distributed to corresponding protocol logic processing capacity;
Key assignments Knockdown block, is connected with described business logic processing module, for when business logic processing resume module data need to be obtained non-real-time data, generates corresponding key assignments, the parameter by this key assignments as access cache; The form of the corresponding key assignments of described generation is divided into two kinds: a kind of is that " key assignments+agreement association attributes ", another kind are " key assignments+level of zoom+coordinate offset amounts ";
Cache interface module, be connected with described key assignments Knockdown block, for the handle of quoting as access distributed caching device, the initialization of described handle generates according to the configuration of reading cache partitions module, in described cache interface module, comprise one group of buffer memory and quote handle, each is quoted handle and is connected with the region cache sub-module in cache module group;
Log pattern, is connected with all modules in described map protocol apparatus, and for record request daily record, logicality is processed daily record and buffer memory access log, facilitates map protocol apparatus described in trace debug.
2. a map protocol apparatus, is characterized in that, described map protocol apparatus comprises:
Protocol analysis module, for the network data receiving is carried out to protocol analysis according to predetermined format, and sends to business logic processing module by the data after resolving; Wherein said predetermined format is: " packet content of data packet length+protocol number+agreement association attributes+request ";
Agreement Knockdown block, for assembling the response data from business logic processing module, assembles described response data and protocol header, and sends the protocol package after assembling; Wherein said assembling form is: " packet content of data packet length+protocol number+agreement association attributes+response ";
Business logic processing module, is connected with agreement Knockdown block, for the data after resolving are distributed to corresponding protocol logic processing capacity;
Key assignments Knockdown block, is connected with described business logic processing module, for when business logic processing resume module data need to be obtained non-real-time data, generates corresponding key assignments, the parameter by this key assignments as access cache; The form of the corresponding key assignments of described generation is divided into two kinds: a kind of is " key assignments+agreement association attributes ", and another kind is " key assignments+level of zoom+coordinate offset amount ";
Cache interface module, be connected with described key assignments Knockdown block, for the handle of quoting as access distributed caching device, the initialization of described handle generates according to the configuration of reading cache partitions module, in described cache interface module, comprise one group of buffer memory and quote handle, each is quoted handle and is connected with the region cache sub-module in cache module group;
Log pattern, is connected with all modules in described map protocol apparatus, and for record request daily record, logicality is processed daily record and buffer memory access log, facilitates map protocol apparatus described in trace debug.
3. a map protocol method, is characterized in that, described method comprises:
User's request msg is resolved with the structure of custom protocol;
Protocol number in custom protocol after resolving is carried out to agreement division, and distribute in corresponding map processing logic method, then carry out corresponding logical process according to concrete request msg;
Generate buffer memory key assignments, obtain cache set interface handle, call this handle acquiring cache interface method, described buffer memory key assignments is imported into simultaneously, analyze described buffer memory key assignments whether in effective range;
As returned to corresponding cache interface object in effective range, data cached by described cache interface object acquisition;
If described buffer memory key assignments is not in effective range or obtain data cached failure, accesses third party's data-interface and obtain data;
The data of returning are assembled and returned with the structure of custom protocol;
Wherein, the form of described custom protocol is: " packet content of data packet length+protocol number+agreement association attributes+request ".
4. a map-indication method, is characterized in that, described method comprises:
The NIO framework of supporting according to XML file configuration, has realized Socket and HTTP according to described framework;
Reception, from the network request of client, sends response data to client, and the data of transmission are added to decoding;
The data that reception is come from Internet Transmission, and described data are carried out to protocol analysis, business logic processing, generation key assignments and access cache interface, after finishing service logical process, the data of returning are carried out to agreement assembling;
According to the access of cache interface, the region buffer memory of cache partitions Divide File is conducted interviews;
Wherein, the described NIO framework of supporting according to XML file configuration, has realized Socket and HTTP according to described framework; Reception, from the network request of client, sends response data to client, and the data of transmission are added to decoding, comprising:
The NIO framework of supporting according to XML file configuration;
Receive user's request, according to the port of user's access, distinguishing is HTTP or Socket;
Corresponding callback method according to different agreement call request data imports described request data into corresponding callback method in the mode of parameter simultaneously, calling data response method, and send the response data that described data response method is passed back;
Utilize filter mechanism to add decoding to described request data and described response data;
The data that described reception is come from Internet Transmission, and described data are carried out to protocol analysis, business logic processing, generation key assignments and access cache interface, after finishing service logical process, the data of returning are carried out to agreement assembling, comprising:
User's request msg is resolved with the structure of custom protocol;
Protocol number in custom protocol after resolving is carried out to agreement division, and distribute in corresponding map processing logic method, then carry out corresponding logical process according to concrete request msg;
Generate buffer memory key assignments, obtain cache set interface handle, call described handle acquiring cache interface method, described buffer memory key assignments is imported into simultaneously, analyze described buffer memory key assignments whether in effective range;
As in effective range, return to corresponding cache interface object, data cached by described cache interface object acquisition;
If described buffer memory key assignments is not in effective range or obtain data cached failure, accesses third party's data-interface and obtain data;
The data of returning are assembled and returned with the structure of custom protocol;
Describedly according to the access of cache interface, the region buffer memory of cache partitions Divide File is conducted interviews and is comprised:
Allocating cache partitioned file, the mode by buffer memory key assignments with scope is configured in partitioned file;
Receive cache interface request, according to cache partitions configuration, access corresponding caching server, obtain data;
Start timed task, the data in buffer memory are backuped in database, then by database timed backup;
Restoring data is in the caching server list of appointment in batches;
Access third party interface, generate data cached, according to cache partitions configuration, by deposit data in corresponding caching server.
CN201010285474.7A 2010-09-17 2010-09-17 Geographical map displaying system and method Expired - Fee Related CN101969456B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010285474.7A CN101969456B (en) 2010-09-17 2010-09-17 Geographical map displaying system and method
PCT/CN2011/076158 WO2012034431A1 (en) 2010-09-17 2011-06-22 System and method for map displaying

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010285474.7A CN101969456B (en) 2010-09-17 2010-09-17 Geographical map displaying system and method

Publications (2)

Publication Number Publication Date
CN101969456A CN101969456A (en) 2011-02-09
CN101969456B true CN101969456B (en) 2014-10-01

Family

ID=43548560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010285474.7A Expired - Fee Related CN101969456B (en) 2010-09-17 2010-09-17 Geographical map displaying system and method

Country Status (2)

Country Link
CN (1) CN101969456B (en)
WO (1) WO2012034431A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969456B (en) * 2010-09-17 2014-10-01 深圳市融创天下科技股份有限公司 Geographical map displaying system and method
CN102693170A (en) * 2011-03-21 2012-09-26 北京千橡网景科技发展有限公司 Method and device for memory management
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
CN106897299B (en) * 2015-12-17 2020-03-10 阿里巴巴集团控股有限公司 Database access method and device
JP6477555B2 (en) * 2016-03-14 2019-03-06 オムロン株式会社 RELAY DEVICE, RELAY DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
CN110865845B (en) * 2019-10-28 2022-07-26 福建天泉教育科技有限公司 Method for improving interface access efficiency and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651698B (en) * 2007-12-12 2012-07-25 浙江大学 Transmission method for publish/subscribe system based on NIO and IO
CN101969456B (en) * 2010-09-17 2014-10-01 深圳市融创天下科技股份有限公司 Geographical map displaying system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐林.无阻塞I/O通信及其在车载GPS中的应用研究.《东南大学硕士学位论文》.2010,第2.4.3节、3.4.1节、3.5节、3.5.1节、3.5.2节、4.2.3节.
无阻塞I/O通信及其在车载GPS中的应用研究;徐林;《东南大学硕士学位论文》;20100427;第2.4.3节、3.4.1节、3.5节、3.5.1节、3.5.2节、4.2.3节 *

Also Published As

Publication number Publication date
WO2012034431A1 (en) 2012-03-22
CN101969456A (en) 2011-02-09

Similar Documents

Publication Publication Date Title
CN101969456B (en) Geographical map displaying system and method
US10511646B2 (en) System and method for delivering content
CN106612301B (en) The method for pushing and device of more new data
CN108270524A (en) Multicast broadcast multimedia service auxiliary content is distributed
CN101609415B (en) Universal service calling system and method based on middleware
CN104618506A (en) Crowd-sourced content delivery network system, method and device
CN102546612B (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN110413418B (en) Cache synchronization device and method, cache synchronization system and electronic equipment
CN103036977A (en) Business pushing method and pushing system based on content distribution network
WO2013078620A1 (en) Method, device and system for delivering live telecast content
CN103347089A (en) Method and device for separating and accelerating dynamic resources and static resources of website
CN101764831A (en) Method and system for sharing stream media data, and stream media node
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
CN101706826A (en) Method and system for realizing terminal track playback in network geographic information system
CN106357539A (en) Data acquisition method and equipment
CN106210022A (en) A kind of system and method for processing forum's height concurrent data requests
CN103813185A (en) Method, server and client for quickly distributing segmented programs
CN101267541A (en) A stream media distribution server applicable to online VoD or living broadcast
WO2013013557A1 (en) Method and system for demonstrating and processing network medium information
WO2019005446A1 (en) Providing media assets to subscribers of a messaging system
CN105989065B (en) Flash data processing method and system
CN103001967A (en) Source station server and business push method
WO2016062097A1 (en) Iptv system-based information processing method and device
CN103731478A (en) Content issuing method and system based on user access time
CN102143207B (en) Content acquisition method and redirecting node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Patentee after: SHENZHEN TEMOBI TECHNOLOGY Co.,Ltd.

Address before: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Patentee before: SHENZHEN TEMOBI SCIENCE & TECH Co.,Ltd.

ASS Succession or assignment of patent right

Owner name: RONGCHUANG TIANXIA (SHANGHAI) TECHNOLOGY DEVELOPME

Free format text: FORMER OWNER: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Effective date: 20150602

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 200433 YANGPU, SHANGHAI

TR01 Transfer of patent right

Effective date of registration: 20150602

Address after: The island No. 2500 building, 200433 Shanghai city Yangpu District Siping Road, room 2001

Patentee after: Melt wound (Shanghai) development in science and technology Co.,Ltd. all over the world

Address before: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Patentee before: SHENZHEN TEMOBI TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180320

Address after: Room 301, room 101, rose city 101, Sihu North Road 129, Nanchang high tech Industrial Development Zone, Nanchang, Jiangxi

Patentee after: JIANGXI YUBO TECHNOLOGY CO.,LTD.

Address before: The island No. 2500 building, 200433 Shanghai city Yangpu District Siping Road, room 2001

Patentee before: Melt wound (Shanghai) development in science and technology Co.,Ltd. all over the world

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141001