Large user's intelligent power information interaction application framework
Technical field
The invention belongs to the technical field of soft project and application framework, relate to design, exploitation and the deployment of intelligent power field large user's power information interactive application software, be a kind of large user's intelligent power information interaction application framework.
Background technology
State Grid Corporation of China with offer as a tribute clean energy resource, promote economic development, service society harmony be basic mission, the strong intelligent grid of unification of generating, transmission of electricity, power transformation, distribution, electricity consumption and each link of scheduling of electric power system is contained in the proposition construction.Wherein, energy stream, information flow and Business Stream between research electric company and the large user realize that electric company and the two-way intelligent interaction of large user are key links of intelligent power.
Two-way interaction is driven by factors such as electricity price, the quality of power supply, efficiency management, safety utilization of electric power, value-added services between electric company and the user.Transformer station/power distribution room equipment operation information, electric network fault information, sorting device power consumption information, equipment running status information, quality of power supply information, power quality controlling equipment running status information, energy storage information, self power generation information, the environmental information of large user inside need be gathered by electric company, again in conjunction with information such as power distribution network information, schedule information, power transformation meterings, realize intelligent power interaction between electric company and the large user, the service of various personalizations, variation, facilitation is provided for large user's intelligent power.
Electric company and large user's storage was relatively independent in the past, the security strategy that intranet and extranet separate has been carried out in electric company's side strictness, electric company fails to set up the electricity consumption data that effective contact channel utilizes user side, thereby can not further improve electricity consumption service quality, therefore, the realization of two-way intelligent interaction on the one hand need be by means of application software system; Must between large user and electric company, set up the contact channel of unified data, instruction and application function on the other hand.Need to design a kind of application framework system, with standardization, the convenience of assurance large user intelligent power information interaction application function exploitation, and application function is disposed and the high efficiency of operation and easy autgmentability for this reason.
Summary of the invention
The problem to be solved in the present invention is: the interactive means between electric company and the user can not satisfy the demands at present, need a kind of application framework system of design, with standardization, the convenience of the interactive application functional development between assurance large user's intelligent power information and the electric power enterprise, and application function is disposed and the high efficiency of operation and easy autgmentability.
Technical scheme of the present invention is: large user's intelligent power information interaction application framework, the interactive communication that is used for user and electric power enterprise, comprise communication management server, security administration server, application server and terminal applies framework, the terminal applies framework is the Client end, communication management server is the Server end, connect by network between the two, form the C/S structure, wherein the user is positioned at the Client end, electric power enterprise is positioned at the Server end, the SOCKET that communication management server response terminal application framework sends, HTTP, the Real-time Transport Protocol request, security administration server is between communication management server and application server, realize application access fail safe control, all are from the terminal applies framework, be forwarded to the access request of application server by communication management server, all, dispose the application function assembly in the application server, call for the terminal applies framework by the authentication of security administration server.
Communication management server office terminal application framework is managed its log-on message when the terminal applies framework starts, and keeps heartbeat to grasp the health status of terminal applies framework; Deposit the program file of terminal applies framework and functional unit thereof on the communication management server, its version information is managed for configuration, according to the auto-update and the extended requests of configuration information response terminal application framework and functional unit thereof;
Security administration server meets the J2EE standard, is structured on the WEB SERVER, and to the HTTP request that the terminal applies framework sends, promptly URL carries out safety certification;
Communication management server is forwarded to security administration server with the URL that the terminal applies framework sends, security administration server was ganged up encrypting and authenticating additional among the URL with SOCKET and was mail to that communication management server is decrypted and authentication, obtaining checking by after the information, create session information, and this URL mail to application server, the functional unit on the application server when service response is provided to the legitimacy of security administration server verification session information;
The terminal applies framework is responsible for the initialization of terminal equipment, and by every application function of reflex mechanism dynamic load application program realization terminal, the terminal applies framework provides following build-in function assembly: a) browser component; B) advertisement player module; C) message subscribing assembly; D) input method assembly; E) video calling assembly.
Communication management server adopts concentrating type or distributed deployment, the terminal applies framework communication management server that tabulation is selected or switching can arrive according to communication management server under the situation of distributed deployment; Security administration server and application server adopt concentrating type to dispose; Application server adopts distributed deployment; When the terminal applies framework is connected with the other parts of application framework by the Internet, gives communication management server and security administration server configuring internet fixed ip address, and be deployed in the outer barrier of electric power enterprise information network.
All application function assemblies are deployed on the application server with compressed package situation independently, and call the original service application function of electric power enterprise information system by the mode of Web Service, large user's intelligent power information interaction application framework is provided with the safe access control interface routine of class and two kinds of forms of jsp, and supply is used with the functional unit exploitation.
The present invention is directed to the interaction between electric company and the user, a kind of application framework is provided, framework provides the reusable public structure that can share between application program, application framework is not the small pieces program that comprises the member application program, but realized the bottom service of the general complete function of certain application, use the user of this framework can on the basis that a general utility functions has been realized, begin concrete system development.Framework is ripe, sane, and application framework is paid attention to the software reuse towards professional domain, has the field correlation, and member carries out the compound system that can move that generates according to framework.
Substantive distinguishing features and obvious improvement that the present invention gives prominence to are mainly reflected in:
1) application framework: the present invention proposes the complete application framework of a cover, design that can standard large user intelligent power information interaction system, the accelerate development process, and provide and reliably dispose efficiently and operational mode;
2) fail safe: the present invention has taken into full account access security control on architecture design, by terminal applies framework, communication management server, security administration server, application server access security Mechanism Design all linked with one another, effectively avoid stealing unwarranted visits such as chain, forged identity, satisfy the security strategy of electric company's side;
3) standardization: the present invention abides by grid company relevant enterprise standard and industry relevant criterion, and does not use any third party's development kit, satisfies the security strategy requirement of power information interaction;
3) convenience: code section of the present invention has taken into full account that module is reused, level separation, nuclear interface standardizing separate with the portable code.All form corresponding assembly and corresponding SDK is provided at aspects such as communication, data acquisitions, increased the portability of secondary development;
4) high efficiency: the present invention in database access, use to carry out in efficient, the audio frequency and video transmission and all guaranteed high efficiency, client reaches that general application can guarantee the 1-2 response speed of second when connecting more than 1000;
5) autgmentability: the present invention has taken into full account its autgmentability on each link, and technology such as model-driven, data-driven, code injection should be widely adopted in design and development process.
Description of drawings
Fig. 1 is an application framework schematic diagram of the present invention.
Embodiment
The present invention proposes an application framework that is applicable to that the information interaction of large user's intelligent power is used, meeting under the prerequisite of State Grid Corporation of China to the information security requirement, this system framework allows large user to be linked into the information network of Utilities Electric Co.'s side by common networks such as dedicated network or INTERNET, and the mode application software function by C/S or B/S realizes the mutual of data and instruction.This framework has taken into full account the support to various deployment way such as distributed deployment, concentrating type deployment and multistage deployment; Support the auto-update and the function expansion of application framework self; Support the auto-update and the expansion of each application function assembly under the online mode; The integration standard of application function assembly under C/S and the B/S framework is provided and realizes interface.
Purpose of the present invention is achieved through the following technical solutions:
As Fig. 1, the present invention includes the terminal applies framework of communication management server, security administration server, application server and support auto-update and function expansion, have the integration standard of deployment mode and application function assembly flexibly between them and realize interface.
The terminal applies framework is the Client end, and communication management server is the Server end, forms the C/S structure between the two, and communication management server is responsible for the request that the response terminal application framework sends.Security administration server is responsible for application access fail safe control, between communication management server and application server, all all must be by the authentication of security administration server from the terminal applies framework, be forwarded to the access request of application server by communication management server.The application function deployment of components meets certain integration standard and realizes interface on application server, just can be discerned and call by the terminal applies framework.
Communication management server: the office terminal application framework, when the terminal applies framework starts, manage its log-on message, and keep heartbeat to grasp the health status of terminal applies framework; Various protocols requests such as SOCKET, the HTTP that responsible response terminal application framework sends, RTP; Auto-update and extended requests according to configuration information response terminal application framework and functional unit.
The terminal applies framework is disposed each example of back all unique identifier, when it starts unique identifier and relevant information being sent to communication management server registers, communication management server is compared the log-on message of depositing in these information and date storehouses, confirms the legitimacy of terminal applies framework identity.After succeeding in registration, communication management server generates unique encrypting and authenticating string according to hour of log-on, and be attached on the application link (URL) that sends to the terminal applies framework, when monitoring terminal applies framework off-line, communication management server will be nullified its log-on message and encrypting and authenticating string.
In SOCKET communication, support to finish port model (AIX, LINUX etc.) under the dissimilar server environments, and the management algorithm in socket pond is improved, increase the operational efficiency that the chained list mode is optimized the pond; Support simultaneously to block and two kinds of working methods of unblock, the unblock mode is used to handle routine call and the message transmission between C/S, has good concurrent ability, and the obstruction mode is used to handle the transmission of document flow, guarantees the transactional integrity of file transfers.
Support http protocol, the communication server can receive the HTTP request of terminal applies framework transmission and forward it to security administration server.
Support RTP, be used for providing real-time video and function of voice communication to client.
Deposit the program file of terminal applies framework and functional unit thereof on the communication management server, its version information is managed for configuration.When receiving the upgrade request of terminal applies framework new program file is transferred to the terminal applies framework.
Security administration server: meet the J2EE standard, be structured on the WEB SERVER, safety certification is carried out in the HTTP request (URL) that the terminal applies framework sends.
Communication management server is forwarded to security administration server with the URL that the terminal applies framework sends, security administration server was ganged up encrypting and authenticating additional among the URL with SOCKET and was mail to that communication management server is decrypted and authentication, obtaining checking by after the information, create session information, and this URL is mail to application server.Functional unit on the application server can be investigated the legitimacy of session information to security administration server when service response is provided.This mechanism effectively stops steals the generation without the HTTP request of safety certification such as chain.
Application server: meet the J2EE standard, be structured on the WEB SERVER, Componentized is disposed service application software, or the calling interface between registration and realization and the external business application.
Terminal applies framework: be responsible for the initialization of terminal equipment, realize every application function of terminal by reflex mechanism dynamic load application program.
The terminal applies framework provides the interactive interface of complete window manager application programs to manage.
The renewal of the application that the terminal applies framework can be managed by automatic refresh routine implementation framework also can realize the renewal of self and functional unit simultaneously, also is responsible for the renewal of automatic refresh routine in addition.
The terminal applies framework has the function of the multiple hardwares equipment that management and terminal self link to each other, and comprises to utilize softdog to encrypt self hardware information, utilize smart card reader expansion control of authority, utilize the infrared touch screen to realize multi-touch function etc.
The terminal applies framework has the health status that finger daemon constantly detects the self-operating environment.
The terminal applies framework provides following build-in function assembly: a) browser component; B) advertisement player module; C) message subscribing assembly; D) input method assembly; E) video calling assembly.
Deployment mode: application framework has taken into full account concentrating type and distributed deployment way in design, and can both be used in combination.According to the actual conditions of frame application scene, situations such as support large-scale concurrent, multiple network access, multistage deployment have been considered.
Communication management server can be disposed with the mode of cluster, also can carry out distributed deployment.The terminal applies framework can be according to the communication server that the communication management server tabulation is selected or switching can arrive under the situation of distributed deployment.
Security administration server and application server also can be disposed with the mode of cluster.
Application server is supported distributed deployment.
When the terminal applies framework inserts by the Internet, need to have the communication management server and the security administration server of the Internet fixed ip address in the outer barrier of electric power enterprise information network middle part administration.
Typical deployment mode is that concentrating type is disposed and distributed deployment combines, communication management server, security administration server, application server the electric power enterprise Intranet with outside the barrier all dispose with concentrating type, satisfied the needs of different network insertion approach.And application server simultaneously also the electric power enterprise Intranet with outside the barrier carried out distributed deployment.
The integration standard of application function assembly and realization interface: be the universality that guarantees application framework, and consider the application function assembly expansion, upgrade the operation should not have influence on whole framework, the application function assembly is deployed in separately on the application server with the situation of compressed package independently, and calling the original service application function of electric power enterprise information system should be by the mode of Web Service.
Framework provides interface routine (with class and two kinds of forms of the jsp) supply of safe access control to use with the functional unit exploitation, can be supported by framework to guarantee the visit of using the page.
With Nanjing gear Manufacturing Co., Ltd is example, in the smart-interactive terminal deploy at this enterprise electrical management center the terminal applies framework; Extend power optical fiber to enterprise electrical management center from nearest transformer station, the smart-interactive terminal of this enterprise has been connected to electric company's internal network; The terminal applies framework is communicated by letter with the communication management server that is deployed in electric company and is obtained the inlet of the types of functionality that it can use, and is presented on the terminal desktop; When the business electrical director uses these functions, access request is sent to be delivered behind the communication management server to the conduct interviews verification of legitimacy of security administration server, verification is forwarded to application server by the back request, provides the application function response by application server.Application function is distributed on the application server with the form of assembly, increase new serviced component or upgrade existing serviced component, to terminal less than the influence.
This user uses between this programme and electric company and realizes information interaction at present.Understanding that can be real-time self electricity consumption situation, and account of the history is carried out the analysis of multi-angle; Can in time grasp plan informations such as relevant power failure, maintenance; The very first time obtains the feedback information of aspects such as safety utilization of electric power inspection; Professional circulation situation etc. is bid to host in inquiry easily, has obtained the good actual application effect.