CN101799768B - 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
CN101799768B
CN101799768B CN2010101272293A CN201010127229A CN101799768B CN 101799768 B CN101799768 B CN 101799768B CN 2010101272293 A CN2010101272293 A CN 2010101272293A CN 201010127229 A CN201010127229 A CN 201010127229A CN 101799768 B CN101799768 B CN 101799768B
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.)
Expired - Fee Related
Application number
CN2010101272293A
Other languages
Chinese (zh)
Other versions
CN101799768A (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

Images

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 evolutionary process of technical research Important Project under great disaster effects such as shake, violent typhoon doughtily that use a computer, the micromechanism of damage that discloses Important Project with destroy collapse mechanism.Power catastrophe simulation process is one and uses a computer and carry out extensive science calculation process; Common technological means is to be packaged into Web service to power cataclysm simulation network; 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 specialized, 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 public reported 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 realizes through following technical scheme:
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 directory structon module, generating code character string submodule, generating code file submodule, generate the project configuration submodule, add dependence storehouse submodule and packing submodule; Wherein: generate project directory structon module 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; Generating code file submodule link to each other with the packing submodule IP address, power cataclysm simulation network master program file name, the power cataclysm simulation network principal program path information of the server that the transmission power cataclysm simulation network belongs to; 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, supported to dispose automatically; And code quality is high, 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 provided detailed embodiment and concrete operating process, but protection scope of the present invention is not limited to following embodiment being to implement under the prerequisite with technical scheme of the present invention.
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, and first monitors module 3 is positioned on the computer server, and second monitors module 4 is positioned on the Web server; Title, IP address, master program file name and principal program path information that Web service generation module 1 links to each other with service arrangement module 2 and transmits power cataclysm simulation network, 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 directory structon module 5, generating code character string submodule 6, generating code file submodule 7, generate project configuration submodule 8, add dependence storehouse submodule 9 and packing submodule 10; Wherein: generate project directory structon module 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; Generating code file submodule 7 link to each other with packing submodule 10 IP address, power cataclysm simulation network master program file name, the power cataclysm simulation network principal program path information of the server that the transmission power cataclysm simulation network belongs to; 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 directory structon module 5 is added 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, confirm 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.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, in new folder, carries out the script of being responsible for the packing deployment file.The template of script file is following:
<%jet?package=″webservicesgenerator.generator″class=″WebClientCmd″
%>
jar?cf<%=argument%>.war.
Wherein: use JAR to order the deployment file of packing; Parameter options c representes 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 of sending 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, IP address, simulation grid master program file title and the master program file routing information of the server of catastrophe simulation grid disposed in input; 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, adds nature and class.path information, adds 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 in Web, disposing with the project that generates; Service arrangement module 2 is deployed to computer server to the Web service packaging file, is deployed to Web server to Web service client packaging file; Monitoring module on computer server and the Web server receives the file that transmits, and after reception finishes, redeploys the Web service application message 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 complicacy 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 (4)

1. the Web service package system of a power cataclysm simulation network; It is characterized in that; Comprise: 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, and first monitors module is positioned on the computer server, and second monitors module is positioned on the Web server; Web service generation module link to each other with the service arrangement module title of transmitting power cataclysm simulation network, IP address, master program file name and the principal program path information of power cataclysm simulation network are monitored modules for two and are all linked 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 directory structon module, generating code character string submodule, generating code file submodule, generate the project configuration submodule, add dependence storehouse submodule and packing submodule; Wherein: generate project directory structon module 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; Generating code file submodule link to each other with the packing submodule IP address, power cataclysm simulation network master program file name, the power cataclysm simulation network principal program path information of the server that the transmission power cataclysm simulation network belongs to; 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.
2. 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.
3. 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.
4. the Web service package system of power cataclysm simulation network according to claim 3 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 CN101799768A (en) 2010-08-11
CN101799768B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9632804B2 (en) 2013-01-24 2017-04-25 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN103973716B (en) * 2013-01-24 2015-07-15 腾讯科技(深圳)有限公司 Internet application implementation method, related device and communication system
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
CN107291458B (en) * 2017-06-06 2020-07-14 北京知道创宇信息技术股份有限公司 Plug-in construction method and system for Web application and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7937703B2 (en) * 2005-09-27 2011-05-03 International Business Machines Corporation Stateless server-side automation of web service requests using dynamically generated web service interfaces

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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》.2009,1-3. *

Also Published As

Publication number Publication date
CN101799768A (en) 2010-08-11

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
CN103377075A (en) Task management method, device and system
CN102323884A (en) Web service container and method for issuing multiple Web services
CN103092602A (en) Software development kit and terminal apparatus
CN111242776B (en) Block chain-based accounting method and device, storage medium and electronic equipment
CN107807859A (en) A kind of FaaS frameworks and its method of work, the system of exploitation O&M FaaS frameworks
CN104219298A (en) Cluster system and data backup method thereof
CN103678007A (en) Method and system for deploying software in batches
CN103077038A (en) Method for dynamically generating and compiling .NET item
RU2007131194A (en) SYSTEM AND METHOD OF SUPPORTING MANY LANGUAGES FOR APPLICATION
CN102831000A (en) System upgrading method and system
US8838955B2 (en) Two-way, secure, data communication within critical infrastructures
CN103533017B (en) service calling method and system
US20100125827A1 (en) Developing software code using parameterized annotations
CN106550026B (en) Network communication device and method
CN117176633A (en) Bus cross-device communication method, device, equipment and storage medium
CN107766047A (en) A kind of Meteorological Models cloud disposes device
CN102710769A (en) Web Service client and bulk data transmission method thereof
CN113568623B (en) Application deployment method and device and electronic equipment
CN101833469B (en) Method and device for simulation development of set-top box application functions
CN112862423A (en) Distributed new energy power station management method and system, terminal device and computer readable storage medium
CN103209086B (en) Penetrate transfer machine and realize the method for server maintenance, system and transfer machine
CN101901182A (en) Processing method and system of debug file data
CN112183043A (en) Online document synthesis system

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