CN103024084B - A kind of cache flush system and buffer memory method for refreshing based on http protocol - Google Patents
A kind of cache flush system and buffer memory method for refreshing based on http protocol Download PDFInfo
- Publication number
- CN103024084B CN103024084B CN201310005139.0A CN201310005139A CN103024084B CN 103024084 B CN103024084 B CN 103024084B CN 201310005139 A CN201310005139 A CN 201310005139A CN 103024084 B CN103024084 B CN 103024084B
- Authority
- CN
- China
- Prior art keywords
- host
- monitor
- main frame
- http
- http message
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of cache flush system based on http protocol, it is communicated by letter with at least one main frame monitor, comprising: described host information table module, for depositing the URL of All hosts monitor, comprises host ip and refresh port corresponding to described host ip; Described main frame displayed page module is used for reading the URL of main frame monitor, and host ip and corresponding refresh port thereof are showed to user; Described buffer scheduling device resolves to HTTP message for host ip and corresponding refresh port thereof that user is selected, then sends this HTTP message to the described monitor that refreshes; Describedly refresh the HTTP message that monitor sends for calling described buffer scheduling device, and from described cache information table module, read the corresponding interface and process HTTP message; Described cache information table module is used for depositing refreshable total interface. The present invention can realize in bulk, remotely buffer memory be refreshed in real time.
Description
Technical field
The present invention relates to caching process technical field, particularly relate to a kind of buffer memory based on http protocolUpdating system and buffer memory method for refreshing.
Background technology
Most application are at present considered all to adopt caching technology for performance, are generally to start in systemIn time, reads out some conventional data be cached by former data from the data sources such as configuration file,If former data have amendment, need flush buffers.
Each channel can recognize that existing cache flush is mainly by two kinds of modes by inquiry:
One, periodic refreshing, it adopts apache-configuration framework, and this framework providesFileChangedReloadingStrategy periodic refreshing scheme, is configured literary composition at set intervalsThe part amendment date checks. Its drawback is: 1. the bad control of refresh interval, arrange too small, to system withoutWith consumption larger; Arrange excessively, real-time is very poor, and buffer memory can not get refreshing in time. 2. it can onlyFor the configuration of document form, if adopt the buffer memory of other form of database, helpless.
Two, staff refreshes, and, in the time of former data modification, manually access certain monitoring URL triggering and refresh, itsReal-time is very strong, but drawback is: each interface has a corresponding URL that refreshes, and it is manually right to needEach interface to be refreshed carries out URL and calls, if in the more situation of the interface refreshing, waste very much peoplePower, also easily makes mistakes. Especially under cluster environment, need to carry out time operation of M interface of N platform main frame *. .
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of cache flush system based on http protocolWith buffer memory method for refreshing, for solving existing cache flush efficiency and the lower problem of practicality.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of buffer memory based on http protocolUpdating system, it is communicated by letter with at least one main frame monitor, the described brush of the buffer memory based on http protocolNew system comprises host information table module, main frame displayed page module, buffer scheduling device, refreshes monitorWith cache information table module;
Described host information table module, it is for depositing the URL (Uniform/ of All hosts monitorUniversalResourceLocator, URL), and the URL of described main frame monitorComprise host ip and refresh port corresponding to described host ip;
Described main frame displayed page module, it is for reading the URL of main frame monitor, and by host ipShow user to select with refresh port corresponding to host ip; Here the host ip showing, andIts corresponding refresh port is available to user's refreshable host ip and refresh port thereof, and usesWhat family was chosen is host ip to be refreshed and corresponding refresh port thereof;
Described buffer scheduling device, its for host ip that user is selected and host ip corresponding refresh endMouth resolves to HTTP message, then sends this HTTP message to the described monitor that refreshes;
The described monitor that refreshes, the HTTP message that it sends for calling described buffer scheduling device, and fromIn described cache information table module, read the corresponding interface, and process HTTP by method corresponding to this interfaceMessage;
Described cache information table module, it is for depositing refreshable total interface, and each interface separatelyCorrespondence is useful on the method that realizes cache flush.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described buffer scheduling device is also sent to HTTP message each main frame monitor, and instituteState each main frame monitor to described buffer scheduling device feedback http response result.
Further, described buffer scheduling device adopts httpclient technology to send HTTP message or receptionHttp response result.
Further, described buffer scheduling device adopt host ip that httpclient technology selects user andThe refresh port that host ip is corresponding resolves to HTTP message.
Further, described in, refreshing monitor adopts beanshell real-time calling technology to call the corresponding interface.
Further, described buffer scheduling device adopts servlet buffer scheduling device or struts2_actionBuffer scheduling device.
The corresponding above-mentioned cache flush system of the present invention, its technical scheme also comprises a kind of based on http protocolCache flush method, comprise;
Step 1, host information table module is deposited the URL of All hosts monitor, and described main frame is monitoredThe URL of device comprises host ip and refresh port corresponding to described host ip;
Step 2, cache information table module is deposited refreshable total interface, and each interface is corresponding separatelyBe useful on the method that realizes cache flush;
Step 3, main frame displayed page module reads the URL of main frame monitor, and by host ip whereinShow user to select with refresh port corresponding to host ip;
Step 4, host ip and refresh port solution corresponding to host ip that buffer scheduling device is selected userAnalyse into HTTP message, then send this HTTP message to the described monitor that refreshes;
Step 5, refreshes monitor and calls the HTTP message that described buffer scheduling device sends, and from described slowDeposit in information table module and read the corresponding interface, and process HTTP message by method corresponding to this interface.
On the basis of technique scheme, with above-mentioned cache flush system, this cache flush method is also wrappedDraw together following improvement.
Further, described buffer scheduling device is also sent to HTTP message each main frame monitor, and instituteState each main frame monitor to described buffer scheduling device feedback http response result.
Further, described buffer scheduling device adopts httpclient technology to send HTTP message or receptionHttp response result, and the host ip to be refreshed and the master that adopt httpclient technology that user is selectedThe refresh port that machine IP is corresponding resolves to HTTP message.
Further, described in, refreshing monitor adopts beanshell real-time calling technology to call the corresponding interface.
The invention has the beneficial effects as follows: between each main frame, carry out cache flush and enjoy equal rights, at a group of planesIn environment and outer net, can carry out cache flush operation by any main frame, and delay at any main frameAfter machine, can there is not impact to the application of cache flush. Cache flush system of the present invention and cache flush sideMethod, is used general http protocol and each main frame mutual, has good security and ease for use. SeparatelyOutward, the favorable expandability of cache flush system of the present invention, in the time increasing main frame, as long as at host information tableMiddle increase a line information, while increasing cache information, as long as increase by a line item in cache information table. To sum up, the present invention can realize in bulk, remotely buffer memory be refreshed in real time.
Brief description of the drawings
Fig. 1 is the structural representation of cache flush system of the present invention;
Fig. 2 is the schematic flow sheet of cache flush system of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example is only for explaining thisInvention, is not intended to limit scope of the present invention.
As shown in Figure 1, the present embodiment relates to a kind of cache flush system based on http protocol, comprisesHost information table module, main frame displayed page module, buffer scheduling device, refresh monitor and cache informationTable module; Described host information table module, it is for depositing the URL unified resource of All hosts monitorFinger URL, and the URL of described main frame monitor comprises host ip and refresh port corresponding to host ip;Described main frame displayed page module, it is for reading the URL of main frame monitor, and by host ip whereinShow user to select with refresh port corresponding to host ip.
Described buffer scheduling device, its for host ip that user is selected and host ip corresponding refresh endMouth resolves to HTTP message, then sends this HTTP message to the described monitor that refreshes. In addition, described slowDeposit scheduler and also HTTP message be sent to each main frame monitor, and described each main frame monitor toDescribed buffer scheduling device feedback http response result. Here adopt httpclient technology to send HTTP,Message or http response result, and the host ip and the master that adopt httpclient technology that user is selectedIts corresponding refresh port of machine IP resolves to HTTP message.
The described monitor that refreshes, described in refresh monitor, for receiving, described buffer scheduling device sends for itHTTP message, and call the corresponding interface from described cache information table module, and corresponding by this interfaceMethod is processed HTTP message. Here,, refresh monitor and adopt beanshell real-time calling technologyCall the corresponding interface. And described cache information table module, for refreshing described in depositing, monitor calls for itEach interface.
As shown in Figure 2, corresponding above-mentioned cache flush system, the present embodiment gives a kind of based on HTTPThe cache flush method of agreement, comprises;
Step 1, host information table module is deposited the URL of All hosts monitor, and described main frame is monitoredThe URL of device comprises host ip and refresh port corresponding to host ip;
Step 2, cache information table module is deposited refreshable total interface, and each interface is corresponding separatelyBe useful on the method that realizes cache flush;
Step 3, main frame displayed page module reads the URL of main frame monitor, and by host ip and main frameThe refresh port that IP is corresponding shows user to select;
Step 4, host ip and refresh port solution corresponding to host ip that buffer scheduling device is selected userAnalyse into HTTP message, then send this HTTP message to the described monitor that refreshes;
Step 5, refreshes monitor and receives the HTTP message that described buffer scheduling device sends, and from described slowDeposit in information table module and call the corresponding interface, and process HTTP message by method corresponding to this interface.
Corresponding above-mentioned cache flush system and cache flush method, the specific implementation process of the present embodiment is:
One, initialization data: set up two tables:
1, host information allocation list: deposit all main frame monitor URL, its main field comprises major keyID, host ip and refresh port.
2, cache information allocation list: deposit and refresh each interface calling, its main field comprises major keyID, interface content and interface class.
For cache information allocation list, and concrete field description is as follows:
Interface class: value 1,2. In the time being 1, interface content is deposited JAVA code segment, logical on backstageCross BEAN_SHELL real time parsing and carry out, be SPRING Service name in the time being 2, passes through on backstageSPRING_API obtains respective service and calls corresponding method. The like can expand other interface sideFormula.
Two, application coding.
1, write a JSP: from host information allocation list, read All hosts and corresponding port showsUser selects to refresh.
2, write backstage ACTION: the host port information to be refreshed of submitting to for the treatment of user, logicalCrossing following code carries out long-range URL and calls that (this code example has been used JRE'sJava.net.URLConnection, user can adopt httpclient framework according to actual needs):
3, write and monitor ACTION: the message of sending for monitoring previous step, this step is believed from buffer memoryIn breath allocation list, reading interface content and interface class to be refreshed calls.
Three, application deployment: can be by the application deployment of putting up servlet container extremely arbitrarilyIn (tomcat, weblogic etc.), can be also in the middle of a group of planes, then start container;
Four, concrete operations: access is (if access any machine in Intranet, if at outer net, logicalCross outer net IP) entrance JSP, then selects machine to be refreshed to click and submits to.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, not all in the present inventionSpirit and principle within, any amendment of doing, be equal to replacement, improvement etc., all should be included in thisWithin bright protection domain.
Claims (10)
1. the cache flush system based on http protocol, it is communicated by letter with at least one main frame monitor,It is characterized in that, the described cache flush system based on http protocol comprise host information table module,Main frame displayed page module, buffer scheduling device, refresh monitor and cache information table module;
Described host information table module, it is for depositing the URL unified resource location of All hosts monitorSymbol, and the URL of described main frame monitor comprises host ip and refresh port corresponding to host ip;
Described main frame displayed page module, it is for reading the URL of main frame monitor, and by master whereinThe refresh port that machine IP and host ip are corresponding shows user to select;
Described buffer scheduling device, its for host ip that user is selected and host ip corresponding refresh endMouth resolves to HTTP message, then sends this HTTP message to the described monitor that refreshes;
The described monitor that refreshes, the HTTP message that it sends for calling described buffer scheduling device, and fromIn described cache information table module, read the corresponding interface, and by corresponding the brushing for realizing buffer memory of this interfaceNew method is processed HTTP message;
Described cache information table module, it is for depositing refreshable total interface, and each interface separatelyCorrespondence is useful on the method that realizes cache flush.
2. cache flush system according to claim 1, is characterized in that, described buffer schedulingDevice is also sent to HTTP message each main frame monitor, and described each main frame monitor is to described slowDeposit scheduler feedback http response result.
3. cache flush system according to claim 1 and 2, is characterized in that, described buffer memoryScheduler adopts httpclient technology to send HTTP message or receives http response result.
4. cache flush system according to claim 1, is characterized in that, described buffer schedulingHost ip and refresh port solution corresponding to host ip that device adopts httpclient technology that user is selectedAnalyse into HTTP message.
5. cache flush system according to claim 1, is characterized in that, described in refresh monitoringDevice adopts beanshell real-time calling technology to call the corresponding interface.
6. cache flush system according to claim 1, is characterized in that, described buffer schedulingDevice adopts servlet buffer scheduling device or struts2_action buffer scheduling device.
7. the cache flush method based on http protocol, is characterized in that, based on the buffer memory of http protocolUpdating system, comprises host information table module, cache information table module, main frame displayed page module, slowDeposit scheduler and refresh monitor; Described cache flush system and at least one main frame based on http protocolMonitor communication;
Step 1, host information table module is deposited the URL of All hosts monitor, and described main frame is monitoredThe URL of device comprises host ip and refresh port corresponding to host ip;
Step 2, cache information table module is deposited refreshable total interface, and each interface is corresponding separatelyBe useful on the method that realizes cache flush;
Step 3, main frame displayed page module reads the URL of main frame monitor, and by host ip whereinShow user to select with refresh port corresponding to host ip;
Step 4, host ip and refresh port solution corresponding to host ip that buffer scheduling device is selected userAnalyse into HTTP message, then send this HTTP message to the described monitor that refreshes;
Step 5, refreshes monitor and calls the HTTP message that described buffer scheduling device sends, and from described slowDeposit in information table module and read the corresponding interface, and by this interface corresponding for realizing the side of cache flushMethod is processed HTTP message.
8. cache flush method according to claim 7, is characterized in that, described buffer schedulingDevice is also sent to HTTP message each main frame monitor, and described each main frame monitor is to described slowDeposit scheduler feedback http response result.
9. according to the cache flush method described in claim 7 or 8, it is characterized in that described buffer memoryScheduler adopts httpclient technology to send HTTP message or receives http response result, and adoptsHost ip and refresh port corresponding to host ip that httpclient technology is selected user resolve to HTTPMessage.
10. cache flush method according to claim 7, is characterized in that, described in refresh monitoringDevice adopts beanshell real-time calling technology to call the corresponding interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310005139.0A CN103024084B (en) | 2013-01-07 | 2013-01-07 | A kind of cache flush system and buffer memory method for refreshing based on http protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310005139.0A CN103024084B (en) | 2013-01-07 | 2013-01-07 | A kind of cache flush system and buffer memory method for refreshing based on http protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103024084A CN103024084A (en) | 2013-04-03 |
CN103024084B true CN103024084B (en) | 2016-05-11 |
Family
ID=47972208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310005139.0A Active CN103024084B (en) | 2013-01-07 | 2013-01-07 | A kind of cache flush system and buffer memory method for refreshing based on http protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103024084B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294566A (en) * | 2016-07-26 | 2017-01-04 | 努比亚技术有限公司 | Cache management system and implementation method |
CN109344353B (en) * | 2018-09-12 | 2021-10-08 | 福建天泉教育科技有限公司 | Configurable local cache refreshing method and terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1484155A (en) * | 2002-08-13 | 2004-03-24 | �Ҵ���˾ | System and method for updating network proxy cache server object |
CN1620012A (en) * | 2003-11-19 | 2005-05-25 | 国际商业机器公司 | Method and system for updating/reloading the content of pages browsed over a network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100367590B1 (en) * | 2000-04-28 | 2003-01-10 | 엘지전자 주식회사 | Information display apparatus and method |
-
2013
- 2013-01-07 CN CN201310005139.0A patent/CN103024084B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1484155A (en) * | 2002-08-13 | 2004-03-24 | �Ҵ���˾ | System and method for updating network proxy cache server object |
CN1620012A (en) * | 2003-11-19 | 2005-05-25 | 国际商业机器公司 | Method and system for updating/reloading the content of pages browsed over a network |
Also Published As
Publication number | Publication date |
---|---|
CN103024084A (en) | 2013-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101459676B (en) | Message transmission frame and method based on high-speed network oriented to file system | |
GB2386531A (en) | A collaborative, fault-tolerant, scaleable, flexible, interactive real-time display and processing method and apparatus | |
CN107104961B (en) | distributed real-time video monitoring processing system based on ZooKeeper | |
CN104754036A (en) | Message processing system and processing method based on kafka | |
CN103647726B (en) | Message dispatching method and device thereof | |
CN106230922A (en) | A kind of news subscribing method, message production unit and message reception units | |
CN102546779A (en) | Synchronized method and device of application data across devices | |
CN102292713A (en) | A multimedia collaboration system | |
CN103139051A (en) | Instant messaging communication method based on Websocket protocol | |
CN108769099A (en) | A kind of implementation method of the message duplicate removal of message-oriented middleware | |
CN102646235A (en) | Method, client and server for online collaborative drawing | |
CN103198417A (en) | Mobile internet banner and background issuing method and interaction method thereof | |
CN101383781B (en) | Virtual inter-domain short message communicating method | |
CN105575203A (en) | Cloud teaching realization method and system and cloud server | |
CN102833180A (en) | Method and system for sharing microblog messages | |
CN103024084B (en) | A kind of cache flush system and buffer memory method for refreshing based on http protocol | |
CN203300174U (en) | Interactive media display system | |
CN103581119B (en) | System and method for displaying production process data at high speed | |
CN107784077A (en) | City system on a kind of multiple terminals cloud | |
GB0426202D0 (en) | A method, system and computer program for addressing a web service | |
Ryan | Weibo diplomacy and censorship in China | |
CN103312585B (en) | A kind of rubbish message processing method and system | |
CN107786661A (en) | Information synchronization method | |
CN101087293A (en) | A method, chat client and system for displaying shielded status of members in chat room | |
CN103854147A (en) | Ship material management method |
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 |