The content of the invention
The technical scheme that the present invention is provided is as follows:
The present invention provides a kind of loading display method of topological view, comprises the following steps:S10, the loading from server
Multiple topological sub-domains under topological view rhizosphere and the topological view rhizosphere;S20, according to user it is selected topology son
Domain, caches topology element under the topological sub-domains, topology element state in a browser;S30, basis are buffered in the browser
In topology element, topology element state, the topological view under topological sub-domains described in loaded and displayed.
Further, also included before step S10:S02, acquisition user are selected under the topological view rhizosphere
Topological sub-domains;S03, judge whether to cache and/or be loaded with topology element under the topological sub-domains, topology element shape
State;If having cached and/or being loaded with the topology element under the topological sub-domains, topology element state, step S04 is jumped to;
Otherwise, jump to step S20;S04, the topology element, topology element state, and loaded and displayed are read in the browser
Topological view under the topological sub-domains.
Further, it is further comprising the steps of:S40, subscription have been cached with the display of topology element under the topological sub-domains more
New information;The display new information that S50, basis are received, the dispaly state of topology element under the topological sub-domains that upgrade in time.
Further, the display new information described in step S40 includes that topology element addition message, topology element are deleted
Except message, topology element state change message, topology element attribute change message.
Further, also included before step S10:
S01, multiple topological sub-domains are set under the topological view rhizosphere in advance, each topological sub-domains is provided with accordingly
Topology element, topology element state.
Further, the topology element described in step S20 includes Topology group, topological NE type, topological network element, opens up
Flutter link.
The present invention also provides a kind of loaded and displayed system of topological view, including:Load-on module, for adding from server
Carry topological view rhizosphere and the multiple topological sub-domains under the topological view rhizosphere;Cache module, for according to selected by user
The topological sub-domains selected, cache topology element under the topological sub-domains, topology element state in a browser;Loaded and displayed module,
For according to the topology element, topology element state being buffered in the browser, opening up under topological sub-domains described in loaded and displayed
Flutter view.
Further, also include:Acquisition module, for obtaining user's selected topology under the topological view rhizosphere
Domain;Judge module, for judging whether to cache and/or being loaded with topology element under the topological sub-domains, topology element shape
State;Read module, if having cached and/or being loaded with topology element under the topological sub-domains, topology element state, for
The topology element, topology element state are read in the browser, and shows described using the loaded and displayed module loading
Topological view under topological sub-domains.
Further, also include:Subscribing module, for subscribing to the display for being cached with topology element under the topological sub-domains more
New information;Update module, for according to the display new information for receiving, topology element under the topological sub-domains that upgrade in time
Dispaly state.
Further, also include:Setup module, for arranging multiple topological sub-domains under the topological view rhizosphere in advance,
Each topological sub-domains is provided with corresponding topology element, topology element state.
Compared with prior art, the loading display method and system of the topological view that the present invention is provided, with following beneficial
Effect:
Topological view rhizosphere and topological sub-domains are first loaded in the present invention, after user selects topological sub-domains, the topology is cached
Topology element and state under subdomain;Substep is loaded, and reduction often walks loading data, can improve loading velocity;And then load aobvious
Show topology element, the topology element state for having cached;Read video data in the buffer, improve the display effect of topological view with
And Consumer's Experience;Avoid and frequently topological data is inquired about to server end, shorten the waiting time of user.And adopt increment
Data add mode simultaneously combines the message monitoring to topology objects, reduces topological view to browser resource requirement.
In the present invention when user selects the topological sub-domains for needing to show, first judge topology element under the topological sub-domains and
Whether state is cached;If caching, corresponding topology element and state are directly read from browser, and is shown
Show;So as to accelerate the display speed of topological view.
The topology element that cached can be subscribed in the present invention it is related show new information, the topology element that upgrades in time it is aobvious
Show state, consequently facilitating the newest dispaly state of topology element is quickly shown, so as to realize that efficient real-time topology updates.
Multiple topological sub-domains are set under topological view rhizosphere in the present invention, so as to whole network topological view is carried out subregion
Domain shows;Each topological sub-domains is provided with corresponding topology element and state, consequently facilitating topological view quickly shows.
Specific embodiment
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by control description of the drawings
The specific embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention in each figure, is only schematically show, they do not represent
Its practical structures as product.In addition, so that simplified form is readily appreciated, with identical structure or function in some figures
Part, only symbolically depicts one of those, or has only marked one of those.Herein, " one " is not only represented
" only this ", it is also possible to represent the situation of " more than one ".
As shown in figure 1, according to one embodiment of present invention, a kind of loading display method of topological view, including it is following
Step:Preferably, multiple topological sub-domains are set including S01, in advance under the topological view rhizosphere, each topological sub-domains is arranged
There are corresponding topology element, topology element state.
S10, the multiple topological sub-domains loaded from server under topological view rhizosphere and the topological view rhizosphere,
And cached in a browser;
S20, according to the selected topological sub-domains of user, cache the topology element under the topological sub-domains in a browser, open up
Flutter elementary state;Described topology element includes Topology group, topological NE type, topological network element, topological link;Topological network element bag
Include switch, router etc..
S30, the topology element according to being buffered in the browser, topology element state, topology described in loaded and displayed
Topological view under domain.
Specifically, the overall network for NMS being managed, according to region division into multiple area's networks;Correspondence
, multiple topological sub-domains are set under topological view rhizosphere, each topological sub-domains is arranged with needed for area's network topology view
Topology element and topology element state, and be stored in server.When certain management user checks certain Local Area Network present situation,
NMS is opened in a browser;Topology topological view rhizosphere, topological view rhizosphere under is loaded in a browser only
Subdomain, improves the loading velocity of topological view rhizosphere, topological sub-domains.Secondly, user selects topology under topological view rhizosphere
After subdomain, topology element under the topological sub-domains, topology element state are cached in a browser;Avoid loading overall network to open up
The all topology elements flutterred needed for view and state.Furthermore, topology element, the topology element shape for having cached is read from browser
To prevent topological view, state, so as to realize intactly showing topological view in time, shows that slowly display effect is poor, reduce
Consumer's Experience.Due to manage user only can pointedly administrative section Local Area Network present situation, namely generally management user is only
The topological view that can be checked under minority topological sub-domains, also can only cache in a browser topology element under minority topological sub-domains and
Topology element state, thus be not in the little problem in EMS memory occupation space in browser.
As shown in Fig. 2 according to another embodiment of the invention, a kind of loading display method of topological view, including with
Lower step:Preferably, multiple topological sub-domains are set including S01, in advance under the topological view rhizosphere, each topological sub-domains sets
It is equipped with corresponding topology element, topology element state.
S02, acquisition user's selected topological sub-domains under the topological view rhizosphere;
S03, judge whether to cache and/or be loaded with topology element under the topological sub-domains, topology element state;
If having cached and/or being loaded with the topology element under the topological sub-domains, topology element state, step is jumped to
S04;Otherwise, jump to step S20;
S04, the topology element, topology element state are read in the browser, and topology described in loaded and displayed
Topological view under domain;
S10, the multiple topological sub-domains loaded from server under topological view rhizosphere and the topological view rhizosphere,
And cached in a browser;
S20, according to the selected topological sub-domains of user, cache the topology element under the topological sub-domains in a browser, open up
Flutter elementary state;Described topology element includes Topology group, topological NE type, topological network element, topological link;Topological network element bag
Include switch, router etc..
S30, the topology element according to being buffered in the browser, topology element state, topology described in loaded and displayed
Topological view under domain.
Specifically, after user selects certain topological sub-domains under topological view rhizosphere, first determine whether under the topological sub-domains
Whether topology element, topology element state have cached and/or had loaded;If caching and/or loading, directly in browser
Middle reading topology element and topology element state, and carry out loaded and displayed, with prevent again from server caching and/or
Load the data;If uncached and/or loaded, need the topology element for being cached under topological sub-domains in a browser and open up
Flutter elementary state.The topological view that can be cached with general browser under the topological sub-domains that management user Jing is often checked, Jin Er great
The earth facilitates management user and checks topological view, improves the experience of management user.
As shown in figure 3, according to still a further embodiment, a kind of loading display method of topological view, including with
Lower step:Preferably, multiple topological sub-domains are set including S01, in advance under the topological view rhizosphere, each topological sub-domains sets
It is equipped with corresponding topology element, topology element state.
S02, acquisition user's selected topological sub-domains under the topological view rhizosphere;
S03, judge whether to cache and/or be loaded with topology element under the topological sub-domains, topology element state;
If having cached and/or being loaded with the topology element under the topological sub-domains, topology element state, step is jumped to
S04;Otherwise, jump to step S20;
S04, the topology element, topology element state are read in the browser, and topology described in loaded and displayed
Topological view under domain;
S10, the multiple topological sub-domains loaded from server under topological view rhizosphere and the topological view rhizosphere,
And cached in a browser;
S20, according to the selected topological sub-domains of user, cache the topology element under the topological sub-domains in a browser, open up
Flutter elementary state;Described topology element includes Topology group, topological NE type, topological network element, topological link;Topological network element bag
Include switch, router etc..
S30, the topology element according to being buffered in the browser, topology element state, topology described in loaded and displayed
Topological view under domain.
S40, subscription have been cached with the display new information of topology element under the topological sub-domains;Described display updates and disappears
Breath includes that topology element addition message, topology element delete message, topology element state change message, topology element attribute change
Message.
The display new information that S50, basis are received, the display shape of topology element under the topological sub-domains that upgrade in time
State.
Specifically, topology element, topology element state are cached with a browser, can accelerate to show topological view again
Speed;But can there is cached topology element, topology element state cannot carry out real-time update according to practical situation.Cause
And, to cached topology element, topology element state subscription show new information;After display new information is received, nothing
By the topology element for having cached, whether topology element state is in present topology view is shown, can be upgraded in time and be opened up
Flutter the state of topology element under subdomain;So that topology element is last state in caching, and when topological view is shown, topology
Situations such as state of topology element is not in delay in view, reflects the present situation of the Local Area Network exactly.
As shown in figure 4, according to still a further embodiment, the loaded and displayed system of a kind of topological view, including:It is excellent
Choosing, including setup module 10, for arranging multiple topological sub-domains under the topological view rhizosphere in advance, each topological sub-domains
It is provided with corresponding topology element, topology element state.
Acquisition module 11, for obtaining user's selected topological sub-domains under the topological view rhizosphere;
Judge module 21, for judging whether to cache and/or being loaded with topology element under the topological sub-domains, topology
Elementary state;
Read module 31, if having cached and/or being loaded with topology element under the topological sub-domains, topology element state,
It is then for the topology element, topology element state are read in the browser and aobvious by the loading of loaded and displayed module 40
Show the topological view under the topological sub-domains;
Load-on module 20, for many under topological view rhizosphere and the topological view rhizosphere are loaded from server
Individual topological sub-domains;
Cache module 30, for according to the selected topological sub-domains of user, being cached under the topological sub-domains in a browser
Topology element, topology element state;Described topology element includes Topology group, topological NE type, topological network element, topological chain
Road;Topological network element includes switch, router etc..
Loaded and displayed module 40, for according to the topology element, topology element state being buffered in the browser, loading
Show the topological view under the topological sub-domains.
Subscribing module 50, for subscribing to the display new information for being cached with topology element under the topological sub-domains;It is described
Display new information include topology element addition message, topology element delete message, topology element state change message, topology
Element property change message.
Update module 60, for according to the display new information for receiving, topology is first under the topological sub-domains that upgrade in time
The dispaly state of element, by 40 loaded and displayed topological view of loaded and displayed module.
As shown in figure 5, according to one embodiment of present invention, a kind of loading display method of topological view, including it is following
Step:
Load from service end subdomain under topological view rhizosphere and rhizosphere, group, the topology element of network element and status information (but
It is the element being now not loaded with subdomain), and the topology element under rhizosphere is cached.
Subscribe to new information (addition, deletion, state change, the attribute change of the topology element shown under current rhizosphere
Deng), now browser does not receive the unrelated message in any other domain.
If user clicks on other domains, judge whether the domain clicked on is loaded, data were buffered.
If do not loaded, topology element is loaded from service end, and topology element is entered in topology element buffer
Row caching, while subscribing to the topological new information under the domain.
If be loaded, topology element is directly read from caching, and is displayed on topological view.
When topological view is initialized, all topology elements under rhizosphere are first loaded, and caches these elements, while subscribing to this
The topological new information of a little elements, now other domains and its under topology element status change message and need not be concerned about.
When user needs to check and during other domains, the domain can be clicked through on topological view, judge the current field whether
Jing is loaded, and is read if being loaded from caching;If not being loaded from service end and reading topology element, and cache this
A little elements.
Element in caching maintains the data consistency with service end by subscription service end topology element new information.
In this method processing procedure, the domain and its daughter element checked to user caches, if user clicks on load domain,
First determine whether whether the domain is loaded, directly read from caching if loading, it is to avoid frequent reading to data base.Together
When buffered topology element is updated by message mechanism, keep storage topology element it is consistent with data base.Base
In the loading topology mode of increment type, the request of data of many service ends is effectively reduced, while avoid an individual character loading
Many data cause the poor problem of Consumer's Experience to web client.
It should be noted that above-described embodiment can independent assortment as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, in the premise without departing from the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.