CN103345486B - It is applied to client under remote browse environment obtain and the method for present graphical file - Google Patents

It is applied to client under remote browse environment obtain and the method for present graphical file Download PDF

Info

Publication number
CN103345486B
CN103345486B CN201310251477.2A CN201310251477A CN103345486B CN 103345486 B CN103345486 B CN 103345486B CN 201310251477 A CN201310251477 A CN 201310251477A CN 103345486 B CN103345486 B CN 103345486B
Authority
CN
China
Prior art keywords
file
man
machine interface
attribute
cache
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
Application number
CN201310251477.2A
Other languages
Chinese (zh)
Other versions
CN103345486A (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.)
Integrated Electronic Systems Lab Co Ltd
Original Assignee
Integrated Electronic Systems Lab 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 Integrated Electronic Systems Lab Co Ltd filed Critical Integrated Electronic Systems Lab Co Ltd
Priority to CN201310251477.2A priority Critical patent/CN103345486B/en
Publication of CN103345486A publication Critical patent/CN103345486A/en
Application granted granted Critical
Publication of CN103345486B publication Critical patent/CN103345486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention belongs to dispatching automation of electric power systems field, be specifically related to a kind of be applied to client under remote browse environment and obtain and the method for present graphical file.During Client browse service end figure, triggering browse request by man-machine interface, browse request is sent to be deployed in the graphics proxy of this locality by man-machine interface, graphics proxy and the graph gateway service interaction being deployed in service end obtain graphic file and picture data.The file got from service end and data are transmitted to man-machine interface by graphics proxy, and man-machine interface is shown.The present invention by arranging the multi-level buffer mechanism of agency mechanism and graphic file in client, reach to be deployed in graphic file the number of transmissions between the graphics proxy of client and man-machine interface minimum, reduce graphics proxy simultaneously and send the purpose of graphic file request to remote graphics gateway service, thus promote the efficiency of remote browse further.

Description

It is applied to client under remote browse environment obtain and the method for present graphical file
Technical field
The invention belongs to dispatching automation of electric power systems field, be specifically related to a kind of be applied to client under remote browse environment and obtain and the method for present graphical file.
Background technology
Along with the development of national economy, the scale of electrical network is also developing rapidly, and in order to adapt to nation needs, improves the managerial skills of power grid enterprises, and State Grid Corporation of China proposes regulation and control integration measure.And regulate and control integral requirement scheduling business and blend with monitoring of tools business, thus being continuously increased along with electrical network scale, needs send a large amount of substation data information, has significantly increased the weight of the processing load of main station system database.To this end, State Grid's dispatching control center proposes the data interactive mode that " alarm direct transfer, remote browse " is new.National grid has formulated the specification that service end and client under " remote browse " data interactive mode are mutual, as long as each producer follows relevant interaction specifications can carry out clog-free figure and browsing data, but how to realize data interaction for service end and client and do not make regulation.
At present, remote browse is mainly used in higher level main website and browses figure and the picture data of transformer station of subordinate/main website, and wherein obtaining graphic file is important step, directly influences the performance of remote browse.How to promote the displaying efficiency of remote browse picture, make operating personnel when opening remote pictures and local graphic picture without the difference on sense organ, be the current problem demanding prompt solution in this area.
Summary of the invention
For solving the problems referred to above, the invention provides and a kind of be applied to client under remote browse environment and obtain and the method for present graphical file, by carrying out agency mechanism and the method for graphic file multi-level buffer in client, file the number of transmissions between client and service end and graphics proxy and man-machine interface is dropped to minimum, promote the displaying efficiency of figure further by arranging memory file buffer area in man-machine interface so that browsing of remote graphics file is more smooth and easy simultaneously.
For achieving the above object, present invention employs the multi-level buffer mechanism of agency mechanism and file.Agency mechanism in the present invention refers in client by remote interaction functional independence out, forms graphics proxy and man-machine interface, and wherein man-machine interface provides operation and shows interface, and it is mutual that graphics proxy is responsible between man-machine interface and service end.Can be asked, to reduce the interaction times between client and service end and data volume from the same remote of different man-machine interfaces with merging treatment by graphics proxy.Graphics proxy performs the merging treatment of remote request and employs history command queue, all orders that appointment time (giving tacit consent to 1 minute) the interior reception of history command queue record processes, each history command record preserves following information: command type, command context, order time, command process state (whether being disposed), command processing result (such as failed, time-out, successfully etc.).
Multi-level buffer mechanism in the present invention is an up client and obtains and the key of present graphical file speed, and the multi-level buffer mechanism that the present invention relates to includes the following two kinds:
Caching mechanism 1, by the file cache persistence mechanism of tree structure tissue: the level cache being arranged on graphics proxy and the L2 cache being arranged on man-machine interface all use this caching mechanism, and the file in caching is all persisted to physical hard disk.One catalogue of the corresponding hard disk of whole caching, the root i.e. cached, such as level cache correspondence tmpgfile, L2 cache correspondence gfile.The root of caching is divided into multiple subdirectory according to remote service end title again, and such as station, Changqing, station, Zibo etc., these subdirectories are referred to as catalogue of standing.Store, under the catalogue of each station, the graphic file remotely obtained from correspondence.The tree structure organizational form of caching can realize the acquisition of graphic file and the displaying from different remote service with same frame title.File carries out the mechanism of physical store according to catalogue classification and can prevent module from exiting and the data cached loss brought.
Caching mechanism 2, memory cache: three grades of cachings that man-machine interface is arranged use memory cache.The entitled keyword of absolute path of memory cache graphically file, the file content after the storage size of graphic file, modification time, load time and parsing.Memory cache at most can cache N number of file (N is configurable parameter), when memory cache is full, replacement policy need to be used to carry out the replacement of cache contents.Memory cache is data cached when module exits will be lost.
The present invention arranges graphics proxy and man-machine interface in client, service end arranges graph gateway service, graphics proxy sets documentary level cache, man-machine interface sets documentary L2 cache and three grades of cachings, is applied to the method that under remote browse environment, client obtains with present graphical file and comprises the steps:
Step 1, operating personnel are triggered by man-machine interface and browse remote pictures request, according to picture keyword message, man-machine interface checks that L2 cache obtains the attribute of picture correspondence cache file, keyword message and file attribute are formed command request and be sent to graphics proxy by man-machine interface;If not finding the cache file of correspondence in the process, then file attribute is disposed as 0, these attributes are sent to graphics proxy together with keyword message, graphics proxy is found the cache file of correspondence again.
Whether the remote pictures that browses that step 2, graphics proxy reception process man-machine interface transmission is asked, processed according to request command and judge whether to send command request, and next step performs step according to command process condition adjudgement;
The service reception of step 3, graph gateway processes picture request order, sends attribute and the content of demand file to graphics proxy;
Step 4, graphics proxy reception process file attribute and the file content that graph gateway service returns, if receiving file content to be stored in level cache, and according to returning file attribute amendment cache file attribute, consistent with the modification time of remote service end to ensure the modification time in level cache.
Step 5, graphics proxy return service end result to man-machine interface: if demand file does not exists, and graphics proxy sends file to man-machine interface and there is not notice;If existing, the file attribute sent when the file attribute in level cache is sent request with man-machine interface compares, if attribute is unequal, transmits file content to man-machine interface, does not transmits;Afterwards, graphics proxy sends file end of transmission notice to man-machine interface;
Step 6, man-machine interface reception process graphics proxy notice: if receiving file there is not notice, then prompting file does not exists;Otherwise man-machine interface is with the entitled index key of file, checks whether this document exists in three grades of cachings;If existing, the attribute preserving file in obtaining file attribute from L2 cache and caching with three grades compares, if there is not this document in three grades of cachings or the attribute that compares being unequal, then resolution file the file content after resolving and file attribute are loaded into three grades of cachings;If attribute is equal, then the document analysis content being loaded directly in three grades of cachings is shown.
After using history command queue, concretely comprising the following steps of step 2: graphics proxy, with command context for keyword search history command queue, determines whether request command is deposited in the queue;If existing, the most not sending command request, determining that next step performs step according to command process state, if coomand mode is for being disposed, then perform step 5, if processing, then performing step 4;If not existing, graphics proxy obtains the attribute of cache file in level cache by picture keyword, and picture keyword and file attribute information are organized into picture request order are sent to graph gateway service.As do not found corresponding cache file in level cache, then file attribute is disposed as 0, and this attribute is made into picture request order with picture name group, be sent to graph of a correspondence gateway service according to star's picture request order route long-range belonging to picture.
In step 3, according to picture keyword, graph gateway service judges whether demand file exists, and judges whether file updates according to file attribute, if file does not exists or file content does not updates, the most only sends file attribute, does not retransmit file content.
In step 5, the file content transmission between graphics proxy and man-machine interface is realized by main station system bus.
The management of three grades of cachings uses the mode of FIFO to be managed, and when buffer area is full, new load document replaces out the cache file opened at first.
Step 3, the file attribute described in 4 include file name, size, modification time, block size and block number, and file attribute described in other positions includes file size and modification time.
Picture keyword message mentioned above includes long-range name belonging to picture title and picture.
The present invention is by arranging level cache at graphics proxy, man-machine interface arranges L2 cache, this by the firsts and seconds file cache persistence mechanism of tree structure tissue, owing to the graphic file of service end seldom changes, so the file content the number of transmissions between client graphical agency and the service of service end graph gateway and between graphics proxy and man-machine interface can at utmost be reduced.It addition, three grades of cachings of internal memory of man-machine interface can reduce the parsing number of times showing file to a certain extent so that the display of remote graphics constantly approaches the speed that local text is shown.
Accompanying drawing explanation
Fig. 1 is multi-level buffer structure chart of the present invention;
Fig. 2 is that under multi-level buffer pattern of the present invention, telefile obtains displaying flow chart;
In figure, 1, man-machine interface, 2, graphics proxy, 3, graph gateway service, 4, level cache, 5, L2 cache, 6, three grades of cachings.
Detailed description of the invention
Below in conjunction with the accompanying drawings embodiments of the present invention are described in detail:
Under remote browse environment, higher level main website as Client browse as the figure of transformer station of the subordinate/main website of service end time, the acquisition of its graphic file shows that process is particularly important.For coordinating the carrying out of embodiment of the present invention, need first to arrange graphics proxy 2 and man-machine interface 1 in client, service end arranges graph gateway service 3, graphics proxy 2 sets documentary level cache 4, man-machine interface 1 sets documentary L2 cache 5 and three grades of cachings 6, and what embodiment of the present invention was provided be applied to, and under remote browse environment, client obtains and the method for present graphical file comprises the steps:
1, operating personnel trigger in client man-machine interface and browse remote pictures request.
2, man-machine interface sends remote browse request to graphics proxy: man-machine interface is according to entitled keyword long-range described in picture title and picture, check that L2 cache obtains size and the modification time attribute of demand file, keyword and the file attribute information of file are organized and be sent to graphics proxy in request command.When L2 cache does not exists demand file, file size and modification time are used as default 0.
3, graphics proxy checks command process historical record, it is determined whether need to send picture request order to remote graphics gateway service: graphics proxy, with command context for keyword search history command queue, determines whether request command is deposited in the queue;If not existing, needing to send request command, performing the 4th step;If existing, the most not sending command request, checking history command state, if coomand mode is for being disposed, then perform the 7th step, if processing, then performing the 6th step.
4, graphics proxy obtains size and the modification time attribute of respective file in level cache by picture keyword, and picture keyword and file attribute information are organized into picture request order are sent to graph gateway service.As there is not corresponding cache file in level cache, then size and the modification time attribute of file are disposed as 0.
5, the graph gateway service reception of remote service end processes the picture request order from client, attribute and the content of demand file is sent: according to picture title, graph gateway service judges whether demand file exists to graphics proxy, whether update according to file size and modification time determined property file, if file does not exists or file content does not updates (file size in request command is identical with the size of local file and modification time with modification time), the most only send file attribute, do not retransmit file content.The file attribute sent includes file name, size, modification time, block size and block number.
6, graphics proxy reception processes the fileinfo that graph gateway service returns: graphics proxy is according to the file attribute information of graph gateway service return, may determine that whether file exists, (refer to graph gateway service does not exist this document if file does not exists, embodied by the file attribute returned) or do not update (it is identical that the file attribute of return and man-machine interface send the file attribute come) and be then no longer waiting for reception file content, it is directly entered next step;Otherwise graphics proxy receives file content, by new file content write level cache and revise file at the size of level cache and modification time attribute.
7, graphics proxy determines whether that man-machine interface sends file: if file does not exist is directly entered step 9, otherwise size and the modification time attribute of file in level cache are compared by graphics proxy with the file size sent before man-machine interface and modification time attribute, attribute is unequal then enters step 8, and attribute is the most then directly entered step 9.
8, the file content in level cache is sent to specify the L2 cache of man-machine interface by graphics proxy by system bus.
9, graphics proxy does not exists or end of transmission notice to man-machine interface transmission file.
10, man-machine interface reception processes graphics proxy notice, if file does not exists, then terminates remote pictures request after ejecting information and processes, otherwise enter next step.
11, during man-machine interface checks L2 cache and three grades of cachings, file attribute determines whether load document: for index, man-machine interface checks whether file exists in three grades of cachings with file name.If file is present in three grades of cachings, then obtaining size and the modification time attribute of file in L2 cache, and compare with size and the modification time attribute of this document in three grades of cachings, attribute is inconsistent, then enter step 12, be otherwise directly entered step 13.
12, man-machine interface load document result is stored to three grades of cachings after resolving.If now three grades of cachings are full, then according to FIFO principle, the file entering into three grades of cachings at first is replaced out.
13, man-machine interface present graphical file: man-machine interface shows the file content in three grades of cachings.
14, remote pictures request is disposed.
Although the present invention is disclosed above with preferred embodiment; so it is not limited to the present invention; in the case of without departing substantially from present invention spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and deformation according to the present invention, but these change accordingly and deform the protection domain that all should belong to appended claims of the invention.

Claims (7)

1. it is applied to client under remote browse environment obtain and a method for present graphical file, its Being characterised by: arrange graphics proxy and man-machine interface in client, service end arranges graph gateway clothes Business, graphics proxy sets documentary level cache, and man-machine interface sets documentary L2 cache and three Level caching, wherein the file in level cache and L2 cache is all persisted to physical hard disk, and three Level caching uses memory cache, and the method comprises the steps:
Step 1, operating personnel by man-machine interface trigger browse remote pictures ask, man-machine interface according to When picture keyword message checks size and the amendment that L2 cache obtains picture correspondence cache file Between attribute, the size of keyword message and file is become order with modification time set of properties by man-machine interface Request is sent to graphics proxy;
The remote pictures that browses that step 2, graphics proxy reception process man-machine interface transmission is asked, according to Whether request command processed judges whether to send command request, and according to command process condition adjudgement Next step performs step;
The service reception of step 3, graph gateway processes picture request order, sends request literary composition to graphics proxy Part attribute and file content;
Step 4, graphics proxy reception process file attribute and the file content that graph gateway service returns, If receiving file content to be stored in level cache, and according to returning file attribute amendment caching File attribute;
Step 5, graphics proxy return service end result to man-machine interface: if demand file is not deposited , graphics proxy sends file to man-machine interface and there is not notice;If existing, by level cache The size of file and the file that sends when sending request with man-machine interface of modification time attribute big Little and modification time attribute compares, if attribute is unequal, transmits file content to man-machine interface, no Do not transmit;Afterwards, graphics proxy sends file end of transmission notice to man-machine interface;
Step 6, man-machine interface reception process graphics proxy notice: if receiving file there is not notice, Then prompting file does not exists;Otherwise man-machine interface is with the entitled index key of file, checks this document Whether exist in three grades of cachings;If existing, from L2 cache, obtain size and the amendment of file Time attribute also preserves the size of file and modification time attribute compares in three grades of cachings, if There is not this document in three grades of cachings or the attribute that compares is unequal, then resolution file will parsing After file content and the size of file and modification time attribute be loaded into three grades of cachings;If attribute phase Deng, then the document analysis content being loaded directly in three grades of cachings is shown.
The client that is applied under remote browse environment the most according to claim 1 obtains and displaying figure The method of shape files, it is characterised in that: concretely comprising the following steps of step 2: graphics proxy is with in order Holding is keyword search history command queue, determines whether request command is deposited in the queue;If depositing , the most do not send command request, determine that next step performs step according to command process state, if life Writ state for being disposed, then performs step 5, if processing, then performs step 4;If Not existing, graphics proxy obtains the size of cache file in level cache by picture keyword and repaiies Change time attribute, and picture keyword and the size of file and modification time attribute information are organized into Picture request order is sent to graph gateway service.
The client that is applied under remote browse environment the most according to claim 1 obtains and displaying figure The method of shape files, it is characterised in that: in step 3, graph gateway service is sentenced according to picture keyword Whether disconnected demand file exists, according to the size of file and modification time determined property file the most more Newly, if file does not exists or file content does not updates, size and the modification time of file are the most only sent Attribute.
The client that is applied under remote browse environment the most according to claim 1 obtains and displaying figure The method of shape files, it is characterised in that: in step 5 in file between graphics proxy and man-machine interface Hold transmission to be realized by main station system bus.
The client that is applied under remote browse environment the most according to claim 1 obtains and displaying figure The method of shape files, it is characterised in that: the management of three grades of cachings uses the mode of FIFO to carry out Management, when buffer area is full, new load document replaces out the cache file opened at first.
6. obtain according to the client under remote browse environment that is applied to described in claim 1 or 2 or 3 Method with present graphical file, it is characterised in that: step 3, the file attribute bag described in 4 Include file name, size, modification time, block size and block number.
The client that is applied under remote browse environment the most according to claim 6 obtains and displaying figure The method of shape files, it is characterised in that: picture keyword message includes belonging to picture title and picture Remotely name.
CN201310251477.2A 2013-06-24 2013-06-24 It is applied to client under remote browse environment obtain and the method for present graphical file Active CN103345486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310251477.2A CN103345486B (en) 2013-06-24 2013-06-24 It is applied to client under remote browse environment obtain and the method for present graphical file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310251477.2A CN103345486B (en) 2013-06-24 2013-06-24 It is applied to client under remote browse environment obtain and the method for present graphical file

Publications (2)

Publication Number Publication Date
CN103345486A CN103345486A (en) 2013-10-09
CN103345486B true CN103345486B (en) 2016-08-24

Family

ID=49280281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310251477.2A Active CN103345486B (en) 2013-06-24 2013-06-24 It is applied to client under remote browse environment obtain and the method for present graphical file

Country Status (1)

Country Link
CN (1) CN103345486B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660957B (en) * 2013-11-18 2017-12-15 南京南瑞继保电气有限公司 A kind of supervisory control of substation picture remote browsing method
CN105760150B (en) * 2014-12-19 2020-10-02 南京中兴软件有限责任公司 Method and device for presenting application program on android device
CN107404458B (en) * 2016-05-19 2020-08-04 深信服科技股份有限公司 Image acquisition method, server-side equipment and client-side equipment
CN107820610B (en) * 2016-12-14 2018-10-26 深圳中兴力维技术有限公司 A kind of implementation method and its device of Multi-stage electronic map
CN111367868B (en) * 2018-12-26 2023-12-29 三六零科技集团有限公司 File acquisition request processing method and device
CN112260406B (en) * 2020-11-03 2022-09-13 中国电力科学研究院有限公司 Lightweight man-machine interaction method and system based on wide area network power grid regulation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248547A1 (en) * 2005-04-14 2006-11-02 International Business Machines Corporation Multi-level cache apparatus and method for enhanced remote invocation performance
US8504597B2 (en) * 2005-09-09 2013-08-06 William M. Pitts Distributed file system consistency mechanism extension for enabling internet video broadcasting
CN101645095A (en) * 2009-08-31 2010-02-10 深圳市茁壮网络股份有限公司 Method, terminal and server of on-screen data updating of browser
CN102413170A (en) * 2011-10-18 2012-04-11 国网电力科学研究院 Graphic data client buffer memory method based on FLEX

Also Published As

Publication number Publication date
CN103345486A (en) 2013-10-09

Similar Documents

Publication Publication Date Title
CN103345486B (en) It is applied to client under remote browse environment obtain and the method for present graphical file
US10708353B2 (en) Method and system for displaying similar email messages based on message contents
CN104104738B (en) A kind of data exchange system based on FTP
CN101252471B (en) Distributed automatization test system and method
CN103455540B (en) The system and method for generating memory model from data warehouse model
CN101867620B (en) Method for viewing pre-message through crossing security zone
CN106326381A (en) HBase data retrieval method based on MapDB construction
CN105550228A (en) Intelligent storage device and storage and take-out identification method and system based on intelligent storage device
CN102436513A (en) Distributed search method and system
US10277362B2 (en) Optimistic data fetching and rendering
CN102098233B (en) Method and system for controlling communication window in instant messenger
CN108241725B (en) A kind of data hot statistics system and method
CN105094868A (en) Software upgrading method, server and terminal
CN113377868A (en) Offline storage system based on distributed KV database
CN110162522A (en) A kind of distributed data search system and method
US20170193042A1 (en) Optimistic data fetching and rendering
CN102521356B (en) Regular expression matching equipment and method on basis of deterministic finite automaton
CN107870982A (en) Data processing method, system and computer-readable recording medium
CN103561083B (en) Data processing method for Internet of things
CN102253948B (en) Method and device for searching information in multi-source information system
US20080235045A1 (en) Workflow management system
US9319364B2 (en) Displaying message content differential in popup window
CN106161193A (en) A kind of email processing method, device and system
CN104750814B (en) The automatic storage method of polynary heterogeneous data flow based on multisensor
CN101882290A (en) Service integration method based on situation ontologies under internet environment

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