CN101799768A - Web service packaging system of power cataclysm simulation network - Google Patents

Web service packaging system of power cataclysm simulation network Download PDF

Info

Publication number
CN101799768A
CN101799768A CN 201010127229 CN201010127229A CN101799768A CN 101799768 A CN101799768 A CN 101799768A CN 201010127229 CN201010127229 CN 201010127229 CN 201010127229 A CN201010127229 A CN 201010127229A CN 101799768 A CN101799768 A CN 101799768A
Authority
CN
China
Prior art keywords
submodule
web service
module
simulation network
cataclysm
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.)
Granted
Application number
CN 201010127229
Other languages
Chinese (zh)
Other versions
CN101799768B (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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN2010101272293A priority Critical patent/CN101799768B/en
Publication of CN101799768A publication Critical patent/CN101799768A/en
Application granted granted Critical
Publication of CN101799768B publication Critical patent/CN101799768B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a Web service packaging system of a power cataclysm simulation network, belonging to the technical field of computer application. The Web service packaging system comprises a Web service generation module, a service deployment module and two monitoring modules, wherein the Web service generation module and the service deployment module are positioned on a client; the monitoring modules are positioned on a server; the Web service generation module is connected with the service deployment module; the two monitoring modules are both connected with the service deployment module; the Web service generation module comprises a generating project directory structure submodule, a generating code character string submodule, a generating code file submodule, a generating project configuration submodule, an additional dependent library submodule and a packaging submodule; the service deployment module transmits a deployment file to the server; and each monitoring module comprises a receiving submodule and a redeployment submodule. The invention automatically generates the Web service application packaging the power cataclysm simulation network, also packages the generated Web service application, deploys the generated Web service application to a remote server and fast establishes a power cataclysm simulation system.

Description

The Web service package system of power cataclysm simulation network
Technical field
What the present invention relates to is the system in a kind of Computer Applied Technology field, specifically is a kind of Web service package system of power cataclysm simulation network.
Background technology
The Important Project power catastrophe simulation system damage and failure evolutionary process of technical research Important Project under great disaster effects such as shake, violent typhoon doughtily that use a computer discloses the micromechanism of damage of Important Project and destroys collapse mechanism.Power catastrophe simulation process is one and uses a computer and carry out extensive science calculation process, common technological means is that power cataclysm simulation network is packaged into Web service, be deployed on the powerful server of performance, utilize the computing power of server to handle the catastrophe simulation job.Power catastrophe simulation process needs the comprehensive multiple catastrophe simulation grid that uses, and present case is to develop the Web service application program separately for each catastrophe simulation grid, encapsulates each catastrophe simulation grid, and this way wastes time and energy very much.
Code Generation is the computer technology of coding automatically.In Software Development Platform of today and framework, use the code Core Generator to help the programmer more and more and make up application program.Code Generation is mainly used in compiling and generates field and private code generation field with optimization field, versatility code.The private code maker generates small-sized system or program usually towards special-purpose field, and for example: the finite element program automatic creation system, the data stream automatic code that is used for multimedia processor generates scheme.
The Web service application program of available dynamic catastrophe simulation grid all is manually exploitation, not only development efficiency is low, do not support automatic deployment, and code quality can not guarantee, not find so far towards the open report of the web service encapsulates system documentation of power cataclysm simulation network.
Summary of the invention
The objective of the invention is to overcome the above-mentioned deficiency of prior art, a kind of Web service package system of power cataclysm simulation network is provided.The present invention can generate the complete Web service that has encapsulated power cataclysm simulation network automatically and use, and can be deployed to remote server to the application packing that generates, and makes up a power catastrophe simulation system fast.
The present invention is achieved by the following technical solutions:
The present invention includes: Web service generation module, service arrangement module and two monitoring modules, wherein: Web service generation module and service arrangement module are positioned on the client computer, first monitors module is positioned on the computer server, second monitors module is positioned on the Web server, title, IP address, master program file name and principal program path information that the Web service generation module links to each other with the service arrangement module and transmits power cataclysm simulation network, two monitoring modules all link to each other with the service arrangement module and transmit the Web service application message.
Described Web service generation module generates complete Web service and uses, this module comprises: generate project bibliographic structure submodule, generating code character string submodule, generating code file submodule, generate the project configuration submodule, add and rely on storehouse submodule and packing submodule, wherein: generate project bibliographic structure submodule link to each other with the packing submodule title of transmit power cataclysm simulation network and the general bibliographic structure information of generation Web service application, generating code character string submodule links to each other with generating code file submodule and transmits the code character string information that generates, link to each other with the packing submodule IP address of the server that transmits the power cataclysm simulation network place of generating code file submodule, power cataclysm simulation network master program file name, power cataclysm simulation network principal program path information, generation project configuration submodule links to each other with the packing submodule and transmits the name information of power cataclysm simulation network, and interpolation dependence storehouse submodule links to each other with the packing submodule and transmits the library file name of Web service application-dependent.
Described service arrangement module is to the Server Transport deployment file, by the transmission buffer zone that is arranged in the service arrangement module byte of the deployment file that sends cushioned.
Described monitoring module comprises: receive submodule and redeploy submodule, wherein: receive the submodule transmission Web service application message that links to each other with the service arrangement module, receive submodule and redeploy submodule and link to each other and transmit the Web service application message that redeploys.
Described reception submodule is provided with send buffer, is cushioned by the byte of send buffer to the Web service application message of reception.
Compared with prior art, the invention has the beneficial effects as follows: the Web service application system of power cataclysm simulation network is exploitation automatically, avoided the complicacy of hand-coding Web service application system, improved development efficiency, support to dispose automatically, and the code quality height has reduced the development difficulty of power cataclysm simulation network platform.
Description of drawings
Fig. 1 is that system of the present invention forms synoptic diagram.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated: present embodiment is being to implement under the prerequisite with the technical solution of the present invention, provided detailed embodiment and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
Present embodiment uses the Eclipse platform, as shown in Figure 1, comprise: Web service generation module 1, service arrangement module 2 and two monitoring modules, wherein: Web service generation module 1 is positioned on the client computer with service arrangement module 2, first monitors module 3 is positioned on the computer server, second monitors module 4 is positioned on the Web server, Web service generation module 1 links to each other with service arrangement module 2 and transmits the title of power cataclysm simulation network, the IP address, master program file name and principal program path information, two monitoring modules all link to each other with service arrangement module 2 and transmit the Web service application message.
Described Web service generation module 1 generates complete Web service and uses, this module comprises: generate project bibliographic structure submodule 5, generating code character string submodule 6, generating code file submodule 7, generate project configuration submodule 8, add and rely on storehouse submodule 9 and packing submodule 10, wherein: generate project bibliographic structure submodule 5 link to each other with packing submodule 10 title of transmit power cataclysm simulation network and the general bibliographic structure information of generation Web service application, generating code character string submodule 6 links to each other with generating code file submodule 7 and transmits the code character string information that generates, link to each other with the packing submodule 10 IP address of the server that transmits the power cataclysm simulation network place of generating code file submodule 7, power cataclysm simulation network master program file name, power cataclysm simulation network principal program path information, generate the project configuration submodule 8 transmission power cataclysm simulation network name information that links to each other with packing submodule 10, add relying on storehouse submodule 9 and link to each other with packing submodule 10 and transmit the library file name of Web service application-dependent.
Described generation project bibliographic structure submodule 5 adds nature and class.path to project, wherein: project Nature mechanism has been created concrete incidence relation between Eclipse instrument and workspace project, for management, share and persistence project and instrument between relation support is provided, utilize the configuration file of Nature mechanism establishment project and write configuration information hereof.For Java Web Project, determine that the project mechanism that will add has four kinds:
1)org.eclipse.jdt.core.javanature;
2)org.eclipse.jem.workbench.JavaEMFNature;
3)org.eclipse.wst.common.project.facet.core.nature;
4)org.eclipse.wst.common.modulecore.ModuleCoreNature;
Described class.path comprises: source code file folder class.path, tomcat container class path, Java Runtime Environment class.path and structure file class.path.
Described interpolation relies on storehouse submodule 9 and adds the third party library that relies on for the Web service and the Web service client that generate.The Eclipse platform is regarded the Eclipse plug-in unit as a bag, and each file in the plug-in unit is regarded a resource as, and the position of resource identifies with URL(uniform resource locator).Obtain the URL of each library file that will extract in the plug-in unit, thereby navigate to the jar file that comprises in the plug-in unit, the form with stream reads the byte of jar file in the plug-in unit then, is written in the library file path of project of automatic generation to go.
Described packing submodule 10 copies in the new file generating the required All Files of deployment file, carries out the script of being responsible for the packing deployment file in new folder.The template of script file is as follows:
<%@jet?package=″webservicesgenerator.generator″class=″WebClientCmd″
%>
jar?cf<%=argument%>.war.
Wherein: use JAR to order the deployment file of packing, parameter options c represents to create new archive file, and parameter options f specifies the archive file name, and argument is a template parameter, information dynamic replacement such as the catastrophe simulation grid title that will be selected in the guide page, war is the deployment file type.
Described service arrangement module 2 is to the Server Transport deployment file, and this module is provided with the transmission buffer zone, sends buffer zone the byte that sends is cushioned.
Described monitoring module comprises: receive submodule and redeploy submodule, wherein: receive the submodule transmission Web service application message that links to each other with service arrangement module 2, receive submodule and redeploy submodule and link to each other and transmit the Web service application message that redeploys.
Described reception submodule is provided with send buffer, and send buffer cushions the byte of the Web service application message of reception.
The course of work of present embodiment: start the Eclipse platform, select the power cataclysm simulation network title of encapsulation, the IP address of the server of catastrophe simulation grid is disposed in input, simulation grid master program file title and master program file routing information, in the process that generates Web service, Web service generation module 1 generates the bibliographic structure of Web service and Web service client, in configuration file, add nature and class.path information, add the library file that relies on, the generating code character string, and the code character string outputed to disk file, after all files generated and finishes, packing submodule 10 was packaged into the file of disposing with the project that generates in Web; Service arrangement module 2 is deployed to computer server to the Web service packaging file, and Web service client packaging file is deployed to Web server; Monitoring module on computer server and the Web server receives the file that transmits, and redeploy the Web service application message after receiving behind the connection request that listens to service arrangement module 2.
The advantage of present embodiment: prior art all is to utilize several days time to realize that manually the Web service of power cataclysm simulation network encapsulates, and complexity and efficient are low; Present embodiment utilizes tens seconds time to realize the Web service encapsulation of power cataclysm simulation network automatically, simply effectively, has improved efficient, has reduced difficulty.

Claims (5)

1. the Web service package system of a power cataclysm simulation network, it is characterized in that, comprise: the Web service generation module, service arrangement module and two monitoring modules, wherein: Web service generation module and service arrangement module are positioned on the client computer, first monitors module is positioned on the computer server, second monitors module is positioned on the Web server, the Web service generation module links to each other with the service arrangement module and transmits the title of power cataclysm simulation network, the IP address, master program file name and principal program path information, two monitoring modules all link to each other with the service arrangement module and transmit the Web service application message.
2. the Web service package system of power cataclysm simulation network according to claim 1, it is characterized in that, described Web service generation module generates complete Web service and uses, this module comprises: generate project bibliographic structure submodule, generating code character string submodule, generating code file submodule, generate the project configuration submodule, add and rely on storehouse submodule and packing submodule, wherein: generate project bibliographic structure submodule link to each other with the packing submodule title of transmit power cataclysm simulation network and the general bibliographic structure information of generation Web service application, generating code character string submodule links to each other with generating code file submodule and transmits the code character string information that generates, link to each other with the packing submodule IP address of the server that transmits the power cataclysm simulation network place of generating code file submodule, power cataclysm simulation network master program file name, power cataclysm simulation network principal program path information, generation project configuration submodule links to each other with the submodule of packing and transmits power cataclysm simulation network name information, and interpolation dependence storehouse submodule links to each other with the submodule of packing and transmits the library file name of Web service application-dependent.
3. the Web service package system of power cataclysm simulation network according to claim 1, it is characterized in that, described service arrangement module is to the Server Transport deployment file, by the transmission buffer zone that is arranged in the service arrangement module byte of the deployment file that sends cushioned.
4. the Web service package system of power cataclysm simulation network according to claim 1, it is characterized in that, described monitoring module comprises: receive submodule and redeploy submodule, wherein: receive the submodule transmission Web service application message that links to each other with the service arrangement module, receive submodule and redeploy submodule and link to each other and transmit the Web service application message that redeploys.
5. the Web service package system of power cataclysm simulation network according to claim 4 is characterized in that, described reception submodule is provided with send buffer, is cushioned by the byte of send buffer to the Web service application message of reception.
CN2010101272293A 2010-03-19 2010-03-19 Web service packaging system of power cataclysm simulation network Expired - Fee Related CN101799768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101272293A CN101799768B (en) 2010-03-19 2010-03-19 Web service packaging system of power cataclysm simulation network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101272293A CN101799768B (en) 2010-03-19 2010-03-19 Web service packaging system of power cataclysm simulation network

Publications (2)

Publication Number Publication Date
CN101799768A true CN101799768A (en) 2010-08-11
CN101799768B CN101799768B (en) 2012-11-28

Family

ID=42595453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101272293A Expired - Fee Related CN101799768B (en) 2010-03-19 2010-03-19 Web service packaging system of power cataclysm simulation network

Country Status (1)

Country Link
CN (1) CN101799768B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973716A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
CN104317588A (en) * 2014-10-22 2015-01-28 西安未来国际信息股份有限公司 Software component automatic packaging method
US9632804B2 (en) 2013-01-24 2017-04-25 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN105391784B (en) * 2015-11-24 2018-06-26 无锡江南计算技术研究所 Peer-to-peer communications method based on Eclipse

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070074215A1 (en) * 2005-09-27 2007-03-29 Bethea Timothy J Stateless server-side automation of web service requests using dynamically generated web service interfaces
CN101132570A (en) * 2006-08-22 2008-02-27 中兴通讯股份有限公司 Provisioning server and provisioning method
CN101206648A (en) * 2006-12-20 2008-06-25 鸿富锦精密工业(深圳)有限公司 Network service generating system and method
CN101588347A (en) * 2008-05-23 2009-11-25 中兴通讯股份有限公司 Method for automatically generating network service client terminal
CN101609415A (en) * 2009-07-17 2009-12-23 武汉大学 Universal service calling system and method based on middleware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070074215A1 (en) * 2005-09-27 2007-03-29 Bethea Timothy J Stateless server-side automation of web service requests using dynamically generated web service interfaces
CN101132570A (en) * 2006-08-22 2008-02-27 中兴通讯股份有限公司 Provisioning server and provisioning method
CN101206648A (en) * 2006-12-20 2008-06-25 鸿富锦精密工业(深圳)有限公司 Network service generating system and method
CN101588347A (en) * 2008-05-23 2009-11-25 中兴通讯股份有限公司 Method for automatically generating network service client terminal
CN101609415A (en) * 2009-07-17 2009-12-23 武汉大学 Universal service calling system and method based on middleware

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《http://deci.dlut.edu.cn/ndbg_content.asp?id=77》 20091231 翁楚良 重大工程动力灾变模拟系统集成的关键技术研究 1-3 1 , *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973716A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
CN103973716B (en) * 2013-01-24 2015-07-15 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
US9632804B2 (en) 2013-01-24 2017-04-25 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN104317588A (en) * 2014-10-22 2015-01-28 西安未来国际信息股份有限公司 Software component automatic packaging method
CN104317588B (en) * 2014-10-22 2018-03-27 西安未来国际信息股份有限公司 A kind of software component automates method for packing
CN105391784B (en) * 2015-11-24 2018-06-26 无锡江南计算技术研究所 Peer-to-peer communications method based on Eclipse
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN107291458B (en) * 2017-06-06 2020-07-14 北京知道创宇信息技术股份有限公司 Plug-in construction method and system for Web application and server

Also Published As

Publication number Publication date
CN101799768B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN101799768B (en) Web service packaging system of power cataclysm simulation network
CN111930388B (en) Sustainable integration method and system based on k8s and dock containers
CN108196915B (en) Code processing method and device based on application container engine and storage medium
CN102609281B (en) Distributed software patch update method and system
JP2016533592A (en) Method and system for automatically compiling an iOS application
CN103377075A (en) Task management method, device and system
CN103092602A (en) Software development kit and terminal apparatus
CN102902620B (en) GDB (genome database) based heterogeneous computing and debugging environment realizing system
CN106339237A (en) Plug-in loading frame for WEB application in field of JavaEE and method
CN111008016A (en) Multi-environment compiling system and method based on docker container
CN103077038A (en) Method for dynamically generating and compiling .NET item
US8838955B2 (en) Two-way, secure, data communication within critical infrastructures
CN110650192A (en) New energy monitoring system based on Beidou short message communication
CN114416169A (en) Data processing method, medium, device and computing equipment based on micro front end
CN106550026B (en) Network communication device and method
CN103533017B (en) service calling method and system
CN110620819B (en) Block chain interaction method and device, computer equipment and readable storage medium
CN117176633A (en) Bus cross-device communication method, device, equipment and storage medium
US8626720B2 (en) System and method of reconstructing complex custom objects
CN102710769A (en) Web Service client and bulk data transmission method thereof
JP7013326B2 (en) Information processing system, information processing device, and control method of information processing system
CN101833469B (en) Method and device for simulation development of set-top box application functions
CN103209086B (en) Penetrate transfer machine and realize the method for server maintenance, system and transfer machine
CN103164462A (en) Method and system for downloading patent literature
CN115514611B (en) Message processing method, device, equipment and storage medium

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121128

Termination date: 20150319

EXPY Termination of patent right or utility model