CN101419554A - TMPLS network management modularized development manner based on JavaBean and JavaApplet - Google Patents

TMPLS network management modularized development manner based on JavaBean and JavaApplet Download PDF

Info

Publication number
CN101419554A
CN101419554A CNA2008102399006A CN200810239900A CN101419554A CN 101419554 A CN101419554 A CN 101419554A CN A2008102399006 A CNA2008102399006 A CN A2008102399006A CN 200810239900 A CN200810239900 A CN 200810239900A CN 101419554 A CN101419554 A CN 101419554A
Authority
CN
China
Prior art keywords
function
javabean
javaapplet
network management
tmpls
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.)
Pending
Application number
CNA2008102399006A
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CNA2008102399006A priority Critical patent/CN101419554A/en
Publication of CN101419554A publication Critical patent/CN101419554A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a TMPLS network management modularization development mode based on JavaBean and JavaApplet. Five function modules which are a configuration management module, a fault management module, a security management module, a performance management module and a charging management module in the TMPLS network management are subject to modularization design, thus reducing the programming development workload, easily realizing modification of a network management function assembly, enhancing expandability of a TMPLS network management system, and realizing portability of the management system based on the cross platform property of Java and package property of the JavaBean. The mode comprises a function package based on the JavaBean and a dynamic graph drawing based on the JavaApplet. The function package defines a function in the JavaBean, and calls a member function to realize the corresponding management functions by declaring to use the JavaBean when the function is needed. The graph drawing needs real-time refresh, and a JavaApplet dynamic inquiry database is used for regularly refreshing a composition framework and data implementation. The mode helps solve the modularization design problem of the TMPLS network management, directly and effectively manages a TMPLS network, and enhances expandability, configurability and portability of the network.

Description

A kind of TMPLS network management module based on JavaBean and JavaApplet melts the originating party formula
Affiliated field
The present invention relates to the realization that a kind of TMPLS network management module melts the originating party formula, belong to the webmaster development field, specifically, relate in the network management system exploitation, realize TMPLS Network Management Function modularized design scheme based on JavaBean encapsulation technology and JavaApplet composition technology.
Background technology
TMPLS (Transport-Mutiprotocol Label Switch) has simplified the mechanism of MPLS towards transmission multiprotocol label retransmission technique, improved the OAM performance of Network Transmission, optimized routing switch mechanism, having expanded the Based Intelligent Control function of network, is a direction that transmits the net development of future generation.The TMPLS network management divides configuration management, fault management, performance management, safety management and accounting management, the realization mechanism of each management function is essentially different, but some common ground is arranged, with JavaApplet different realization mechanisms is carried out the modularization exploitation based on JavaBean, abstract common ground is encapsulated, and realizes the Network Management function by the unification of each module is called.
The exploitation of general network management system is at the functional module of the characteristics design correspondence of network, can communicate by letter between each module but can't call each other, lacks versatility; Need carry out the whole process design to whole functional when needs expansion network management function, extendability is relatively poor; When needs are adjusted webmaster certain or many similar functions and are provided with, need change and debug numerous and diverse usability of program fragments, workload is very big; When needs are transplanted network management system to another environment, need be configured environment on the one hand, also to adjust parameter setting relevant in each functional module on the other hand with running environment, numerous and diverse modification has reduced the portability of network management system.
Based on the JavaBean encapsulation, the common ground of abstract each functional module is formed class, and the characteristic to each functional module is encapsulated respectively simultaneously, by the corresponding function of realizing each functional module that calls to corresponding common class and property class.The improvement of network management function can realize easily by revising common class under this working mechanism, saves a large amount of programing works; Only needing increases corresponding property class with the extended network management function, improves the extensibility of network management system; The common class that environment configurations is relevant is done the quick transplanting that a little adjustment can realize the TMPLS network management system, and portability is greatly improved.
Based on the JavaApplet composition, press managerial demand design chart framework, call the data query class and obtain related data dynamic drafting chart, for different subtypes by JDBC connection database, only need modification chart framework and data to get parms, be easy to expand the dynamic drafting of various charts; Based on the real-time task scheduling function of Java, can realize refreshing automatically of chart; The cross-platform characteristic of Java makes only need provide JVM (Java Virtual Machine) Java Virtual Machine just can realize the transplanting of graph making function, has great significance for the popularization of network management system.
Summary of the invention
The invention provides a kind of TMPLS network management module and melt the mode of sending out, adopt JavaBean encapsulation technology management principle Network Based that the TMPLS network management function is carried out modular design, the common class of abstract each management function, design the property class of different management functions, by execution, adjustment, expansion, transplanting and the popularization of calling, revise, expand the realization Network Management Function to common class and property class.Adopt JavaApplet composition technology to call data query class JavaBean and connect data base dynamic inquiry chart-information data by JDBC, be written into the composition framework after according to chart character data being handled and export complete chart in GUI (Graphic User Interface) graphical user interface, starting the Java task dispatches automatically, call Ajax data monitoring program, realize that the chart dynamic real-time refreshes, by change, increase the adjustment of chart framework, expansion chart effect, change the compatible different data layout of Database field attribute, the timed backup database improves safety of data, and the transplanting of chart data is realized in the derived data storehouse.
The manner mainly comprises the two large divisions: function package, chart Real-time and Dynamic are drawn, and finish exploitation of management function modularization and chart module design (as Fig. 1) in the network management system respectively.Function package realizes based on the JavaBean technology, according to management function design member function, define required member variable, states in JSP the use of certain JavaBean is called its member function and member variable is finished corresponding management functions.Connect database by JDBC, JavaBean can carry out alternately with database, application Java timed task dispatching technique, and the automatic renewal of bottom hardware configuration data in the fulfillment database can realize the automatic generation issuing function of bill in conjunction with the Servlet technology.Use the variation that the Ajax asynchronous technique can judgment data, realize that the design of automatic monitoring function chart module is based on JavaApplet technology and JavaBean technology, the JavaApplet framework calls the JavaBean reading of data and draws, in conjunction with Java timed task dispatching technique real-time update chart.
Description of drawings
Utilization will make above-mentioned purpose of the present invention and advantage more cheer and bright to reference to being described in detail of the preferred embodiment of accompanying drawing, wherein:
Figure 1 shows that the TMPLS network management module melts the system chart of sending out;
Figure 2 shows that the TMPLS network management module melts the process of sending out.
Specific embodiments
The present invention has proposed the encapsulation technology of TMPLS network management according to the characteristics of JavaApplet and JavaBean technology, and network management system is carried out the modularization development and Design.
Referring to Fig. 1 overall system design block diagram of the present invention.Among the figure, the TMPLS Network Management Function is divided into configuration management, fault management, performance management, safety management and accounting management five classes, every class function comprises several groups again, the realization of each group management function all realizes by calling JavaBean (JB) and JavaApplet (JA) function, can call mutually between JavaApplet and the JavaBean and finish required management function.
TMPLS network management module based on JavaBean and JavaApplet melts process such as Fig. 2, mainly comprises two parts, and a part is that management function is called, and another part is the Real-time and Dynamic composition.
Management function is called by the gui management functional unit and is initiated, after receiving management requires, entrance management requires processing module, judges the attribute of administration order, and is forwarded to different processing threads, when receiving non-chart generic request, judge the management function type, enter the function corresponding property class, and when receiving the chart generic request, judge the classification of required demonstration chart, enter corresponding chart framework JavaApplet.
At different functional characteristic classes, processing mode is distinguished to some extent, when the functional characteristic class need be finished the inquiry of data or upgrade, program will go to data base querying and upgrade JavaBean, in JavaBean, be written into the java.sq1 bag, use the JDBC technology, operation Class.forName () connects to drive to database carry out exampleization, use DriverManager.getConnection (url, user, pwd) be connected to database, bear results collection statement of createStatement (), renewal and the inquiry of finishing data respectively by the executeUpdate () function and the executeQuery () function of result set.
When the functional characteristic class need be finished the bottom hardware parameter configuration, program will go to hardware configuration JavaBean, be written into the java.net bag, obtain the item of hardware and the parameter type of the required configuration of GUI, after the parameter query form packing that consults with the Manager of management station and adding packet header, use DatagramSocket () to open the datagram transmit port, packet is sticked take over party IP address to operation DatagramPacket () and port numbers is pressed into datagram, send () function by DatagramSocket () is sent to the corresponding receiving port of management station from opened port, close transmit port simultaneously, open the datagram that port management of monitor station that another and management station consult is returned.SetSoTimeout () the function setup listening period of operation DatagramSocket (), use the receive () function of DatagramSocket () to receive datagram, close receiving port when in the time of setting, can not receive the datagram of returning, the report upper strata takes defeat, use the corresponding hardware configuration information datagram of bottom that snmp protocol obtains if in this time period, receive management station and agent Agent, automatically stop the timing function, simultaneously datagram is unpacked, the hardware configuration reporting parameters is shown to GUI.
If GUI revises configuration parameter, hardware configuration JavaBean obtains hardware parameter type and the corresponding configuration data that GUI has disposed, after the parameter modification form packing that consults with the Manager of management station and adding packet header, mutual according to query script and management station, wait for the operating result that management station returns, if receive that in the timing section management station and agent Agent use snmp protocol and revise the corresponding hardware configuration result data newspaper of bottom, unpacking the result of back decision operation---the reason of success or failure and failure reports GUI to make next step processing.
When the functional characteristic class need be finished monitoring function, program will be used the Ajax technology and go to data monitoring JavaBean, use the asynchronous characteristic of obtaining of Ajax, in certain function call time interval of JavaScript running background setInterval () function setup, calling JSP in function is written into JavaBean use socket monitoring reception and return data or calls the uninterrupted Query Database of data query renewal JavaBean, judged whether new data, return judged result to the JS function body, trigger prompt facility, finish data monitoring and be reflected among the GUI.
When the functional characteristic class need be finished journal function, program enters daily record and safeguards JavaBean, be written into java.io.File function and java.io.FileOutputStream function, receive the log information of required maintenance, use File.createNewFile () function to generate journal file, log information is write in the journal file by PrintStrea m () function.In addition, daily record safeguards that JavaBean can call data query and upgrade JavaBean storing daily record information to management database, realizes the daily record data backup, is easy to log query and transplanting.
When the functional characteristic class need realize upgrading the configuration data library facility automatically, program will be written into the java.util.Timer function, javax.servlet.ServletContextEvent function and javax.servlet.ServletContextListener function, adopt ServletContextEvent and ServletContextListener initialization audiomonitor, call Timer.schedule () task timer-triggered scheduler function, set allocating time at interval, uninterruptedly call hardware configuration JavaBean, use bottom hardware parameter query function, return the bottom configuration information, two these data of returning before and after the contrast, when changing, certain judges whether the scope that changes is reasonable, entering data query renewal JavaBean in the time of in allowed band calls, the data of storage change report the GUI change information simultaneously to corresponding list item; If the bottom configuration variation exceeds allowed band, program directly reports the GUI error message, provides the prompting warning.
When the functional characteristic class need realize that bill generates issuing function automatically, program is after entering Timer.schedule () task timer-triggered scheduler, call bill and generate JavaBean, be written into java.io.File function and java.io.FileOutputStream function, carry out File.createNewFile () function and generate the bill file, use StringBuilde r.append () to add bill information, by PrintStream () function bill information is write in the bill file, call data query simultaneously and upgrade JavaBean, add the bill information that is generated, by the monitoring of data monitoring JavaBean statement data, realize the Real-time and Dynamic issue of bill information.
Management expectancy is handled and is received when the chart class shows request, enter different chart framework JavaApplet at different subtypes, be written into java.awt bag and java.applet bag, use drawString () the function drafting character string of Graphic class, drawImage () function drawing image, drawLine () function is drawn straight line, drawOval () function is drawn circle, drawArc () function is drawn arc, drawRect () draws rectangle, drawPolygon () draws polygon, when needs carry out the three-dimensional drawing, can call draw3DRect () function and fill3DRect () function and draw cube, also can carry Java 3D technology, the three-dimensional picture that development function is powerful.By adding container class or Control Component, realize operational administrative to chart.Finishing the framework of chart builds, the routine call data query upgrades JavaBean, obtain in the management database corresponding list item data according to the figure Table Properties, realize chart first round composition, by<applet the label statement is written into chart to calling of this chart and is shown among the GUI.Use java.util.Timer function, javax.servlet.ServletContextEvent function and javax.servlet.ServletContextListener function that Frame Design and data acquisition functions are carried out the timed task scheduling, do not have and refresh the composition of finishing a new round, Real-time and Dynamic is upgraded chart-information.
Above-described, be possible embodiments of the present invention only, be not so limit to claim of the present invention, so the equivalence that all application instructions of the present invention or accompanying drawing content are done changes, all in like manner all be contained in the scope of the present invention, to ensure inventor's rights and interests, in this statement.

Claims (6)

1, a kind of TMPLS network management module based on JavaBean and JavaApplet melts the originating party formula, it is characterized in that: JavaBean carries out modularization to TMPLS network management function function based on Java encapsulation class, can call its member function to the use of certain JavaBean and member variable is finished specific network management function by statement in the application program.Based on composition class JavaApplet network topology and performance statistics chart are carried out the medelling composition,, obtain corresponding network data in the database, realize the Real-time and Dynamic drawing according to the chart framework of already determining.
2, a kind of TMPLS network management module based on JavaBean and JavaApplet according to claim 1 melts the originating party formula, it is characterized in that: the method for the encapsulation of network management function being used many member functions based on JavaBean, define the logical relation between each member function, the use of this JavaBean is called corresponding member function and member variable is finished required network management function by statement in JSP (Java Server Page).
3, a kind of TMPLS network management module based on JavaBean and JavaApplet according to claim 1 melts the originating party formula, it is characterized in that: the composition technology based on JavaApplet connects database by JDBC (Java Database Connection), obtain data of database, use the multidimensional composition technology of JavaApplet, nested data to TMPLS chart framework carries out dynamic drafting.
4, a kind of TMPLS network management module based on JavaBean and JavaApplet according to claim 2 melts the originating party formula, it is characterized in that: realize automatic calling function based on JavaBean, by design Java timer class, the scheduling of triggering timed task, mutual with the Manager of management station, use snmp protocol to obtain the bottom configuration information, the automatic renewal of TMPLS hardware configuration in the fulfillment database.
5, a kind of TMPLS network management module based on JavaBean and JavaApplet according to claim 2 melts the originating party formula, it is characterized in that: use the asynchronous monitoring billing data of Ajax (Asynchronous JavaScript+Xml) technology based on JavaBean, call the bill generating function when producing billing data, realize the automatic issuing function of bill.
6, a kind of TMPLS network management module based on JavaBean and JavaApplet according to claim 3 melts the originating party formula, it is characterized in that: utilize Java timing function, the timing of realization JavaApplet composition function is called and is refreshed, dynamic real-time performance network change situation.
CNA2008102399006A 2008-12-12 2008-12-12 TMPLS network management modularized development manner based on JavaBean and JavaApplet Pending CN101419554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102399006A CN101419554A (en) 2008-12-12 2008-12-12 TMPLS network management modularized development manner based on JavaBean and JavaApplet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102399006A CN101419554A (en) 2008-12-12 2008-12-12 TMPLS network management modularized development manner based on JavaBean and JavaApplet

Publications (1)

Publication Number Publication Date
CN101419554A true CN101419554A (en) 2009-04-29

Family

ID=40630349

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102399006A Pending CN101419554A (en) 2008-12-12 2008-12-12 TMPLS network management modularized development manner based on JavaBean and JavaApplet

Country Status (1)

Country Link
CN (1) CN101419554A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426926A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Processing method and apparatus for regularly issued data
CN105117379A (en) * 2015-09-11 2015-12-02 广州华多网络科技有限公司 Automatic program text converting method and device
CN108228783A (en) * 2017-12-27 2018-06-29 中国石油化工股份有限公司江汉油田分公司勘探开发研究院 Shale gas well collecting method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426926A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Processing method and apparatus for regularly issued data
CN104426926B (en) * 2013-08-21 2019-03-29 腾讯科技(深圳)有限公司 The processing method and processing device of data is issued in timing
US11314703B2 (en) 2013-08-21 2022-04-26 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing timedly-published data
CN105117379A (en) * 2015-09-11 2015-12-02 广州华多网络科技有限公司 Automatic program text converting method and device
CN108228783A (en) * 2017-12-27 2018-06-29 中国石油化工股份有限公司江汉油田分公司勘探开发研究院 Shale gas well collecting method and device

Similar Documents

Publication Publication Date Title
CN100583783C (en) Integration tool for telecommunication area inheritance system based on configuration policy
CN106790112B (en) Node operating system integrating lightweight block chains and data updating method
CN102420697B (en) A kind of comprehensive resources management system for monitoring of configurable service and method thereof
CN104932364A (en) OPC UA conversion apparatus of Modbus communication protocol, and method
CN101826018B (en) Interactive development system and method for interface of network element management system
CN106899638A (en) A kind of fusions networking relationships system for solving Heterogeneous data and method
CN100580622C (en) Telecommunication region modeling tool based on unified modeling language and modeling method
CN106502668B (en) A kind of interface package method and system for realizing Android JNI reflection
CN104052759A (en) System for realizing add-and-play technology of internet of things
CN102523225A (en) Decoupling method in distributed loosely-coupled framework and distributed loosely-coupled framework platform
CN102081611A (en) Method and device for synchronizing databases of master network management system and standby network management system
CN102333108A (en) Distributed cache synchronization system and method
CN101567028A (en) Modularized hardware elementary diagram automatic generating method
CN103390018B (en) A kind of Web service data modeling and searching method based on SDD
CN103117881A (en) Resource management system of Internet of Things
CN110187986A (en) A kind of command management method, system, device and computer readable storage medium
CN101419554A (en) TMPLS network management modularized development manner based on JavaBean and JavaApplet
CN102437921B (en) Memory method and network device of configuration information
CN102984272B (en) A kind of system of remote control mobile terminal communication capacity and method thereof
Yao et al. Design and implementation of IOT gateway based on embedded μTenux operating system
CN102739788A (en) Field equipment communication method based on European installation bus (EIB) protocol
CN101110700A (en) Explorer in resource management platform
CN103684904A (en) Tri-networks integration network monitoring system based on IP
CN102854862B (en) Functional block with FF (foundation fieldbus) interface
CN109388770A (en) Web page generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090429