CN100401259C - Method for providing service in distribution type service system - Google Patents

Method for providing service in distribution type service system Download PDF

Info

Publication number
CN100401259C
CN100401259C CNB2005100907490A CN200510090749A CN100401259C CN 100401259 C CN100401259 C CN 100401259C CN B2005100907490 A CNB2005100907490 A CN B2005100907490A CN 200510090749 A CN200510090749 A CN 200510090749A CN 100401259 C CN100401259 C CN 100401259C
Authority
CN
China
Prior art keywords
service
configuration file
strategy
concrete
name
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
CNB2005100907490A
Other languages
Chinese (zh)
Other versions
CN1916856A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005100907490A priority Critical patent/CN100401259C/en
Priority to PCT/CN2005/001976 priority patent/WO2007019745A1/en
Publication of CN1916856A publication Critical patent/CN1916856A/en
Application granted granted Critical
Publication of CN100401259C publication Critical patent/CN100401259C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

A method for providing service of distributed service system includes confirming concrete service to be provided first then using concrete service to realize extension interface as well as confirming each service name and main realization being used to generate configuration file describing each service separately, analyzing and fetching said file and loading main realization of each service separately by system, issuing public management service and carrying out registration and announcement of concrete service on public management service.

Description

The service providing method of a kind of Distributed Services system
Technical field
The present invention relates to a kind of computer data service providing method, relate in particular to a kind of service providing method that is used for the Distributed Services system.
Background technology
The Distributed Services system is exactly the function fractionation with service system, and each function is placed on the several separate assembly, by the mutual cooperation between these several assemblies, finishes the function of total system.Here, the several separate assembly can be meant several separate CPU, but more generally be meant several computing machines on the network.
Adopt distributed system, biggest advantage shows on the processing speed of system.Each function of system is placed on the several separate assembly, and the assembly of each several part is finished the functional block of oneself, with parallel mode collaborative work.Distributed Services system additional advantage also is a functional module separately, is convenient to management, safeguards and upgrades, and the management maintenance of server also is considerable in large-scale service system.
A typical distribution formula service system roughly comprises following a few part:
Presentation layer mainly is responsible for exchanging interface and data transfer work between operation layer and the user, be unique one directly and user's part of coming into contacts with;
Operation layer is the heart of Distributed Services system, and topmost data processing work and service are just finished by this part and provided;
Data source is mainly used in the storage data.
Yet, and operating in an ISP in the machine and compare with the user, distributed system has much bigger complicacy serving provider's mask.Cause the reason of this complicacy to mainly contain the following aspects:
1, because system's distribution, server program and CLIENT PROGRAM are not that this just causes the interface between ISP and the client lack of standardization, causes the interoperability difficulty by same development teams exploitation probably, when relating to a plurality of ISPs and client, it is bad more that situation will become.
2,, cause the expansion difficulty of service just because of lack of standard recited above.When because the variation of demand need increase new service or when existing service changed, will cause serious chain reaction: those and change irrelevant client's (perhaps server) and also have to carry out again structure and deployment.When system related to the development teams that is under the jurisdiction of a plurality of different companys, this chain reaction meeting caused huge unnecessary waste.
3, deployment is an important process in the Distributed Services, and the difficulty of this work directly has influence on the workload of Distributed Services issue and upgrading.Regrettably, a lot of ISPs are arranged now in needs upgradings or when new service is provided, the total system of all having to rebuild and restart, this has not only had a strong impact on the availability of service, and has also brought very big workload to upgrade job.
Just because of these top reasons, make current a lot of distributed system service provide aspect very inconsistent, be difficult to expansion and dispose.And the company and the group that develop these systems also have to expend a large amount of unnecessary fund and energy.
Summary of the invention
Technical matters to be solved by this invention is to provide the service providing method of a kind of Distributed Services system, and it is inconsistent to overcome the visit that exists in the prior art, is difficult to expansion, and because the interpolation of service or the problems such as huge chain reaction that more are transformed into.
The invention provides the service providing method of a kind of Distributed Services system, comprise the steps:
Expansion interface, the public administration service that will use and the concrete service that will provide are provided;
Realize described expansion interface by described concrete service, and determine that the title of each service realizes with service is main;
Title according to described each service realizes with service is main, generates the configuration file of describing each service respectively;
System loads the main of each service respectively and realizes by reading and resolve described configuration file;
Issue described public administration service, and the concrete service that will provide is registered issue in the public administration service.
Preferably, the present invention further comprises the steps:
The concrete service name of determining that user's needs obtain is indicated in the public administration service according to the user;
The public administration service is obtained this concrete service entities according to concrete service name and is offered user's use.
Wherein, describedly realize service, and definite service name and the main performing step of service, further comprise the step of the implementation strategy of this service of determining, comprise the steps: by expansion interface
Judgement and this service of determining need be decomposed into different implementation strategies;
The resolution problem field parses the policy components that needs realization;
Determine the cooperation mode between strategy and the service;
Realize out and serve the policy components of cooperating mutually.
Wherein, the configuration file step of each service is described in described generation, and described configuration file further comprises information: policy name, the strategy of forming service are realized assembly, and the array mode of strategy in service realizes.
Wherein, described load step further comprises the steps:
Judge and determine and contain policy configurations information in the described configuration file;
The strategy that parses in the configuration file is realized and array mode, and it is loaded;
According to the array mode of strategy, strategy is realized that combination is as serving in main the realization.
Adopt the method for the invention, compared with prior art, provide a kind of efficient, convenient, unanimity, and the Distributed Services that is easy to expand provides method, adopt the convenient tissue of mode of configuration file to service, the configure publication of service no longer adopts the mode of hard coded, but adopts dynamic load and control counter-rotating (Inversion of Control) technology to make the expression of service separate with realization, thereby can realize the diversity of serving easily.Use this method, can greatly save the time of service development, can help Distributed Services system constructing bottom service management framework.Because the introducing of control counter-rotating, there is not direct dependence in application to framework, improved the testability of serviced component, configuration file organizational form provided by the invention and service access mode can also go to expand according to actual needs, range of application is wider, has realized the extensibility of service, the consistance of visit, the diversity that service realizes, the easy configuration of dissimilar services and easily interpolation property and dynamic load.The present invention can provide high modularization and can be dynamically, the service of increment expansion, be particularly suitable for the ways of services supplied between the EMS (Element management system) and NMS (network management system) in the telecommunication apparatus management.
Description of drawings
Fig. 1 is the service providing method schematic flow sheet of Distributed Services of the present invention system;
Fig. 2 is service realization of the present invention and configuration file generative process synoptic diagram;
Fig. 3 is that service of the present invention loads and the issue schematic flow sheet;
Schematic flow sheet when Fig. 4 serves for using for user of the present invention.
Embodiment
As shown in Figure 1, provide the method schematic flow sheet for Distributed Services of the present invention.At first, determine expansion interface, the public administration service that to use and the concrete service (step 101) that will provide; Realize described expansion interface by described concrete service, and determine the title and main realize (step 102) of service of each service; Title according to described each service realizes with service is main, generates the configuration file (step 103) of describing each service respectively; System loads main realize (step 104) of each service respectively by reading and resolve described configuration file; Issue described public administration service, and issue (step 105) is registered in the concrete service that will provide in the public administration service.
In addition, if concrete service also needs different implementation strategies, so, the present invention can also and then further describe configuration file with different strategies and array mode thereof, and when service loads, by reading and resolve configuration file, in the main realization of the service that dynamically Different Strategies incorporated into.
Expansion interface used in the present invention is a kind of common technology that is used in the framework.This technology can be so that the function of interface becomes and can expand and can not have influence on existing user.In order to reach this purpose, the expansion interface technology provides a high level, consistent abstract service interface, defined in this interface to be used for the needed method of service extension, such as: service-seekings etc., realize this interface by concrete service.
Concrete service of the present invention, it must inherit the above-mentioned good expansion interface of determining when realizing.Wherein, the public administration service is a basic service of system, loads when starting and issue, and every other service is all by issuing to the mode of public administration service registry.
The configuration file of description service of the present invention adopts the XML form, and information wherein can be specifically related to service name, and service realizes the main assembly of realizing, and form the policy name and the strategy of service and realize assembly, and the array mode of strategy in service realizes.Use the configuration file of service describing, system can dynamically load when operation and assemble service neatly according to policy name, array mode etc., thereby can be under to the situation of other parts of system without any influence, the content that expansion and change are served.
The descriptor format of described configuration file is exemplified below:
<servicereg>
<service?name=”sample”imp=”sampleServiceImp”>
<strategy?name=”strategy1”imp=”strategy?1?Imp”
means=”setStrategy?1”/>
<strategy?name=”strategy2”imp=”strategy?2?Imp”
means=”setStrategy2”/>
</service>
</servicereg>
Preferably, after generating configuration file, can realize concrete service, strategy and corresponding configuration file, copy under system's designated directory, for the loading and the startup of service are prepared.
System loads, start and during issuing service, system reads service profiles at config directory, adopt dynamic load and control counter-rotating (Inversion Of Control) technology to finish loading, the assembling of service, and pass through service registry to the issuing service of public administration service manner.The control counter-rotating is a kind of like this technology, and it can set up the dependence between the assembly dynamically, neatly when operation, and assembly itself need not to know the details of setting up other assemblies of relation with it.So just can be so that the developer of assembly concentrates on assembly itself.
When the client uses service, the client can use a unified accessing points to go to obtain public management service.By this service, the client can if service exists, just can obtain and use this to serve by the own interested concrete service of service name inquiry.
As shown in Figure 2, be service realization of the present invention and configuration file generative process synoptic diagram.At first, realize going to expand the expansion interface of predefined, realize that just service realizes, and determine service name (step 201) by concrete service; Then, whether the service of judgement needs to be decomposed into different implementation strategies (step 202), and the vacation that is judged as if step 202 skips to step 206; If being judged as of step 202 is true, service implementation strategy (step 203) is then described, be exactly the resolution problem field, parse the policy components that need realize; Describing service strategy array mode (step 204), is exactly the cooperation mode of determining between strategy and the service; Realize service implementation strategy (step 205), realize out policy components exactly with service collaboration; Generation is used for the configuration file (step 206) of service describing, will go up the service name of surface analysis exactly, and service realizes assembly, form the policy name and the strategy of service and realize assembly, and the array mode of strategy in service realizes is described in configuration file.
As shown in Figure 3, load and the issue schematic flow sheet for service of the present invention.At first, trigger service and load action (step 301); Then, read also analysis service configuration file (step 302); Loading service master realizes, to the main realization assembly of the service that parses from file, dynamic load (step 303); Whether in service profiles have policy configurations, whether see exactly has in the service profiles serving the main policy components configuration (step 304) that realizes if judging; If step 304 is judged as vacation, then change step 307; If step 304 is judged as very, then to analyze and load strategy and realize (step 305), the tactful array mode and the dynamic load strategy that parse exactly in the configuration file are realized assembly; Again strategy is realized being combined into service realization body (step 306), the tactful array mode according to step 305 parses realizes being combined into the service realization body to strategy; At last service is realized being registered in the public administration service (step 307), the public administration service is issued when system start-up, and other all services are issued by the mode of registering in the public administration service.
Schematic flow sheet when as shown in Figure 4, using service for user of the present invention.At first, the client obtains public administration service (step 401); Then, the client informs that the public administration service oneself wanted the concrete service name of obtaining (step 402); Then, the client uses the public administration service to obtain concrete service entities (step 403); At last, the client uses concrete service (step 404).
An example of realizing with the JAVA language illustrates the present invention below, adopts the basic platform of CORBA as distributed objects in this example.At first determine an expansion interface, in this example, this expansion interface is a degeneration interface:
interface?CommService{
};
We determine a public administration service object more then:
interface?ServiceMng{
CommService?getService(in?string?servname);
};
And then determine the service that will realize, example adopts the simplest HelloWorld sample
interface?HelloworldService::CommService{
void?sayHello();
};
Said process can adopt the IDL language to be described, and IDL is the IDL (Interface Definition Language) that is used for the CORBA agreement, similarly, if adopt other agreement, can be to use other definitional language to finish definition.
Further, analyze in this service realization whether need different implementation strategies, for example in the service of this example, can adopt different language strategies.Concerning Chinese, say: " world, hello! ", so, need two kinds of different language strategies.
Be the specific implementation of these two kinds of strategies below.
public?interface?HelloWorld{
public?String?getHello();
}
Public?class?EnglishHelloworld?implements?HelloWorld{
public?String?getHello(){
return“Hello?World!”;
}
}
public?class?ChineseHello?World?implements?Hello?World{
public?String?getHello(){
" world, hello for return! ";
}
}
Then, realize service, in this service realizes, determined tactful array mode.
public?class?HelloworldServiceImpl?extends?HelloworldService?POA{
private?ORB?orb=null;
private?Hello?World?hello;
public?void?setORBEnv(ORB?orb){
this.orb=orb;
}
public?void?sayHello(){
System.out.println(hello.getHello());
}
Public?void?setHello(Hello?World?helloworld){
this.hello=helloworld;
}
}
Next, generate the configuration file of this service of description, as follows for English:
<servicereg>
<service?name=”Hello?World”imp=”HelloworldServiceImpl”>
<strategy?name=”language”imp=”EnglishHelloworld”
means=”setHello”/>
</service>
</servicereg>
As follows for Chinese:
<servicereg>
<service?name=”Hello?World”imp=”HelloworldServiceImpl”>
<strategy?name=”language”imp=”ChineseHello?World”
means=”setHello”/>
</service>
</servicereg>
For this example, being achieved as follows of public administration service:
public?class?ServiceMngImpl?extends?ServiceMngPOA{
public?CommService?getService(String?servname){
return?services.getservname);
}
public?void?registerService(String?name,CommService?srv){
services_.put(name,srv);
}
private?Hashtable?services_=new?Hashtable();
}
System can read and analyze the configuration file of Hello World service when loading Hello World service.At first dynamic load is somebody's turn to do the main HelloworldServiceImpl of realization of service, analyze and load corresponding strategy then, and strategy is combined into during service realizes, and oneself is released by the registerService method of calling public administration service ServiceMngImpl according to the suites of measure that is disposed.
When the client will visit Hello World service, at first obtain the name service of CORBA, obtain public administration service ServiceMngImpl then, getService (" Hello the World ") method of calling ServiceMngImpl obtains Hello World service.

Claims (8)

1. the service providing method of a Distributed Services system is characterized in that, comprises the steps:
Expansion interface, the public administration service that will use and the concrete service that will provide are provided;
Realize described expansion interface by described concrete service, and determine that the title of each service realizes with service is main;
Title according to described each service realizes with service is main, generates the configuration file of describing each service respectively;
System is by reading and resolve described configuration file, and use control inversion technique is set up the dependence between the assembly, and the master who loads each service respectively realizes;
Issue described public administration service, and the concrete service that will provide is registered issue in the public administration service.
2. the method for claim 1 is characterized in that, further comprises the steps:
The concrete service name of determining that user's needs obtain is indicated in the public administration service according to the user;
The public administration service is obtained this concrete service entities according to concrete service name and is offered user's use.
3. the method for claim 1 is characterized in that, and is described by expansion interface realization service, and definite service name and the main performing step of service, further comprises the step of the implementation strategy of this service of determining, comprising:
Judgement and this service of determining need be decomposed into different implementation strategies;
The resolution problem field parses the policy components that needs realization;
Determine the cooperation mode between strategy and the service;
Realize out and serve the policy components of cooperating mutually.
4. method as claimed in claim 3, it is characterized in that, the configuration file step of each service is described in described generation, and described configuration file further comprises information: policy name, the strategy of forming service are realized assembly, and the array mode of strategy in service realizes.
5. the method for claim 1 is characterized in that, described generation further comprises step after describing the configuration file step of each service:
Concrete service realization and corresponding configuration file are copied under system's designated directory, for loading is prepared.
6. method as claimed in claim 4 is characterized in that, described generation further comprises step after describing the configuration file step of each service:
Concrete service, strategy realization and corresponding configuration file are copied under system's designated directory.
7. method as claimed in claim 4 is characterized in that described load step further comprises the steps:
Judge and determine and contain policy configurations information in the described configuration file;
The strategy that parses in the configuration file is realized and array mode, and it is loaded;
According to the array mode of strategy, strategy is realized that combination is as serving in main the realization.
8. as claim 1 or 4 described methods, it is characterized in that described configuration file adopts the XML formatted file to describe.
CNB2005100907490A 2005-08-15 2005-08-15 Method for providing service in distribution type service system Expired - Fee Related CN100401259C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2005100907490A CN100401259C (en) 2005-08-15 2005-08-15 Method for providing service in distribution type service system
PCT/CN2005/001976 WO2007019745A1 (en) 2005-08-15 2005-11-23 A service providing method of distributed service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100907490A CN100401259C (en) 2005-08-15 2005-08-15 Method for providing service in distribution type service system

Publications (2)

Publication Number Publication Date
CN1916856A CN1916856A (en) 2007-02-21
CN100401259C true CN100401259C (en) 2008-07-09

Family

ID=37737857

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100907490A Expired - Fee Related CN100401259C (en) 2005-08-15 2005-08-15 Method for providing service in distribution type service system

Country Status (2)

Country Link
CN (1) CN100401259C (en)
WO (1) WO2007019745A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882073A (en) * 2009-05-04 2010-11-10 谭家辉 Service-oriented application system and communication method, creator and creating method thereof
CN101826987B (en) * 2010-04-27 2012-05-02 北京邮电大学 System and method for supporting mixed service based on integrated open network
CN105338025B (en) * 2014-07-21 2019-04-09 阿里巴巴集团控股有限公司 Invocation component method, system, client and concentration assembly method and server
CN105635303B (en) * 2016-01-19 2019-06-21 锐达互动科技股份有限公司 A kind of method and system improving concurrent amount of access with distributed deployment service interface
CN108052374B (en) * 2017-12-29 2021-08-31 郑州云海信息技术有限公司 Method and device for deploying container microservice

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6484214B1 (en) * 1998-03-05 2002-11-19 Mcdonnell Douglas Helicopter Company Method for distributed object communications based on dynamically acquired and assembled software components
CN1608248A (en) * 2002-01-15 2005-04-20 国际商业机器公司 Provisioning aggregated services in a distributed computing environment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005512363A (en) * 2001-11-19 2005-04-28 ノキア コーポレイション Providing location information
US20030191762A1 (en) * 2002-04-08 2003-10-09 Juha Kalliokulju Group management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6484214B1 (en) * 1998-03-05 2002-11-19 Mcdonnell Douglas Helicopter Company Method for distributed object communications based on dynamically acquired and assembled software components
CN1608248A (en) * 2002-01-15 2005-04-20 国际商业机器公司 Provisioning aggregated services in a distributed computing environment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
反转的控制-组件、容器和IoC. 透明.程序员. 2003
反转的控制-组件、容器和IoC. 透明.程序员. 2003 *
基于MFC创建COM组件. 方霞,郭国强.常德师范学院学报(自然科学版),第15卷第1期. 2003
基于MFC创建COM组件. 方霞,郭国强.常德师范学院学报(自然科学版),第15卷第1期. 2003 *

Also Published As

Publication number Publication date
WO2007019745A1 (en) 2007-02-22
CN1916856A (en) 2007-02-21

Similar Documents

Publication Publication Date Title
Pires et al. Building reliable web services compositions
Benatallah et al. The self-serv environment for web services composition
JP5259924B2 (en) Dynamic service generation for legacy components
KR100546973B1 (en) Methods and apparatus for managing dependencies in distributed systems
Pautasso et al. Restful web services vs." big"'web services: making the right architectural decision
US6868454B1 (en) Distributed-object development system and computer-readable recording medium recorded with program for making computer execute distributed-object development
US8380785B2 (en) Managing rule sets as web services
Merz et al. Service trading and mediation in distributed computing systems
US20040177335A1 (en) Enterprise services application program development model
CN100401259C (en) Method for providing service in distribution type service system
Verdickt et al. Automatic inclusion of middleware performance attributes into architectural UML software models
CN100461174C (en) Method and system for dynamic creation of web services
CN101409717A (en) Protocol-independent SOA system and method for processing business
Peng et al. A prototype software framework for internet-enabled collaborative development of a structural analysis program
Brittenham Web services development concepts (WSDC 1.0)
Zou et al. Building business processes or assembling service components: Reuse services with BPEL4WS and SCA
Zou et al. Towards a Webcentric Legacy System Migration Framework
Ezenwoye et al. A Proxy-Based Approach to Enhancing the Autonomic Behavior in Composite Services.
Chang et al. A systematic approach to service-oriented analysis and design
US20060047781A1 (en) Method and system for providing remote portal service modules
Fluegge et al. Ontology-derived Activity Components for Composing Travel Web Services.
Ezenwoye et al. RobustBPEL-2: Transparent autonomization in aggregate web services using dynamic proxies
Elsas Integration of e-government and e-commerce with web services
Sheng et al. Discovering e-services using UDDI in SELF-SERV
Feuerlicht Application of data engineering techniques to design of message structures for web services

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

Granted publication date: 20080709

Termination date: 20170815