CN1339742A - Oil-line avolution method for modular soft ware - Google Patents
Oil-line avolution method for modular soft ware Download PDFInfo
- Publication number
- CN1339742A CN1339742A CN01136385A CN01136385A CN1339742A CN 1339742 A CN1339742 A CN 1339742A CN 01136385 A CN01136385 A CN 01136385A CN 01136385 A CN01136385 A CN 01136385A CN 1339742 A CN1339742 A CN 1339742A
- Authority
- CN
- China
- Prior art keywords
- request
- new
- old
- service
- state
- 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
Links
Landscapes
- Hardware Redundancy (AREA)
- Stored Programmes (AREA)
Abstract
The present invention discloses a kind of on-line evolution method for modular software. The sync state, cutoff state and buffering state are introduced to establish fine module managing mechanism, and the module is reloaded by means of new loading program constituing method on the basis to realize the altering, increasing, deleting and other operation of the software in running. This can on-line increase service content, optimize service program, eliminate system defect, raise response effect and raise the service quantity of software system.
Description
Technical field:
The present invention relates to a kind of online evolution method of component-based software, belong to the software maintenance technical field.
Background technology:
The product of component-based software support at present mainly is that reusability, the distributivity angle from large software develops, and generally provides the heat of application system to dispose function.This is a kind of phylogeny of coarsegrain, has realized increasing in the prerequisite that keeps the existing system operation function of new system, does not generally have direct relation between each system.But, also not at the online evolution of individual system, promptly under the prerequisite that keeps current system continuous service, service, intrasystem member being developed at present, this is a kind of fine-grained phylogeny, difficulty is bigger than the phylogeny of coarsegrain.
Summary of the invention:
The purpose of this invention is to provide a kind of fine-grained phylogeny method, under the prerequisite that keeps current system continuous service, service, intrasystem member is developed, promptly carry out the operations such as relation between the increase, deletion, replacement, change member of member, to obtain online increase service content, optimize service procedure, eliminate system defect, to improve the effect of response time.
Concrete technical scheme of the present invention is as follows:
The online evolution method of component-based software of the present invention is, except managing general structural components service cycle state (for example stress state, ready state, service state, executing state, buffer status etc.), set up fine granularity administrative mechanism by attribute synchronous regime, request current floe condition and the request buffer status of introducing member to member, thereby the behavior of control member more accurately, and carry out the member heavy duty on this basis, realize the online evolution of software.
The fine granularity administrative mechanism of member: with in the operating system to the administrative class of process seemingly, in the software systems operational process based on member, need inspect, control the various states of member at any time.For supporting online evolution, except general structural components service cycle state (for example stress state, ready state, service state, executing state, buffer status etc.), the present invention introduces other three kinds of states: (1) attribute synchronous regime, when a new structural member will be replaced a current member (calling old member in the following text) that is in service state, it must set up environment and the property value identical with old member, and this is to set up by the processes such as attribute of constantly duplicating old member; (2) request current floe condition, when new structural member and old member had reached synchronous regime, new structural member can begin to accept new request, and old member is no longer accepted new request, but must finish the operation of carrying out, and the return result, so be called current floe condition; (3) request buffer status, if there is not overlapping in the old and new's member in executable operations on the time, then must must cushion request in the moment of switching, this moment, this member was in the request buffer status, these are different with buffer status, after the latter is meant that the example service of member is intact, immediately example is not deleted, but it is placed in the buffer queue, when needing this member service, other requests just needn't reload like this, but can be directly from formation, take out the member example, and needn't the initialization member, thus reduce the response time.By introducing above-mentioned three kinds of new states of member, the behavior of control member more accurately realizes the more fine-grained management of member to state, to satisfy the primary demand of online evolution software.
The member heavy duty: an important supposition of modern computer software is a code of not revising self in the program carrying row process, therefore operating system generally only loads each module when application system starts, in operational process, then can increase module, but not allow modified module.This has caused difficulty for the member heavy duty, and in order to address this problem, the present invention utilizes the method for the new loading procedure of structure, and carries out the heavy duty of member by means of component interface.Each member has the component interface class of a correspondence, and new loading procedure is distinguished the interface and the specific implementation of member of member, and wherein interface is constant in the phylogeny process, variation be the concrete object of realization member function.When needs heavy duty member, at first load new member and realize body, and be template establishment member example with this member, utilize then request route controlling mechanism and request buffer control mechanism the two one or both of combination, request message is directed to new structural member realizes that the real realization body of member function promptly becomes the example of new structural member like this.
Described request route controlling mechanism is: when needs are replaced (or one a group) member, for keeping the continuity of service, often when loading new structural member, old member will persist among the system, therefore the old and new's member will take place is present in a situation (even serving simultaneously) in the component management device simultaneously, at this moment needs to introduce request route controlling mechanism.Request route refer initially to when replacing member, if old member is not in service state or executing state (certainly, yet not being in stress state), then can directly be made amendment the request route to old member, makes its sensing new structural member; If old member is in service state, then must be set to the attribute synchronous regime by the member state, set up the environment and the attribute of old member, revise route then, take over the current service of old member by new structural member; If old member is in executing state, mean that many attributes etc. of old member may change, therefore to have only and wait for that it is carried out and just can carry out synchronously after finishing, can be set to current floe condition by the member state this moment.At this moment, new structural member can be accepted new service process, but can not receive certain new request of serving, and has only after all processes that old member is being carried out are all finished, and just can fully the request route be mapped completely on the new structural member.Like this, switch to new structural member from old member, promptly can realize replacing the microprocess of member by asking route.
The described request buffer control mechanism is: when carrying out online evolution, interim buffer memory is carried out in request to part, with the acceptable response time delay, exchanges the reliability of evolution for.The realization of the buffering of request need be in conjunction with the communication mechanism of bottom, and the thread management mechanism of bottom is carried out, request is exactly a message bag based on certain interoperability agreement at bottom, can these message bags of buffer memory on the member container corresponding with each member, thereby buffering is from client's request, treat that the old and new's member switches when finishing, and continues these message to transmit to member again.
The request buffer control mechanism is another mechanism of taking when replacing (or one a group) member, and it can use separately with the control of request route, also can be used in combination.When using separately, the control of evolution time ratio request route is longer, but reliability is higher.When being used in combination, the evolutionary process relative complex some.
Evolution process flow diagram of the present invention as shown in Figure 1, after the system start-up, the system loads member, the structure structure that is suitable for developing, the member state is managed by the member container.In operational process, each member all has member container corresponding with it, be specifically designed to management to this member, comprise various information in the member container, for example component mark, element type, member state, member security control, needed member, communication mechanism or the like about member.When a new structural member will be replaced a current member that is in service state, it set up environment and the property value identical with being replaced member by constantly duplicating the operations such as attribute that are replaced member, promptly reaches the synchronous regime of the old and new's member.
After new structural member and old member have reached synchronous regime, the member that is replaced is entered current floe condition, no longer receive calling in of new request.For keeping the continuity of service, often when loading new structural member, old member will persist among the system, therefore the old and new's member will take place is present in a situation in the component management device simultaneously, at this moment introduce request route controlling mechanism and will newly ask to redirect on the new structural member, finish up to old member service.Like this, switch to new structural member by asking route from old member, realized replacing the microprocess of member, evolutionary process finishes.
Simultaneously, can also adopt the request buffer control mechanism to realize evolutionary process.If there is not overlapping in the old and new's member in executable operations on the time, then the request from the client is cushioned in the moment of replacing member, this moment, this member was in buffer status, after treating that the old and new's member is with EOS, member recovers normal service state, simultaneously, the request thread that is suspended is separated extension, and obtains service.
Adopt method of the present invention, under the prerequisite that keeps current system continuous service, service, can develop to intrasystem member, reach online increase service content, optimize service procedure, eliminate system defect, improve the effect of response time, thereby improve the service quality of software systems greatly, for the user provides the uninterrupted service of carrier-class, 7X24 (7 days weekly, 24 hours every days), this has crucial meaning for the large software system based on Web at present.
Description of drawings:
Fig. 1 is the evolution process flow diagram of the online evolution method of component-based software of the present invention.
Embodiment:
This section provides a realization on the JAVA virtual machine.
The JAVA virtual machine is on the operating system, under the application system, is EJB (Enterprise JavaBean) member based on the member of JAVA, and EJB member state is managed by member container (Container), and its interface meets the EJB standard.In operational process, each member all has member container corresponding with it, be specifically designed to management to this member, comprise various information in the member container, for example component mark, element type, member state, member security control, needed member, communication mechanism or the like about member.
Finish the member heavy duty and need the new loading classes of definition, such has inherited java.lang.ClassLoader, utilize the heavy duty of Java method, the heavy duty loadClass () method, solve the collision problem that may run into when directly utilizing the java.lang.ClassLoader loading classes, to realize the heavy duty of member.The realization of interface meets the EJB standard, and the realization of member also meets the EJB standard.
Routing iinformation leaves in the member container, for ease of developing, the member container must be deposited the realization Class Queue, rather than resembles and only deposit one the General System and realize class, controlled by special administrative class the opportunity that route is switched, and triggered by state variation new, old member.The heavy duty of a general member may cause the heavy duty of other a plurality of members, therefore has a variation range problem, and this is controlled by the operating personnel that specifically develop.
The realization of buffering is by means of Thread (thread) mechanism of JAVA virtual machine, and the realization of it and system communication mechanism is closely related.There is a monitor process in server-side system, is in the circular wait state, waits for client's various requests, and this process has been inherited class: java.lang.Thread, and when request comes, derive from independently thread for request, to improve the concurrent ability of system.This thread sends to request this member then with the pairing member of search request.When supporting online evolution, this thread must be after finding member the state of clear and definite member, if this member is in heavy condition, then must hang up, wait for that the state of member becomes normally.And member will be searched waiting list when heavy duty finishes, and the thread of waiting for service is separated extension, so just intactly realize the overall process that develops.
Claims (3)
1. the online evolution method of component-based software, it is characterized in that, except managing general structural components service cycle state, by introducing the synchronous regime of member, current floe condition and buffering state are set up member are carried out the fine granularity Management Mechanism, utilize the method for the new loading procedure of structure on this basis, and carry out the heavy duty of member by means of component interface, it is the component interface class that each member has a correspondence, new loading procedure is distinguished the interface of member and the specific implementation of member, wherein interface is constant in the phylogeny process, what change is the concrete object of realizing member function, when needs heavy duty member, at first load new member and realize body, and be template establishment member example with this member, utilize then request route controlling mechanism and request buffer control mechanism the two one or both of be directed to new structural member in conjunction with the member that other modules in the system are quoted and realize, the real realization body of member function promptly becomes the example of new structural member like this, thereby is implemented in the replacement of carrying out member in the operational process of software, increase, operations such as deletion.
2. the online evolution method of component-based software as claimed in claim 1, it is characterized in that described request route controlling mechanism is meant: request route refer initially to is to old member, when replacing member, if old member is not in service state or executing state, then directly will ask route to be made amendment, and make it point to new structural member; If old member is in service state, then new structural member is set to synchronous regime, sets up the environment and the attribute of old member, revises route then, is taken over the current service of old member by new structural member; If old member is in executing state, then wait for after it carries out end and carrying out synchronously, this moment, new structural member can be accepted new service process, but can not receive certain new request of serving, and will ask route to be mapped completely on the new structural member after all processes that old member is being carried out are all finished.
3. the online evolution method of component-based software as claimed in claim 1, it is characterized in that the described request buffer control mechanism is meant: request is a message bag based on certain interoperability agreement at bottom, can these message bags of buffer memory on the member container corresponding with each member, when carrying out online evolution, by thread management mechanism in conjunction with the communication mechanism and the bottom of bottom, interim buffer memory is carried out in request to part, realize the buffering of request, thereby buffering is from client's request, treat that the old and new's member switches when finishing, again these message are continued to transmit to member, exchange the reliability of evolution with the acceptable response time delay for.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01136385 CN1130628C (en) | 2001-10-12 | 2001-10-12 | Oil-line avolution method for modular soft ware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01136385 CN1130628C (en) | 2001-10-12 | 2001-10-12 | Oil-line avolution method for modular soft ware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1339742A true CN1339742A (en) | 2002-03-13 |
CN1130628C CN1130628C (en) | 2003-12-10 |
Family
ID=4673631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 01136385 Expired - Fee Related CN1130628C (en) | 2001-10-12 | 2001-10-12 | Oil-line avolution method for modular soft ware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1130628C (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1307549C (en) * | 2004-05-15 | 2007-03-28 | 浙江大学 | Member management method for supporting general computation |
CN1322420C (en) * | 2004-01-18 | 2007-06-20 | 北京大学 | Method for on-line increasing new function for member software system |
CN100386724C (en) * | 2006-05-30 | 2008-05-07 | 上海科泰世纪科技有限公司 | Method for realizing member dynamic polymerization for computer software system |
CN101963913A (en) * | 2010-11-04 | 2011-02-02 | 南京大学 | Method for online evolution of component based on transactions |
CN101197020B (en) * | 2006-12-07 | 2012-03-21 | 国际商业机器公司 | Lifecycle objectification method, system and device of non-activity objects in an activity thread |
CN101719920B (en) * | 2009-12-10 | 2012-06-27 | 清华大学 | Method for generating component-based assembly in routing protocol software |
CN101770360B (en) * | 2008-12-29 | 2013-01-16 | 上海科泰世纪科技有限公司 | Inheriting method of component of component-based software system |
CN103164225A (en) * | 2013-03-12 | 2013-06-19 | 中国科学院软件研究所 | Internet software architecture on-line evolution method based on hypergraph |
CN104794009A (en) * | 2015-04-08 | 2015-07-22 | 安徽师范大学 | Dynamic-information-structure-oriented interactive online evolution method |
CN110427176A (en) * | 2019-08-14 | 2019-11-08 | 北京邮电大学 | A kind of spacecraft software is in-orbit to redefine method |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100403260C (en) * | 2006-08-24 | 2008-07-16 | 上海科泰世纪科技有限公司 | Component inheritance method |
CN102012810B (en) * | 2010-11-22 | 2013-04-17 | 西安交通大学 | Dynamic evolution method for lightweight enterprise components |
-
2001
- 2001-10-12 CN CN 01136385 patent/CN1130628C/en not_active Expired - Fee Related
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1322420C (en) * | 2004-01-18 | 2007-06-20 | 北京大学 | Method for on-line increasing new function for member software system |
CN1307549C (en) * | 2004-05-15 | 2007-03-28 | 浙江大学 | Member management method for supporting general computation |
CN100386724C (en) * | 2006-05-30 | 2008-05-07 | 上海科泰世纪科技有限公司 | Method for realizing member dynamic polymerization for computer software system |
CN101197020B (en) * | 2006-12-07 | 2012-03-21 | 国际商业机器公司 | Lifecycle objectification method, system and device of non-activity objects in an activity thread |
CN101770360B (en) * | 2008-12-29 | 2013-01-16 | 上海科泰世纪科技有限公司 | Inheriting method of component of component-based software system |
CN101719920B (en) * | 2009-12-10 | 2012-06-27 | 清华大学 | Method for generating component-based assembly in routing protocol software |
CN101963913A (en) * | 2010-11-04 | 2011-02-02 | 南京大学 | Method for online evolution of component based on transactions |
CN103164225A (en) * | 2013-03-12 | 2013-06-19 | 中国科学院软件研究所 | Internet software architecture on-line evolution method based on hypergraph |
CN103164225B (en) * | 2013-03-12 | 2015-12-23 | 中国科学院软件研究所 | A kind of network configuration software architecture online evolution method based on hypergraph |
CN104794009A (en) * | 2015-04-08 | 2015-07-22 | 安徽师范大学 | Dynamic-information-structure-oriented interactive online evolution method |
CN104794009B (en) * | 2015-04-08 | 2018-05-04 | 安徽师范大学 | Towards the interactive online evolution method of dynamic message structure |
CN110427176A (en) * | 2019-08-14 | 2019-11-08 | 北京邮电大学 | A kind of spacecraft software is in-orbit to redefine method |
Also Published As
Publication number | Publication date |
---|---|
CN1130628C (en) | 2003-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1130628C (en) | Oil-line avolution method for modular soft ware | |
EP0648353B1 (en) | System for changing software during computer operation | |
US5802293A (en) | Integrated plant environment utilizing an advanced program-to-program server enabling communications between programs running in different computing environments | |
Symborski | Updating software and configuration data in a distributed communications network | |
CN106302709B (en) | A kind of method and system of network file management | |
CN105871580A (en) | Cross-cluster automation dispatching operation system and method | |
CN110187972A (en) | A kind of soft load balancing implementation based on API | |
CN1185826C (en) | Method and system for down loading software management tree in network processing system | |
EP1443423A1 (en) | Apparatus and method for data replication in a data network | |
CN116450351A (en) | Edge container scheduling algorithm | |
CN116643845A (en) | Capacity shrinking method, container arranging system, device and storage medium | |
JP2017021667A (en) | System and control method | |
NZ309840A (en) | Determining availability of resources for creation of service packages on schedule for intelligent networks | |
US20050182763A1 (en) | Apparatus and method for on-line upgrade using proxy objects in server nodes | |
CN1176423C (en) | Mainboard test program process system and method thereof | |
CN106980512A (en) | Update the system and method for JAVA application services | |
CN1203651C (en) | Label synchronous control method concurrently operating multi-MPLS protocol in MPLS group network | |
JP2000092091A (en) | Monitor device, monitor system and monitor method therefor | |
US20050198022A1 (en) | Apparatus and method using proxy objects for application resource management in a communication network | |
CN102394769B (en) | Data smoothing method and apparatus thereof | |
CN1192616A (en) | Telecommunications switching system with reading configurable supervisor control | |
JP2006262130A (en) | Network managing method and gateway device | |
CN1322420C (en) | Method for on-line increasing new function for member software system | |
JPH1027092A (en) | Managing method for software | |
SE523204C2 (en) | Arrangement, communication network and method where a device of clients includes a database of information on resources of servers, controls communication between clients and servers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20031210 Termination date: 20091112 |