WO2007071142A1 - Systeme de gestion de donnees distribuee et procede d'abonnement dynamique aux donnees - Google Patents

Systeme de gestion de donnees distribuee et procede d'abonnement dynamique aux donnees Download PDF

Info

Publication number
WO2007071142A1
WO2007071142A1 PCT/CN2006/002601 CN2006002601W WO2007071142A1 WO 2007071142 A1 WO2007071142 A1 WO 2007071142A1 CN 2006002601 W CN2006002601 W CN 2006002601W WO 2007071142 A1 WO2007071142 A1 WO 2007071142A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
module
subscription
subscribing
subscribed
Prior art date
Application number
PCT/CN2006/002601
Other languages
English (en)
French (fr)
Inventor
Zijun Li
Yuanwen Wang
Minan Wang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to DE602006021299T priority Critical patent/DE602006021299D1/de
Priority to CN200680012181.3A priority patent/CN101160797B/zh
Priority to EP06791187A priority patent/EP1890425B1/en
Priority to AT06791187T priority patent/ATE505874T1/de
Publication of WO2007071142A1 publication Critical patent/WO2007071142A1/zh

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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present invention relates to a technique for data synchronization, and to a distributed data management system and a method for dynamically subscribing data.
  • the work system is often composed of multiple devices in different places. In this system, the data is not concentrated in one place, but distributed in different devices in different places. For distributed data. Due to the needs of software work, application modules in the working system often need to access these distributed data. If the application module and the data to be accessed are not in the same device, the application module needs to access the remote data through network communication, which affects the The efficiency with which the application module reads data also increases the network load and affects the performance of the working system.
  • the application module needs to frequently use some remote data, subscribe to the remote data and cache the remote data in the hardware device where the application module is located, and then subscribe.
  • the notification mechanism synchronizes the cached data with the remote data, that is, the application module subscribes the remote data to the data manager in the remote hardware device and caches the remote data in the data buffer in the hardware device where the application module is located, so that the application module There is no need to repeatedly access the data source of the remote data.
  • the data manager in the remote hardware device sends the changed data to the application module subscribing to the data to update the corresponding cached data to synchronize the cached data with the remote data.
  • FIG. 1 is a schematic structural diagram of a specific distributed data management system in which a prior art uses a subscription/notification mechanism to cache remote data and keep it synchronized with remote data.
  • the subscription management module 13 in the application module 1 in FIG. 1 sends subscription request information for subscribing to a certain type of data to the subscription management module 21 in the remote data manager 2 via the network, and the subscription management module 21 saves the received subscription request.
  • the subscription list module 22 In the subscription list module 22.
  • the notification module 23 extracts the application module 1 subscription data from the data storage according to the subscription request information in the subscription list module 22, and sends the subscription data to the subscription management module 13, and the subscription management module 13 saves the data in the data buffer 12 to facilitate the application module.
  • the cached data is accessed by the first data access module 11.
  • the notification module 23 detects the subscription list module 22, and searches for the subscriber of the data based on the subscription request information stored in the subscription list module 22, and sends the change to the subscriber. Data to update the subscriber's cached data.
  • the notification module 23 sends the changed data to the subscription management module 13, and the subscription tube
  • the data module 13 uses the data to update the corresponding data in the data buffer 12 to synchronize the cache data in the data buffer 12 with the data in the remote data memory 24.
  • the prior art caches remote data in the hardware device where the application module is located, the cache data is synchronized with the corresponding remote data.
  • the subscription is relatively rough, and the subscription is often simply subscribed to one class.
  • Data for example: Subscribe to the data of the "school” class in the data store.
  • the application module only needs to use part of the data in a type of data, such as only accessing the data of A elementary school in "school", for this type of data.
  • Other data that is not accessed such as data of other schools except A primary school, will continue to update the processing module through network communication when it changes; meanwhile, the application module in the prior art is used when subscribing to remote data.
  • the application module usually needs to use some data only for a certain period of time, and the data is no longer used after a period of time, but the application module cannot subscribe to the data in time and dynamically, and then cancels the subscription.
  • the remote data that is not needed by the application module changes.
  • the notification module is continuously updated through network communication, and the working system continues to process it. This transmission and processing of unnecessary data increases the network burden and reduces the overall performance of the working system.
  • Embodiments of the present invention provide a distributed data management system and a method for dynamically subscribing data thereof.
  • the system can implement accurate subscription of distributed data, and at the same time, can dynamically manage subscription data, and cancel the use in time.
  • the subscription of lower frequency data avoids frequent updates of data that is used less frequently, thereby effectively reducing the amount of data transmitted by the network transmission and the system, thereby improving the performance of the system.
  • a distributed data management system comprising: an application module (1) and a data manager (2); the application module (1) is provided with a first data access module (11) and a data buffer (12); The data manager (2) is provided with a subscription management module (21), a subscription list module (22), a notification module (23), and a data storage (24).
  • the application module (1) further includes:
  • the dynamic subscription management module (14) is physically or in communication with the data buffer (12), the data recording module (15), and the first data access module (11), respectively, for dynamically subscribing to remote data. And dynamically managing the remote data;
  • a data recording module configured to record the remote data usage information
  • the data manager (2) also has:
  • the data distribution module (25) is physically or communicatively coupled to the data storage (24) for reading and analyzing data in the data storage (24), and storing the analyzed description information of the data.
  • the dynamic subscription management module (14) is communicatively coupled to the subscription management module (21), the notification module (23), and the data distribution module (25), respectively.
  • the application module (1) is more than one.
  • the dynamic subscription management module (14) and the data recording module (15) are physically arranged.
  • a method for subscribing to remote data by using any one of claims 1, 2, 3 or 4, comprising: a subscriber constructing and transmitting subscription request information including a detailed subscription condition according to data required to be subscribed; receiving the subscription The device requesting information extracts data that needs to be subscribed according to the subscription request information and sends the data to the subscribing terminal;
  • the subscriber dynamically manages the acquired data and deletes data that is used less than a specified threshold in time.
  • the method specifically includes:
  • the subscribing unit queries the data description information according to the preset data subscription requirement, and determines the data to be subscribed according to the description information;
  • the device that receives the subscription request information reads the subscription request information and parses the data that needs to be subscribed, thereby extracting a subscription required The data, and send the data to the subscriber.
  • the data description information is obtained by classifying the data in the data memory (24) according to the data type and the data attribute.
  • the method further includes:
  • the updated data is classified and described according to data types and data attributes
  • the method further includes:
  • the method further includes:
  • the method for constructing subscription request information of the data that needs to be subscribed includes:
  • the subscription request information is constructed using basic elements, relational operators, and logical operators.
  • the subscription request information includes - a condition of subscribing data and subscription data; and/or,
  • the expiration date of the subscription data the data range of the subscription, and/or the amount of data allowed by the subscription.
  • the saved subscription request information includes:
  • the method for sending subscription request information includes:
  • the subscription request information is transmitted by using a Transmission Control Protocol/Internet Protocol, a Hypertext Transfer Protocol, or a Simple Object Access Protocol.
  • the method for transmitting data that needs to be subscribed includes:
  • the method for dynamically managing data specifically includes:
  • the number of uses of the record is compared with a predetermined threshold, and if the number of uses of the record is less than the threshold, the obtained data is deleted.
  • the method further includes:
  • the data publishing module is used to describe the data information in the data storage in detail, so that the application module can understand the detailed information of the remote data, so that the remote data can be accurately subscribed to avoid
  • the present invention also uses a dynamic subscription management module to monitor the use of the subscribed remote data, and timely cancels the subscription of the remotely used remote data, thereby avoiding the data.
  • the system updates it frequently when changes occur. Therefore, the invention can effectively reduce the amount of data transmitted by the network transmission and the system, reduce the network burden, and improve the performance of the system.
  • FIG. 1 is a schematic structural diagram of an apparatus of a distributed data management system of the prior art
  • FIG. 2 is a schematic structural diagram of an apparatus of an embodiment of a distributed data management system according to the present invention.
  • FIG. 3 is a flow chart of an embodiment of subscribing to remote data through the system of FIG. 2;
  • FIG. 4 is a flow chart of an embodiment of dynamically managing cached data by the system shown in FIG. 2;
  • FIG. 5 is a flow chart of an embodiment of updating cache data by the system shown in FIG. 2;
  • Figure 6 is a flow diagram of another embodiment of updating cached data by the system of Figure 2.
  • FIG. 2 is a schematic diagram showing a specific structure of a distributed data management system according to the present invention.
  • the system includes at least an application module 1 and a data manager 2.
  • application module 1 the system includes at least an application module 1 and a data manager 2.
  • data manager 2 the system includes at least an application module 1 and a data manager 2.
  • the application module 1 is provided with a first data access module 11 and a data buffer 12, and further, a dynamic subscription management module 14 and a data recording module 15 are further provided.
  • the dynamic subscription management module 14 is physically or in communication with the data buffer 12, the data recording module 15 and the first data access module 11, respectively, which can accurately subscribe to the data request information to the remote data manager 2 according to the requirements of the application module 1.
  • the subscription of the remote data with lower frequency can also be cancelled, thereby avoiding the processing of unnecessary remote data; the data recording module 15 assists the dynamic subscription management module 14 in dynamic subscription of the remote data for the subscription.
  • the usage of the data is recorded so that the dynamic subscription management module 14 can understand the usage of the subscribed data, and can be set separately or integrated with the dynamic subscription management module 14.
  • the data manager 2 is provided with a subscription management module 21, a subscription list module 22, a notification module 23, and a data storage 24.
  • a data for reading and analyzing the data in the data storage 24 is further provided, and the analysis result is saved.
  • the data distribution module 25 of the description information of the data is physically or in communication with the data storage 24.
  • the data distribution module 25 can describe the data in the data storage 24 in detail, so that the application module 1 can subscribe more accurately.
  • the dynamic subscription management module 14 is in communication with the subscription management module 21, the notification module 23, and the data distribution module 25, and acquires data information in the data storage 24 from the data distribution module 25 to the subscription management module. 21 sends the subscription request information and receives the update data sent by the notification module.
  • FIG. 3 shows a specific process of dynamically subscribing data through the system shown in FIG. 2, which performs the following steps:
  • Step 301 The dynamic subscription management module 14 queries the description information of the data in the data storage 24 saved in the data distribution module 25 according to the preset data subscription requirement, and determines the data to be subscribed according to the description information.
  • Table 1 shows a specific example of the description information saved by the query data publishing module 25. If the application module 1 queries the description information shown in the table and is interested in the Beijing A primary school and the C company, it can decide to subscribe to this. Relevant data of two units;
  • the subscription request information indicates that only the relevant data of the A primary school and the C company in the school are subscribed, and although only the data of the A primary school is used in the prior art, only the data of the subscription school class is simply indicated, or although only the data of the C company is used, only Compared with the data of the subscription company class, the subscription is more elaborate, which avoids increasing the amount of data transmitted by the network transmission and the system by subscribing to other unnecessary data such as B primary school and D company data, thereby reducing the network burden and improving the network. System performance.
  • an extension field may be added to the subscription request information, and the extended domain may be information indicating the validity period of the subscription data, the data range of the subscription, or the amount of data allowed by the subscription, or both. This information is used to describe the requirements of the application module 1 for the subscribed remote data, which makes the subscription more refined and flexible, and further avoids unnecessary data extraction and processing to improve system performance.
  • the dynamic subscription management module 14 may use a transmission protocol, such as: Transmission Control Protocol/Internet Protocol, TCP/IP to send subscription request information, or Hypertext Transfer Protocol (Hypertext Transfer Protocol). , HTTP) or Simple Object Access Protocol, SOAP, etc. to send subscription request information;
  • a transmission protocol such as: Transmission Control Protocol/Internet Protocol, TCP/IP to send subscription request information, or Hypertext Transfer Protocol (Hypertext Transfer Protocol). , HTTP) or Simple Object Access Protocol, SOAP, etc. to send subscription request information;
  • the format of the data recording module 15 can be seen in the following Table 2, which is shown in Table 2 as one of the data recording modules 15.
  • Step 304 The subscription management module 21 saves the subscription request information in the subscription list module 22;
  • Step 306 the notification module 23 searches for data related to the A primary school and the C company from the data storage 24, and then extracts the data, and then sends the data to the dynamic subscription management module 14; wherein, the extensible markup language Extensible Markup Language can be used. , XML to send the subscribed data;
  • Step 307 The dynamic subscription management module 14 saves the data related to the A primary school and the C company in the data buffer 12 through the first data access module '11.
  • the foregoing technical solution further includes: the data publishing module 25 reads and analyzes the data in the data storage 24, and performs according to the data type such as the school, the company, and the data attributes including the region, the specific location, the number, the name, the number of employees, and the like. Detailed classification descriptions, and save the description information.
  • the data publishing module 25 reads and analyzes the data in the data storage 24, and performs according to the data type such as the school, the company, and the data attributes including the region, the specific location, the number, the name, the number of employees, and the like. Detailed classification descriptions, and save the description information.
  • the data issuance module 25 re-reads the new data in the data memory 24, and according to the data type.
  • the data attribute is subjected to detailed classification description, and the description information in the data distribution module 25 is further updated according to the result of the classification description.
  • Table 1 shows a specific description information saved by the data distribution module 25.
  • the data distribution module 25 describes the data in the data storage 24 in detail, so that the application module 1 can subscribe to the required data more accurately, such as subscribing to the data of the Beijing Elementary School A, instead of In order to obtain the data of A elementary school as in the prior art, the school class data can be simply subscribed to subscribe to the unnecessary B elementary school data, thereby avoiding the network burden and the system work due to processing and transmitting unnecessary data. performance.
  • the subscription request information can simply indicate that the data of the class is subscribed to, and the "subscribed data” is the name of the class of the data.
  • the record of the "condition of subscribing data" of the subscription data in the data recording module 15 is also empty, which can reduce the capacity of the data recording module 15 and the subscription list module 22, improve the speed of processing the data recording module 15, and thereby improve the system work. performance.
  • FIG. 4 shows a specific process of dynamically managing cache data by the system shown in FIG. 2, which performs the following steps:
  • Step 401 When the first data access module 11 accesses the cached data in the data buffer 12, such as data related to the A primary school, the dynamic subscription management module 14 learns that the cached data is accessed by scanning the first data access module 11 to update the data. The number of times the accessed subscription data recorded in the recording module 15 is used, such as A primary school related data;
  • Step 402 The dynamic subscription management module 14 scans the data recording module 15 to determine whether the number of times of using the subscription data recorded in the data recording module 15 is greater than a predetermined threshold. If yes, the process proceeds to step 405; otherwise, the step is performed. 403. If the threshold of the number of use times is 100 times, it is determined whether the number of times of the A primary school data and the C company data recorded in the data recording module 15 is greater than 100 times, and the usage times of the A primary school data and the C company data are as follows. 2, because the number of times used by the A primary school data is greater than 100 times, the jump proceeds to step 405; and the number of times used by the C company data is less than 100 times, step 403 is performed;
  • the data recording module 15 may be scanned at any time according to the needs of the application module 1, or may be periodically, such as one hour, one day, one month, or one year, according to the setting of the application module 1.
  • the data recording module 15 is scanned, so that the data recording module 15 can clearly know which data in the subscribed data is used frequently and which data is used less frequently, so that the application module 1 decides whether to continue to subscribe to each data.
  • Step 403 The dynamic subscription management module 14 sends, to the subscription management module 21, subscription data whose number of unsubscribing usages is less than a threshold, such as C company's unsubscribe request information;
  • Step 404 The subscription management module 21 deletes the subscription data in the subscription list module 22 that is used less than the threshold, such as the subscription request information of the company C, according to the unsubscribe request information.
  • the notification module 23 continuously extracts and transmits the application module 1 It is also continuously processed, thereby reducing the amount of data transmitted by the network, reducing the network burden, and also reducing the amount of data that the data manager 2 extracts and transmits and the application module 1 processes, thereby improving system performance.
  • the application module needs it, it can pass the "first data access module” and remote data management in the application module.
  • the "second data access module” in the device accesses the remote data, because the frequency of use of the remote data is low, so that the network load can be reduced and the system performance can be improved with respect to the cache data that frequently updates the remote data.
  • Step 405 the end.
  • the number of times of using the subscription data recorded in the data recording module 15 can be restored to 0 between the step 403 and the step 404.
  • the dynamic subscription management module 14 periodically scans the data recording module 15, the reference is made.
  • the threshold criteria are the same, and there is no need to constantly change the threshold.
  • FIG. 5 shows a specific process of updating cache data by the system shown in FIG. 2, which performs the following steps:
  • Step 501 data storage 24, A primary school data and part of C company data are changed;
  • Step 502 The notification module 23 learns that the A primary school data and the partial data of the C company in the data storage 24 are changed, parses the subscription request information stored in the subscription list module 22, and determines whether the A primary school data and the C company data are applied. Module 1 subscribes, yes, performs step 503; otherwise, jumps to step 506; as described in steps 403-405 above, since the number of uses of the A primary school data is greater than a prescribed threshold, the subscription request information still exists in the subscription list module 22.
  • step 503 is performed; and since the number of times the C company data is used is less than the specified threshold, the subscription request information is deleted from the subscription list module 22, and is no longer subscribed by the application module 1, then the jump execution is performed.
  • step 506 the number of times the C company data is used is less than the specified threshold, the subscription request information is deleted from the subscription list module 22, and is no longer subscribed by the application module 1, then the jump execution is performed.
  • Step 503 The notification module 23 sends the changed data in the A primary school data to the dynamic subscription management module 14; wherein, a formatted message (for example, Extensible Markup Language, XML) may be used to send Subscribed data;
  • a formatted message for example, Extensible Markup Language, XML
  • Step 504 the dynamic subscription management module 14 sends the changed data in the A primary school data to the first data access module 11;
  • Step 505 The first data access module 11 updates the corresponding data in the data buffer 12 by using the changed data in the primary school data;
  • the extended domain information may also be added to the subscription request information.
  • the notification module 23 applies to the application module 1.
  • caching data updates you also need to consider the information requirements of the extended domain in the subscription request information, for example, When the subscription management module 14 constructs the subscription information of the subscription A primary school, an extension domain indicating that the subscription information is valid for October 1, 2006 is added, and the notification module 23 updates the cached data of the A primary school in the application module 1.
  • FIG. 6 which performs the following steps - step 601, data storage 24 in A primary school Data and partial data of Company C were changed;
  • Step 602 The notification module 23 learns the A primary school data in the data storage 24 and the partial data of the C company, parses the subscription request information stored in the subscription list module 22, and determines whether the A primary school data and the C company data are subscribed. Go to step 603; otherwise, jump to step 607; as described in steps 403-405 above, since the number of uses of the A primary school data is greater than a prescribed threshold, the subscription request information still exists in the subscription list module 22 and is still subscribed. Then, step 603 is performed; and if the number of times the C company data is used is less than the specified threshold, and the subscription request information is deleted from the subscription list module 22, that is, no longer subscribed, the process proceeds to step 608;
  • Step 603 Determine an application module that subscribes to the A primary school data; the application module that subscribes to the A primary school data may be the application module 1 or other application modules, but the principle of updating the cached data is the same. For convenience, it is assumed to subscribe to the primary school data. For application module 1; if multiple application modules subscribe to the data of A primary school at the same time, the following process is applicable to each of the multiple application modules.
  • Step 604 the notification module 23 checks the validity period of the subscription data of the A primary school recorded in the subscription list module 22, and determines whether the current time is less than the time indicated by the validity period. If it is smaller, it indicates that the application module 1 still subscribes to the data of the A primary school, and then executes. Step 605; Otherwise, indicating that the subscription to the A primary school data has expired, no longer need to subscribe to the data, jump to step 608;
  • Step 605 The notification module 23 sends the changed data in the A primary school data to the dynamic subscription management module.
  • a formatted message eg, Extensible Markup Language, XML
  • XML Extensible Markup Language
  • Step 606 the dynamic subscription management module 14 sends the changed data in the A primary school data to the first data access module 11;
  • Step 607 The first data access module 11 updates the corresponding data in the data buffer 12 by using the changed data in the primary school data;
  • the notification module 23 compares the subscribed data. When extracting, if the capacity of the data that meets the requirements is less than 2M, select all the data that meets the requirements. Otherwise, select only the 2M data in the data that meets the requirements; correspondingly, when the data is updated later, the notification module 23, it is necessary to check whether the changed data is greater than 2M, and if it is less than 2M, send the changed data that meets the requirements to the dynamic subscription management module 14, otherwise, only the 2M eligible change is sent to the dynamic subscription management module 291. data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Description

分布式数据管理系统及其动态订阅数据的方法
技术领域
本发明涉及一种数据同步的技术,特^涉及一种分布式数据管理系统及动态订阅数 据的方法。
发明背景
由于软件工作的复杂性, 工作系统往往由多个处于不同场所的设备构成, 在该系统 中数据往往不是集中在一处, 而是分布于不同场所的各个设备中, 这些处于各个场所的 数据称为分布式数据。 由于软件工作的需要, 工作系统中的应用模块经常需要访问这些 分布式数据, 若应用模块和需要访问的数据不在同一设备中, 应用模块便需要通过网络 通讯来访问该远程数据, 这样就影响了应用模块读取数据的效率, 也增加了网络负担, 影响了工作系统的性能。
为了提高读取数据的效率和减轻网络负担, 现有技术中, 如果应用模块需要频繁使 用某些远程数据, 则订阅该远程数据并在应用模块所在的硬件设备中缓存这些远程数 据,然后通过订阅 /通知机制使缓存数据和远程数据同步, 即应用模块向远程硬件设备中 的数据管理器订阅这些远程数据并将这些远程数据缓存在应用模块所在的硬件设备中 的数据缓存器中, 这样应用模块就不需要反复访问该远程数据的数据源了。 当被订阅的 远程数据发生变化时, 远程硬件设备中的数据管理器便向订阅该数据的应用模块发送变 化了的数据以更新相应的缓存数据以使缓存数据和远程数据同步。
通过这种方法, 应用模块访问当地的缓存数据便相当于访问了远程数据, 这样可相 对减轻网络负担, 提高软件的工作系统的性能。 参见图 1, 图 1所示为现有技术釆用订 阅 /通知机制缓存远程数据并使其和远程数据保持同步的一具体的分布式数据管理系统 的结构示意图。图 1中应用模块 1中的订阅管理模块 13通过网络, 向远程数据管理器 2 中的订阅管理模块 21发送订阅某一类数据的订阅请求信息, 该订阅管理模块 21将接收 到的订阅请求保存在订阅列表模块 22中。 通知模块 23根据订阅列表模块 22中的订阅 请求信息从数据存储器中提取应用模块 1订阅数据,发送给订阅管理模块 13,订阅管理 模块 13将该数据保存在数据缓存器 12中,以便于应用模块 1通过第一数据访问模块 11 访问该缓存数据。 当数据存储器 24中被订阅的数据发生变化时, 通知模块 23就检测订 阅列表模块 22,并根据订阅列表模块 22中保存的订阅请求信息,査找该数据的订阅者, 并向订阅者发送变化了的数据以更新订阅者的缓存数据。 例如, 若应用模块 1订阅了发 生变化的该远程数据, 则通知模块 23便向订阅管理模块 13发送变化了的数据, 订阅管 理模块 13利用该数据更新数据缓存器 12中的相应数据, 实现数据缓存器 12中的缓存 数据和远程数据存储器 24中的数据的同步。
如上所述,现有技术虽然在应用模块所在地硬件设备中缓存了远程数据实现了缓存 数据与相应远程数据的同步, 但是, 应用模块订阅远程数据时的订阅较为粗略, 往往只 简单地订阅一类数据, 例如: 订阅数据存储器中 "学校 "类的数据, 而实际应用中, 应 用模块只需使用一类数据中的部分数据如只需要访问 "学校"中 A小学的数据, 对于该 类数据中的不被访问的其它数据如除 A小学外的其它学校的数据,在其发生变化时通知 模块依然通过网络通讯不断对其更新处理; 同时, 现有技术中应用模块订阅远程数据时 釆用的是静态的订阅方式, 即应用模块通常只在某一段时间内需要使用某些数据, 而过 一段时间便不再使用这些数据, 但应用模块订阅该数据后不能及时、 动态地取消对其订 阅, 这样造成的后果是当应用模块不需要的远程数据发生变化时, 通知模块依然不断地 通过网络通讯对其更新, 工作系统依然不断对其处理, 这种对不必要数据的传输与处理 增加了网络负担, 降低了工作系统的整体性能。
发明内容
本发明的实施例提供一种分布式数据管理系统及其动态订阅数据的方法,利用该系 统可实现对分布式数据的精确订阅, 同时, 可实现对订阅的数据的动态管理, 及时取消 对使用频率较低的数据的订阅, 避免了对使用频率较低的数据的频繁更新, 从而有效减 小了网络传输和系统处理的数据量, 从而提高了系统的性能。
本发明是通过以下技术方案实现的:
一种分布式数据管理系统,. 包括: 应用模块 (1 ) 和数据管理器 (2 ) ; 所述应用模 块 (1 ) 中设有第一数据访问模块 (11 ) 和数据缓存器 (12 ) ; 所述数据管理器 (2 ) 中 设有订阅管理模块 (21 )、 订阅列表模块 (22)、 通知模块 (23 ) 和数据存储器 (24), 所述应用模块 (1 ) 中还设有:
动态订阅管理模块 (14), 分别与所述数据缓存器 (12)、 所述数据记录模块 (15 ) 和所述第一数据访问模块(11 )物理连接或通信连接, 用于动态订阅远程数据并对所述 远程数据进行动态管理;
数据记录模块 (15 ), 用于记录所述远程数据使用信息;
所述数据管理器 (2) 中还设有:
数据发布模块 (25 ), 与所述数据存储器 (24) 物理连接或通信连接, 用于读取并 分析所述数据存储器 (24) 中数据, 并保存分析所得的对该数据的描述信息。 所述动态订阅管理模块 (14) 分别与所述订阅管理模块 (21 )、 所述通知模块 (23 ) 和所述数据发布模块 (25) 通信连接。
所述应用模块 (1 ) 为一个以上。
所述动态订阅管理模块 (14) 和所述数据记录模块 (15 ) —体设置。
一种利用权利要求 1、 2、 3或 4所述任一系统订阅远程数据的方法, 包括: 订阅端根据需要订阅的数据, 构造并发送包括详细订阅条件的订阅请求信息; 接收到所述订阅请求信息的装置根据所述订阅请求信息提取需要订阅的数据发送 给订阅端;
订阅端对获得的数据进行动态管理, 及时删除使用次数少于规定阈值的数据。 所述方法具体包括:
订阅端根据预先设置的数据订阅要求, 查询数据描述信息, 并根据该描述信息确定 需要订阅的数据;
根据需要订阅的数据构造、 保存并发送需要订阅的所述数据的订阅请求信息; 接收所述订阅请求信息的装置读取所述订阅请求信息并进行解析,获知需要订阅的 数据, 从而提取需要订阅的所述数据, 并将该数据发送给订阅端。
所述数据描述信息是按照数据类型及数据属性对数据存储器(24) 中的数据进行分 类描述所获得。
当数据存储器 (24) 中的数据变更, 所述方法进一步包括:
对更新后的数据按照数据类型及数据属性进行分类描述;
判断所述数据是否被订阅, 若被订阅, 则将变更后的数据发送给订阅端; 否则, 不 发送此数据。
确定所述变更的数据被订阅后, 所述方法进一步包括:
判断目前时刻是否小于订阅数据的有效期表示的时刻, 若小于, 则将变更后的数据 发送给订阅端, 否则不发送此数据。
确定所述变更的数据被订阅后, 所述方法进一步包括:
判断发生变更的数据大小是否小于订阅数据的数据量, 若小于, 则将变更后的数据 发送给订阅端, 否则不发送此数据。
所述构造需要订阅的所述数据的订阅请求信息的方法包括:
采用基本元素及关系运算符构造所述订阅请求信息; 或,
采用基本元素、 关系运算符及逻辑运算符构造所述订阅请求信息。 所述订阅请求信息中包括- 订阅的数据和订阅数据的条件; 和 /或,
订阅数据的有效期、 订阅的数据范围和 /或订阅允许的数据量信息。
所述保存的订阅请求信息包括:
订阅的数据和 /或订阅数据的条件。
所述发送订阅请求信息的方法包括:
釆用传输控制协议 /网间协议、超文本传输协议或简单对象访问协议发送所述订阅请 求信息。
所述发送需要订阅的数据的方法包括:
釆用可扩展的标记语言发送所述需要订阅的数据。
所述的动态管理数据的方法具体包括:
记录所获得数据被使用的次数;
将所述记录的使用次数与预先规定的阈值进行比较, 若所述记录的使用次数小于所 述阈值, 则删除所述获得的数据。
删除所述获得数据操作前, 所述方法进一步包括:
将所述各订阅数据的使用次数值均恢复为 0。
由上述本发明提供的技术方案可以看出,本发明釆用一数据发布模块来详细描述数 据存储器中的数据信息, 使得应用模块可以了解远程数据的详细信息, 从而可精确的订 阅远程数据, 避免了对不必要的数据的订阅; 同时, 本发明还釆用一动态订阅管理模块 监控对订阅的远程数据的使用情况, 及时取消对使用频率较低的远程数据的订阅, 从而 避免了当该数据发生变化时系统对它的频繁更新。 因此, 釆用本发明可有效减小网络传 输和系统处理的数据量, 减轻了网络负担, 提高了系统的工作性能。
附图简要说明
图 1为现有技术分布式数据管理系统的装置结构示意图;
图 2为本发明分布式数据管理系统的一种实施例装置结构示意图;
图 3为通过图 2所示系统订阅远程数据的一种实施例流程图;
图 4为通过图 2所示系统动态管理缓存数据的一种实施例流程图;
图 5为通过图 2所示系统更新缓存数据的一种实施例流程图;
图 6为通过图 2所示系统更新缓存数据的另一种实施例流程图。
实施本发明的方式 参见图 2, 图 2所示为本发明分布式数据管理系统的一具体结构示意图, 由图 2可 知, 该系统至少包括一应用模块 1和数据管理器 2。 复杂的情况下, 该系统中应用模块 和数据管理器都可以有多个。
其中, 应用模块 1中设有第一数据访问模块 11和数据缓存器 12, 另外, 还进一步 设有一动态订阅管理模块 14和一数据记录模块 15。动态订阅管理模块 14分别与数据缓 存器 12、数据记录模块 15和第一数据访问模块 11物理连接或通信连接, 它可根据应用 模块 1的需求向远程的数据管理器 2精确的订阅数据请求信息,还可取消对使用频率较 低的远程数据的订阅, 从而避免了对不必要的远程数据的处理; 数据记录模块 15则辅 助动态订阅管理模块 14对远程数据的动态订阅, 用于对订阅的数据的使用情况进行记 录, 以便使动态订阅管理模块 14可以了解对订阅的数据的使用情况, 可以单独设置, 也可以与动态订阅管理模块 14为一体设置。
数据管理器 2中设有订阅管理模块 21、 订阅列表模块 22、 通知模块 23和数据存储 器 24, 另外, 还进一步设有一用于读取并分析所述数据存储器 24中数据, 并保存分析 所得的对该数据的描述信息的数据发布模块 25,与数据存储器 24物理连接或通信连接, 该数据发布模块 25可以对数据存储器 24中的数据进行详细的描述, 从而使应用模块 1 可以更精确的订阅需要的数据, 以避免因处理不必要的数据降低系统的工作性能。 在该 分布式数据管理系统中, 动态订阅管理模块 14分别与订阅管理模块 21、 通知模块 23 和数据发布模块 25通信连接, 从数据发布模块 25获取数据存储器 24中的数据信息, 向订阅管理模块 21发送订阅请求信息和接收通知模块发送的更新数据。
参见图 3, 图 3所示为本发明通过图 2所示系统动态订阅数据的一具体流程, 其执 行以下步骤:
步骤 301、动态订阅管理模块 14根据预先设置的数据订阅要求,查询数据发布模块 25中保存的对数据存储器 24中的数据的描述信息, 并根据该描述信息确定需要订阅的 数据。 下表 1所示为查询数据发布模块 25保存的描述信息的一个具体实例, 假如应用 模块 1查询该表所示的描述信息后对北京市 A小学和 C公司比较感兴趣, 便可决定订 阅这两个单位的相关数据;
所在区 编号 名称 位置 人数 北京 10001 A小学 A街道 400 北京 10002 B小学 B街道 200 北京 20003 C ^司 C街道 280 天津 30004 D公司 D街道 320 步骤 302、 动态订阅管理模块 14根据应用模块 1的订阅要求, 构造订阅请求信息; 该订阅请求信息可以由一个表达式来表示, 该表达式可以由基本元素包括数据类型、 数 据属性和数据属性的值和关系运算符=、 >、 <、 >=或<=定义, 也可以进一步结合逻辑运 算符 and或 or字段定义。 根据步骤 301中应用模块 1决定订阅 A小学和 C公司相关数 据的订阅要求, 构造如 "所在区=北京 and人数 >300 ", 或 "位置 = 街道", 及 "人数 = 280 "或 "位置 =C街道"所示的订阅请求信息;
该订阅请求信息指明只订阅学校中 A小学和 C公司的相关数据, 与现有技术中虽 然只使用 A小学的数据但只简单指明订阅学校类的数据、 或虽然只使用 C公司的数据 但只简单指明订阅公司类的数据相比, 订阅更加精细, 避免了因订阅其它不必要的数据 如 B小学和 D公司的数据而增加网络传输和系统处理的数据量, 从而减轻了网络负担, 提高了系统性能。
动态订阅管理模块 14构造订阅请求信息时, 可以在该订阅请求信息中增加一个扩 展域, 该扩展域可以是表明订阅数据的有效期、 订阅的数据范围或订阅允许的数据量等 信息, 也可以同时表明这些信息, 用于说明应用模块 1对订阅的远程数据的要求, 使得 订阅更加精细和灵活, 可更进一步避免不必要的数据提取与处理从而提高系统性能。
步骤 303、动态订阅管理模块 14根据订阅请求信息, 将订阅的相关信息包括"订阅 的数据"和 "订阅数据的条件"保存在数据记录模块 15中, 在该数据记录模块 15中每 一类订阅的数据后都设有"使用次数"以显示应用模块 1对订阅的各类数据的使用情况; 同时, 还将 "所在区=北京 and人数 >300"及 "位置 街道"订阅请求信息发送给订阅 管理模块 21 ;
其中, 动态订阅管理模块 14可以采用一种传输协议, 例如: 传输控制协议 /网间协 议 Transmission Control Protocol/Internet Protocol, TCP/IP来发送订阅请求信息, 也可以 采用超文本传输协议 (Hypertext Transfer Protocol, HTTP)或简单对象访问协议 Simple Object Access Protocol, SOAP等来发送订阅请求信息;
数据记录模块 15的格式可参见如下表 2, 该表 2所示即为数据记录模块 15的一个 实例 :
表 2
Figure imgf000009_0001
步骤 304、 订阅管理模块 21将该订阅请求信息保存在订阅列表模块 22中;
步骤 305、 通知模块 23从订阅列表模块 22中读取 "所在区=北京 and人数 >300" 和 "人数 = 280"订阅请求信息并通过对其解析, 获知动态订阅管理模块要订阅的是 A 小学和 C公司的相关数据;
步骤 306、通知模块 23从数据存储器 24中查找与 A小学和 C公司相关的数据并进 行提取, 然后将该数据发送给动态订阅管理模块 14; 其中, 可以釆用可扩展的标记语言 Extensible Markup Language, XML来发送订阅的数据;
步骤 307、动态订阅管理模块 14通过第一数据访问模块' 11将与 A小学和 C公司相 关的数据保存在数据缓存器 12中。
其中, 上述技术方案还包括- 数据发布模块 25读取、 分析数据存储器 24中的数据, 并按照数据类型如学校、 公 司等及数据属性包括所在地区、 具体位置、 编号、 名称、 员工人数等进行详细的分类描 述, 并将描述信息保存下来。 当数据存储器 24中的数据的结构发生了变化、 数据被更 新、 或在数据存储器 24中增加了新的数据时, 数据发布模块 25便重新读取数据存储器 24中的新数据,并按照数据类型及数据属性进行详细的分类描述,进一步根据该分类描 述的结果更新数据发布模块 25中的描述信息。
表 1所示即为数据发布模块 25保存的一个具体描述信息。 由表 1可以看出, 数据 发布模块 25对数据存储器 24中的数据进行了详细的描述, 以便于应用模块 1可以更精 确的订阅需要的数据, 如可以订阅北京地区 A小学的数据, 而不是象现有技术中那样为 了获取 A小学的数据只能简单的订阅学校类数据从而订阅了不必要的 B小学的数据, 避免了因处理和传输不必要的数据而增加网络负担、 降低系统的工作性能。
当然, 若应用模块 1需要订阅完整的一类数据如学校类数据时, 其订阅请求信息可 以只简单的指明订阅该类数据学校类数据,此时 "订阅的数据"为该类数据的名称学校, 而"订阅数据的条件" "所在区 -北京 and人数 >300", 或"位置 =A街道"为空, 相应的, 数据记录模块 15 中该订阅数据的 "订阅数据的条件" 的记录也为空, 这样可以减少数 据记录模块 15和订阅列表模块 22的容量, 提高处理数据记录模块 15的速度, 从而提 高系统的工作性能。
参见图 4, 图 4所示为本发明通过图 2所示系统动态管理缓存数据的一具体流程, 其执行以下步骤:
步骤 401、 当第一数据访问模块 11访问数据缓存器 12中的缓存数据如与 A小学相 关的数据时,动态订阅管理模块 14通过扫描第一数据访问模块 11获知缓存数据被访问, 便更新数据记录模块 15中记录的被访问订阅数据如 A小学相关数据的使用次数;
步骤 402、 动态订阅管理模块 14扫描数据记录模块 15, 分别判断该数据记录模块 15 中记录的各订阅数据的使用次数是否大于事先规定的阈值, 若大于, 跳转执行步骤 405; 否则, 执行步骤 403 ; 若规定使用次数阈值为 100次, 则分别判断该数据记录模块 15中记录的 A小学数据和 C公司数据的使用次数是否大于 100次, 若 A小学数据和 C 公司数据的使用次数如表 2所示, 因 A小学数据的所用次数大于 100次,跳转执行步骤 405; 而 C公司数据的所用次数小于 100次, 则执行步骤 403 ;
在该步骤中, 动态订阅管理模块 14扫描数据记录模块 15时, 可以按照应用模块 1 的需要随时扫描数据记录模块 15, 也可以根据应用模块 1的设置定期如一小时、 一天、 一个月或一年等扫描数据记录模块 15, 这样数据记录模块 15就可清楚地了解订阅的数 据中哪些数据的使用频率高, 而哪些数据的使用频率低, 以便于应用模块 1决定是否继 续订阅各数据。 - 步骤 403、 动态订阅管理模块 14向订阅管理模块 21发送取消订阅使用次数小于阈 值的订阅数据如 C公司的取消订阅请求信息;
步骤 404、 订阅管理模块 21根据取消订阅请求信息删除订阅列表模块 22中使用次 数小于阈值的订阅数据如 C公司的订阅请求信息;
因为某些缓存数据的使用频率低即在一段时间内被使用的次数较少, 而取消对它的 订阅。 如 C公司数据的使用频率较低, 取消对 C公司数据的订阅, 便可避免以后远程 数据管理器 2中该数据频繁发生变化时, 通知模块 23还不断地对其提取和发送、 应用 模块 1还不断地对其进行处理, 从而减少了网络传输的数据量, 减轻了网络负担, 同时 也减少了数据管理器 2提取和发送以及应用模块 1处理的数据量,从而提高了系统性能。 当然, 在应用模块需要时, 可通过该应用模块中的"第一数据访问模块"和远程数据管理 器中的 "第二数据访问模块 "访问该远程数据, 因为对该远程数据的使用频率较低, 因此 相对于频繁更新该远程数据的缓存数据而言, 可减轻网络负担, 提高系统性能。
步骤 405、 结束。
其中, 在步骤 403与步骤 404之间还可以将数据记录模块 15中记录的各订阅数据 的使用次数均恢复为 0,这样,每次动态订阅管理模块 14定期扫描数据记录模块 15时, 参照的阈值标准相同, 而不需要不断的改变阈值。
由于软件工作系统中各设备之间的关联性,应用模块可通过网络通讯更新远程数据 管理器中的数据, 当数据管理器中的数据被更新后, 为了保证整个软件工作系统中数据 的一致性, 就需要对各应用模块中缓存的远程数据进行更新。 参见图 5, 图 5所示为本 发明通过图 2所示系统更新缓存数据的一具体流程, 其执行以下步骤:
步骤 501、 数据存储器 24中 A小学数据和 C公司的部分数据被更改;
步骤 502、通知模块 23获知数据存储器 24中 A小学数据和 C公司的部分数据被更 改, 对订阅列表模块 22中存储的订阅请求信息进行解析, 并判断 A小学数据和 C公司 的数据是否被应用模块 1订阅, 是, 执行步骤 503 ; 否则, 跳转执行步骤 506; 如上述 步骤 403〜405所述, 因 A小学数据的使用次数大于规定阈值, 其订阅请求信息仍存在 于订阅列表模块 22中即仍被应用模块 1订阅, 则执行步骤 503 ; 而因 C公司数据的使 用次数小于规定阈值,其订阅请求信息被从订阅列表模块 22中删除即不再被应用模块 1 订阅, 则跳转执行步骤 506;
步骤 503、 通知模块 23将 A小学数据中发生变化的数据发送给动态订阅管理模块 14; 其中, 可以釆用一种有格式的消息 (例如: 可扩展的标记语言 Extensible Markup Language, XML) 来发送订阅的数据;
步骤 504、 动态订阅管理模块 14将 A小学数据中发生变化的数据发送给第一数据 访问模块 11 ;
步骤 505、 第一数据访问模块 11利用 A小学数据中发生变化的数据更新数据缓存 器 12中的相应数据; '
步骤 506、 结束。
应用模块 1订阅远程数据时在订阅请求信息时,还可以在该订阅请求信息中增加扩 展域信息, 此时, 当应用模块 1订阅的远程数据发生了变化, 通知模块 23对应用模块 1 中的缓存数据更新时, 还需要考虑订阅请求信息中的扩展域的信息要求, 例如, 假设动 态订阅管理模块 14构造订阅 A小学的请求信息时, 增加了一个表示订阅该信息的有效 期为 2006年 10月 1 日的扩展域, 则通知模块 23对应用模块 1中的 A小学的缓存数据 更新前, 还应判断更新时刻是否在 2006年 10月 1 日之前, 通过本发明图 2所示系统对 其更新的一具体流程参见图 6, 其执行以下步骤- 步骤 601、 数据存储器 24中 A小学数据和 C公司的部分数据被更改;
步骤 602、通知模块 23获知数据存储器 24中 A小学数据和 C公司的部分数据, 对 订阅列表模块 22中存储的订阅请求信息进行解析, 并判断 A小学数据和 C公司的数据 是否被订阅, 是, 执行步骤 603 ; 否则, 跳转执行步骤 607; 如上述步骤 403〜405所述, 因 A小学数据的使用次数大于规定阈值, 其订阅请求信息仍存在于订阅列表模块 22中 即仍被订阅, 则执行步骤 603 ; 而因 C公司数据的使用次数小于规定阈值, 其订阅请求 信息被从订阅列表模块 22中删除即不再被订阅, 则跳转执行步骤 608;
步骤 603、确定订阅 A小学数据的应用模块; 订阅 A小学数据的应用模块可以是应 用模块 1, 也可以是其它的应用模块, 但更新缓存数据的原理相同, 为方便起见, 假设 订阅 A小学数据的为应用模块 1 ; 若有多个应用模块同时订阅了 A小学的数据,则以下 流程对这多个应用模块中的每个应用模块均适用。
步骤 604、通知模块 23检查订阅列表模块 22中记录的 A小学的订阅数据的有效期, 判断目前时刻是否小于该有效期表示的时刻,若小于,表示应用模块 1 目前仍订阅 A小 学的数据, 则执行步骤 605; 否则, 表示订阅 A小学数据的期限已过, 不再需要订阅该 数据, 跳转执行步骤 608;
步骤 605、 通知模块 23将 A小学数据中发生变化的数据发送给动态订阅管理模块
14; 其中, 可以采用一种格式化的消息 (例如: 可扩展的标记语言 Extensible Markup Language, XML) 来发送订阅的数据;
步骤 606、 动态订阅管理模块 14将 A小学数据中发生变化的数据发送给第一数据 访问模块 11 ;
步骤 607、 第一数据访问模块 11利用 A小学数据中发生变化的数据更新数据缓存 器 12中的相应数据;
步骤 608、 结束。
当应用模块 1向远程数据管理器 2发送的订阅请求信息中增加的扩展域信息为表明 订阅的数据大小的容量如"每次订阅允许的数据量为 2M"时,通知模块 23对订阅的数据 进行提取时, 若符合要求的数据的容量小于 2M, 则选择出符合要求的全部数据, 否则, 只选择符合要求的数据中 2M的数据; 相应的, 在以后对该数据进行更新时, 通知模块 23需要先检査变化了的数据是否大于 2M, 若小于 2M, 则向动态订阅管理模块 14发送 符合要求的变化了的数据, 否则, 只向动态订阅管理模块 291发送 2M符合要求的变化 了的数据。
最后所应说明的是, 以上实施例仅用以说明本发明的技术方案而非限制, 尽管参照 较佳实施例对本发明进行了详细说明, 本领域的普通技术人员应当理解, 可以对本发明 的技术方案进行修改或者等同替换, 而不脱离本发明技术方案的精神和范围。

Claims

权利要求
1、 一种分布式数据管理系统, 包括: 应用模块 (1 ) 和数据管理器(2); 所述应用 模块 (1 ) 中设有第一数据访问模块 (11 ) 和数据缓存器 (12) ; 所述数据管理器 (2) 中设有订阅管理模块 (21 )、 订阅列表模块(22)、 通知模块 (23 ) 和数据存储器 (24), 其特征在于:
所述应用模块 (1 ) 中还设有:
动态订阅管理模块 (14), 分别与所述数据缓存器 (12)、 所述数据记录模块 (15 ) 和所述第一数据访问模块(11 )物理连接或通信连接, 用于动态订阅远程数据并对所述 远程数据进行动态管理;
数据记录模块 (15 ), 用于记录所述远程数据使用信息;
所述数据管理器 (2) 中还设有:
数据发布模块 (25 ), 与所述数据存储器 (24) 物理连接或通信连接, 用于读取并 分析所述数据存储器 (24) 中数据, 并保存分析所得的对该数据的描述信息。
2、 根据权利要求 1所述的分布式数据管理系统, 其特征在于:
所述动态订阅管理模块 (14) 分别与所述订阅管理模块 (21 )、 所述通知模块 (23 ) 和所述数据发布模块 (25) 通信连接。
3、 根据权利要求 1所述的分布式数据管理系统, 其特征在于: 所述应用模块 (1 ) 为一个以上。
4、 根据权利要求 1 所述的分布式数据管理系统, 其特征在于: 所述动态订阅管理 模块 (14) 和所述数据记录模块 (15) —体设置。
5、 一种利用权利要求 1、 2、 3或 4所述任一系统订阅远程数据的方法, 其特征在 于, 包括:
订阅端根据需要订阅的数据, 构造并发送包括详细订阅条件的订阅请求信息; 接收到所述订阅请求信息的装置根据所述订阅请求信息提取需要订阅的数据发送 给订阅端; .
订阅端对获得的数据进行动态管理, 及时删除使用次数少于规定阈值的数据。
6、 根据权利要求 5所述的订阅远程数据的方法, 其特征在于, 所述方法具体包括: 订阅端根据预先设置的数据订阅要求, 查询数据描述信息, 并根据该描述信息确定 需要订阅的数据;
根据需要订阅的数据构造、 保存并发送需要订阅的所述数据的订阅请求信息; 接收所述订阅请求信息的装置读取所述订阅请求信息并进行解析,获知需要订阅的 数据, 从而提取需要订阅的所述数据, 并将该数据发送给订阅端。
7、 根据权利要求 6所述的订阅远程数据的方法, 其特征在于: 所述数据描述信息 是按照数据类型及数据属性对数据存储器 '(24) 中的数据进行分类描述所获得。
8、 根据权利要求 6或 7所述的订阅远程数据的方法, 其特征在于: 当数据存储器
(24) 中的数据变更, 所述方法进一步包括:
对更新后的数据按照数据类型及数据属性进行分类描述;
判断所述数据是否被订阅, 若被订阅, 则将变更后的数据发送给订阅端; 否则, 不 发送此数据。
9、 根据权利要求 8所述的订阅远程数据的方法, 其特征在于: 确定所述变更的数 据被订阅后, 所述方法进一步包括- 判断目前时刻是否小于订阅数据的有效期表示的时亥 I」, 若小于, 则将变更后的数据 发送给订阅端, 否则不发送此数据。
10、 根据权利要求 8所述的订阅远程数据的方法, 其特征在于: 确定所述变更的数 据被订阅后, 所述方法进一步包括:
判断发生变更的数据大小是否小于订阅数据的数据量, 若小于, 则将变更后的数据 发送给订阅端, 否则不发送此数据。
11、 根据权利要求 6所述的订阅远程数据的方法, 其特征在于: 所述构造需要订阅 的所述数据的订阅请求信息的方法包括:
采用基本元素及关系运算符构造所述订阅请求信息; 或,
采用基本元素、 关系运算符及逻辑运算符构造所述订阅请求信息。
12、 根据权利要求 6所述的订阅远程数据的方法, 其特征在于: 所述订阅请求信息 中包括:
订阅的数据和订阅数据的条件; 和 /或,
订阅数据的有效期、 订阅的数据范围和 /或订阅允许的数据量信息。
13、 根据权利要求 12所述的订阅远程数据的方法, 其特征在于: 所述保存的订阅 请求信息包括:
订阅的数据和 /或订阅数据的条件。
14、 根据权利要求 6所述的订阅远程数据的方法, 其特征在于: 所述发送订阅请求 信息的方法包括: 采用传输控制协议 /网间协议、超文本传输协议或简单对象访问协议发送所述订阅请 求信息。
15、 根据权利要求 6所述的订阅远程数据的方法, 其特征在于: 所述发送需要订阅 的数据的方法包括:
采用可扩展的标记语言发送所述需要订阅的数据。
16、 如权利要求 5所述的订阅远程数据的方法, 其特征在于: 所述的动态管理数据 的方法具体包括- 记录所获得数据被使用的次数;
将所述记录的使用次数与预先规定的阈值进行比较,若所述记录的使用次数小于所 述阈值, 则删除所述获得的数据。
17、 根据权利要求 16所述的动态管理远程数据的方法, 其特征在于: 删除所述获 得数据操作前, 所述方法进一步包括:
将所述各订阅数据的使用次数值均恢复为 0。
PCT/CN2006/002601 2005-12-22 2006-09-30 Systeme de gestion de donnees distribuee et procede d'abonnement dynamique aux donnees WO2007071142A1 (fr)

Priority Applications (4)

Application Number Priority Date Filing Date Title
DE602006021299T DE602006021299D1 (de) 2005-12-22 2006-09-30 Verteiltes datenverwaltungs system und verfahren für datendynamisches abonnieren
CN200680012181.3A CN101160797B (zh) 2005-12-22 2006-09-30 动态订阅数据的方法
EP06791187A EP1890425B1 (en) 2005-12-22 2006-09-30 A distributed data management system and a method for data dynamic subscribing
AT06791187T ATE505874T1 (de) 2005-12-22 2006-09-30 Verteiltes datenverwaltungs system und verfahren für datendynamisches abonnieren

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510121233.8 2005-12-22
CN200510121233.8A CN100512118C (zh) 2005-12-22 2005-12-22 分布式数据管理系统及其动态订阅数据的方法

Publications (1)

Publication Number Publication Date
WO2007071142A1 true WO2007071142A1 (fr) 2007-06-28

Family

ID=37425725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002601 WO2007071142A1 (fr) 2005-12-22 2006-09-30 Systeme de gestion de donnees distribuee et procede d'abonnement dynamique aux donnees

Country Status (5)

Country Link
EP (1) EP1890425B1 (zh)
CN (2) CN100512118C (zh)
AT (1) ATE505874T1 (zh)
DE (1) DE602006021299D1 (zh)
WO (1) WO2007071142A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383582A (zh) * 2020-10-09 2021-02-19 爱普(福建)科技有限公司 一种边缘层实时数据的管理方法和系统
CN113934793A (zh) * 2021-09-07 2022-01-14 华数传媒网络有限公司 一种运营系统的分布式数据管理系统和方法

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335748A (zh) * 2007-06-28 2008-12-31 华为技术有限公司 发布、转发和获知业务信息的方法、用户终端及网络设备
CN101562578B (zh) * 2008-04-16 2012-02-01 华为技术有限公司 一种用户数据订阅通知方法及装置
CN101925047B (zh) * 2009-06-11 2014-09-10 中兴通讯股份有限公司 用户数据融合网络系统及订阅通知的实现方法
CN101945375A (zh) * 2009-07-07 2011-01-12 中兴通讯股份有限公司 一种选择应用前端的方法及用户数据仓储
CN102196409B (zh) * 2011-05-13 2017-03-22 中兴通讯股份有限公司 终端设备的监控方法、系统和订阅发布装置
CN102497431B (zh) * 2011-12-13 2014-10-22 曙光信息产业(北京)有限公司 一种tcp连接缓存应用数据的内存申请方法和系统
CN102664947B (zh) * 2012-04-18 2015-11-04 迈普通信技术股份有限公司 分布式系统中的通知分发方法
US9886347B2 (en) * 2015-01-08 2018-02-06 International Business Machines Corporation Data replication in a database management system
CN105069057A (zh) * 2015-07-27 2015-11-18 玉林师范学院 基于rfid分布式高校图书馆读者流向大数据自动采集系统及其方法
CN107071809A (zh) * 2017-02-17 2017-08-18 山东浪潮商用系统有限公司 一种移动通信网管数据时效提升方法
CN109271395A (zh) * 2018-09-11 2019-01-25 南京轨道交通系统工程有限公司 用于综合监控系统的大规模实时数据更新发布系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1239252A (zh) * 1998-05-27 1999-12-22 国际商业机器公司 发布/订阅数据处理设备、方法和计算机程序产品
US6334178B1 (en) 1998-08-31 2001-12-25 International Business Machines Corporation Multiprocessing system with automated propagation of changes to centrally maintained configuration settings
WO2005020102A1 (en) * 2003-08-14 2005-03-03 Oracle International Corporation Automatic and dynamic provisioning of databases
US20050129010A1 (en) 2003-11-21 2005-06-16 Kazuhiro Maeda Communications terminal
CN1687922A (zh) * 2005-05-30 2005-10-26 北京慧讯信息技术有限公司 分布式数据源数据集成系统及方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPN955096A0 (en) * 1996-04-29 1996-05-23 Telefonaktiebolaget Lm Ericsson (Publ) Telecommunications information dissemination system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1239252A (zh) * 1998-05-27 1999-12-22 国际商业机器公司 发布/订阅数据处理设备、方法和计算机程序产品
US6334178B1 (en) 1998-08-31 2001-12-25 International Business Machines Corporation Multiprocessing system with automated propagation of changes to centrally maintained configuration settings
WO2005020102A1 (en) * 2003-08-14 2005-03-03 Oracle International Corporation Automatic and dynamic provisioning of databases
US20050129010A1 (en) 2003-11-21 2005-06-16 Kazuhiro Maeda Communications terminal
CN1687922A (zh) * 2005-05-30 2005-10-26 北京慧讯信息技术有限公司 分布式数据源数据集成系统及方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383582A (zh) * 2020-10-09 2021-02-19 爱普(福建)科技有限公司 一种边缘层实时数据的管理方法和系统
CN113934793A (zh) * 2021-09-07 2022-01-14 华数传媒网络有限公司 一种运营系统的分布式数据管理系统和方法

Also Published As

Publication number Publication date
ATE505874T1 (de) 2011-04-15
CN1866833A (zh) 2006-11-22
DE602006021299D1 (de) 2011-05-26
CN101160797B (zh) 2011-04-13
CN101160797A (zh) 2008-04-09
EP1890425A1 (en) 2008-02-20
EP1890425A4 (en) 2008-10-22
EP1890425B1 (en) 2011-04-13
CN100512118C (zh) 2009-07-08

Similar Documents

Publication Publication Date Title
WO2007071142A1 (fr) Systeme de gestion de donnees distribuee et procede d&#39;abonnement dynamique aux donnees
US8572028B2 (en) Synchronizing structured web site contents
US8380930B2 (en) Refreshing cached data based on content identifier map
US7096418B1 (en) Dynamic web page cache
US6629138B1 (en) Method and apparatus for storing and delivering documents on the internet
US9734198B2 (en) Query processing
US8868707B2 (en) Adaptive write-back and write-through caching for off-line data
US20030033283A1 (en) Data access
US9497292B2 (en) Facilitating the operation of a client/server application while a client is offline or online
JP2002032261A (ja) 動的に作られかつ静的であるウェブコンテントの知的キャッシュとリフレッシュのためのシステムと方法
AU4470300A (en) Web servers with queryable dynamic caches
US20090070336A1 (en) Method and system for managing transmitted requests
US8078584B2 (en) Document retrieving system, document retrieving apparatus, method, program and storage medium therefor
CN103200278A (zh) 源站文件更新发布方法及缓存文件更新方法
WO2005112394A1 (en) Access control for requested web objects based on http validation
JP5013789B2 (ja) ウェブページ生成システム、ウェブページ生成装置、およびウェブページ生成方法
US8356079B2 (en) Schema annotations for cache management
US7480657B1 (en) Caching information for multiple service applications
JP4374093B2 (ja) 情報処理装置、情報処理方法、およびその方法をコンピュータに実行させるプログラムを記録したコンピュータ読み取り可能な記録媒体
US20100030969A1 (en) Consistency Model for Object Management Data
US6763381B1 (en) Supervisory control system
JP5068278B2 (ja) キャッシュ保持期間よりもブラウザ保持期間を長く設定するデータ配信装置及びキャッシュサーバ及び方法
Tewari et al. WCDP: A protocol for web cache consistency
JPH10207791A (ja) ハイパーメディアシステム
CN104661053A (zh) 一种iptv数据处理的方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200680012181.3

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2006791187

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2006791187

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE