CN102984208A - Publishing method and device of remote call service - Google Patents

Publishing method and device of remote call service Download PDF

Info

Publication number
CN102984208A
CN102984208A CN2012104377671A CN201210437767A CN102984208A CN 102984208 A CN102984208 A CN 102984208A CN 2012104377671 A CN2012104377671 A CN 2012104377671A CN 201210437767 A CN201210437767 A CN 201210437767A CN 102984208 A CN102984208 A CN 102984208A
Authority
CN
China
Prior art keywords
service
business service
business
far call
need
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
CN2012104377671A
Other languages
Chinese (zh)
Other versions
CN102984208B (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.)
Shuguang Cloud Computing Group Co ltd
Original Assignee
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
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 SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201210437767.1A priority Critical patent/CN102984208B/en
Publication of CN102984208A publication Critical patent/CN102984208A/en
Application granted granted Critical
Publication of CN102984208B publication Critical patent/CN102984208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a publishing method and a device of a remote call service. The method consists of carrying out monitoring to a published business service to confirm whether business services need to be changed into remote call services; grabbing business service samples according to the interfaces of the business services which need to be changed into remote call services, and carrying out remote publishing to the business services. The publishing method of the remote call service confirms whether the business services need to be changed into the remote call services through the monitoring on the published business services, grabs the business service samples according to the interfaces of the business services which need to be changed into remote call services, and carries out remote publishing to the business services, and therefore the business services can be monitored and remote called, and good expansibility of a system is guaranteed.

Description

Dissemination method and the device of far call service
Technical field
The present invention relates to computer realm, particularly, relate to a kind of dissemination method and device of far call service.
Background technology
Because the cloud computing operating system in the existing summary adopts layering to dispose, therefore need to become the far call service to some related service issue.And prior art is for the distinctive service of a certain service distribution, can affect like this compatibility and the autgmentability of entire system.
Because prior art needs business module is become service capable of making remote access by hard coded mode or configuration mode issue on stream.Like this, just there is a problem, if telecommunication access services mode changes, then needs each announced business module to be modified, can produce huge workload like this, also can affect system extension simultaneously.
The poor problem of autgmentability, modificability for correlation technique medium-long range service issue exists not yet proposes effective solution at present.
Summary of the invention
For the poor problem of autgmentability, modificability that correlation technique medium-long range service issue exists, the present invention proposes a kind of dissemination method and device of far call service, can monitor and the far call business service autgmentability that the assurance system is good and modificability.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, provide a kind of dissemination method of far call service, the method comprises:
Announced business service is monitored, determined whether to exist the business service that need to change to the far call service;
Change to the business service of far call service for needs, according to the interface crawl business service sample of this business service, and this business service carried out long-range issue.
Wherein, announced business service is monitored, is determined whether to exist the business service that need to change to the far call service to comprise:
Configuration file according to announced business service filters, and obtains changing to the tabulation of the business service of far call service.
And, comprise the interface name of the business service that need to change to far call service in the tabulation.
In addition, crawl business service sample comprises:
The business service that needs is changed to the far call service creates tracker, is grasped the crawl business service sample of this business service by tracker.
And business service is the OSGI business service.
According to another aspect of the present invention, provide a kind of distributing device of far call service, this device comprises:
Monitoring module is used for announced business service is monitored, and determines whether to exist the business service that need to change to the far call service;
Release module is used for needs are changed to the business service of far call service, according to the interface crawl business service sample of this business service, and this business service is carried out long-range issue.
Wherein, monitoring module is used for filtering according to the configuration file of announced business service, obtains changing to the tabulation of the business service of far call service.
And, comprise the interface name of the business service that need to change to far call service in the tabulation.
In addition, release module is specifically followed the tracks of for the business service that needs is changed to the far call service, and grasps the crawl business service sample of this business service.
And business service is the OSGI business service.
The present invention is by monitoring announced business service, determine whether to exist the business service that need to change to the far call service, change to the business service of far call service for needs, interface crawl business service sample according to this business service, and this business service carried out long-range issue, can monitor and the far call business service, the autgmentability that the assurance system is good and modificability, produce a large amount of workloads when avoiding that business service carried out long-range issue, improved the efficient of service distribution.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart according to the dissemination method of the far call service of the embodiment of the invention;
Fig. 2 is the theory diagram according to the distributing device of the far call service of the embodiment of the invention;
Fig. 3 is according to the business service far call of the embodiment of the invention and the process of monitors distribution.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtain belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of dissemination method of far call service.
As shown in Figure 1, the dissemination method according to the far call service of the embodiment of the invention comprises:
Step S101 monitors announced business service, determines whether to exist the business service that need to change to the far call service;
Step S103 changes to the business service of far call service for needs, according to the interface crawl business service sample of this business service, and this business service is carried out long-range issue.
Wherein, announced business service is monitored, is determined whether to exist the business service that need to change to the far call service to comprise:
Configuration file according to announced business service filters, and obtains changing to the tabulation of the business service of far call service.
And, comprise the interface name of the business service that need to change to far call service in the tabulation.
In addition, crawl business service sample comprises:
The business service that needs is changed to the far call service creates tracker, is grasped the crawl business service sample of this business service by tracker.
And, business service is that (Open Service Gateway Initiative technology is the dynamic modeling system towards Java to OSGI, the OSGi technology provides the standardization primitive that allows application program to use refining, the reusable and component construction that can cooperate, and these assemblies can be assembled into one and use and dispose) business service.
A kind of distributing device of far call service is provided according to one embodiment of present invention.
As shown in Figure 2, the distributing device according to the far call service of the embodiment of the invention comprises:
Monitoring module 21 is used for announced business service is monitored, and determines whether to exist the business service that need to change to the far call service;
Release module 22 is used for needs are changed to the business service of far call service, according to the interface crawl business service sample of this business service, and this business service is carried out long-range issue.
Wherein, monitoring module is used for filtering according to the configuration file of announced business service, obtains changing to the tabulation of the business service of far call service.
And, comprise the interface name of the business service that need to change to far call service in the tabulation.
In addition, release module is specifically followed the tracks of for the business service that needs is changed to the far call service, and grasps the crawl business service sample of this business service.
And business service is the OSGI business service.
As shown in Figure 3, be the business service far call of the embodiment of the invention and the process of monitors distribution.
At first, carry out the issue of business service, secondly, the service of issue far call, and the process of monitors distribution, last, issue OSGI service.
Technical scheme of the present invention depends on cloud computing application deployment environment (OSGI), and it is as follows that system dynamically issues the remote access service step:
A. monitor all announced OSGI services in the deployed environment;
B. according to configuration file, filter the OSGI service in the deployed environment, the be as the criterion interface name tabulation of preparation cloth remote access service of the content in the configuration file;
C. business service is changed to remote access service;
Dynamically issue remote access service for the realization said system, need remote service distributor of definition and service parameter reader.
The first, the service parameter reader be used for to realize reading service issue configuration file, and the service list that need to issue of buffer memory.
The corresponding interface of service parameter reader is as follows:
At first, service issue configuration file is read in initialization, and the service list that need to issue of buffer memory:
public?void?init()throws?IOException
Secondly, obtain announced service list:
public?List<String>getDeployService()
At last, by the service major key, obtain specified services information:
public?String?getPropertyValue(String?key)
The flow process of service parameter reader is described below:
At first, initial method reads configuration file;
Secondly, resolve configuration file, and be cached in the Properties object;
At last, obtain the service list that needs issue.
The second, the remote service distributor is used for realizing following the tracks of and filtering business service, and the business service issue of needs is become remote access service.
The corresponding interface of remote service distributor is as follows:
At first, by the service of tracker issue far call:
Public?void?deployService(BundleContext?context)throws?Exception
Secondly, create the service tracks distributor:
private?ServiceTrackerCustomizer?createStCustomizer(
final?BundleContext?context,final?Class<?>clz)
The flow process of remote service distributor is described below:
At first, obtain the service list that needs issue;
Secondly, the searching loop service list, and create corresponding tracker;
And, also comprise following description:
Monitor all announced business service in the OSGI service environment;
Judge whether loading service needs the remote service that changes;
If directly this business service issue is become the far call service;
Monitor unloaded service operations in the OSGI service environment;
Judge whether remote service of offload services;
If unload current remote service.
Technical scheme of the present invention is dissemination method and the device of a kind of far call service, to solve the problems such as different business systems issue remote service autgmentability in the cloud computing environment, modificability be poor.
Technical scheme of the present invention has defined a remote service distributor and service parameter reader, realize dynamically issue remote service functions, to the upper-layer service system mask published method of bottom, upper-layer service only need to be paid close attention to the own service logic, and use unified published method at bottom, shielded the otherness of different business service.When calling remote service generation change, only need to revise the remote service published method, and can not have influence on business logic processing, guaranteed the autgmentability that system is good.
Technical scheme of the present invention mainly comprises service issue configuration management and dynamically issues remote service.This technical scheme is irrelevant with concrete business processing logic, but exists in a kind of mode of monitor, but system can become the local service issue automatically according to service configuration the service of far call.Avoid the non-business processing step of the overstaffed intervention of business development, reduced simultaneously because the far call mode changes, and had influence on the modification of business module.
In sum, by means of technique scheme of the present invention, by announced business service is monitored, determine whether to exist the business service that need to change to the far call service, change to the business service of far call service for needs, interface crawl business service sample according to this business service, and this business service carried out long-range issue, can monitor and the far call business service, the autgmentability that the assurance system is good and modificability, produce a large amount of workloads when avoiding that business service carried out long-range issue, improved the efficient of service distribution.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the dissemination method of a far call service is characterized in that, comprising:
Announced business service is monitored, determined whether to exist the business service that need to change to the far call service;
Change to the business service of far call service for needs, according to the interface crawl business service sample of this business service, and this business service carried out long-range issue.
2. dissemination method according to claim 1 is characterized in that, announced business service is monitored, and determines whether to exist the business service that need to change to the far call service to comprise:
Configuration file according to announced business service filters, and obtains changing to the tabulation of the business service of far call service.
3. dissemination method according to claim 2 is characterized in that, comprises the interface name of the business service that need to change to the far call service in the described tabulation.
4. dissemination method according to claim 1 is characterized in that, crawl business service sample comprises:
The business service that needs is changed to the far call service creates tracker, is grasped the crawl business service sample of this business service by described tracker.
5. dissemination method according to claim 1 is characterized in that, business service is the OSGI business service.
6. the distributing device of a far call service is characterized in that, comprising:
Monitoring module is used for announced business service is monitored, and determines whether to exist the business service that need to change to the far call service;
Release module is used for needs are changed to the business service of far call service, according to the interface crawl business service sample of this business service, and this business service is carried out long-range issue.
7. distributing device according to claim 6 is characterized in that, described monitoring module is used for filtering according to the configuration file of announced business service, obtains changing to the tabulation of the business service of far call service.
8. distributing device according to claim 7 is characterized in that, comprises the interface name of the business service that need to change to the far call service in the described tabulation.
9. distributing device according to claim 6 is characterized in that, described release module is specifically followed the tracks of for the business service that needs is changed to the far call service, and grasps the crawl business service sample of this business service.
10. distributing device according to claim 6 is characterized in that, business service is the OSGI business service.
CN201210437767.1A 2012-11-05 2012-11-05 The dissemination method of remote call service and device Active CN102984208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210437767.1A CN102984208B (en) 2012-11-05 2012-11-05 The dissemination method of remote call service and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210437767.1A CN102984208B (en) 2012-11-05 2012-11-05 The dissemination method of remote call service and device

Publications (2)

Publication Number Publication Date
CN102984208A true CN102984208A (en) 2013-03-20
CN102984208B CN102984208B (en) 2015-11-25

Family

ID=47857943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210437767.1A Active CN102984208B (en) 2012-11-05 2012-11-05 The dissemination method of remote call service and device

Country Status (1)

Country Link
CN (1) CN102984208B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2088741A1 (en) * 2008-02-11 2009-08-12 Alcatel Lucent Method and OSGi bundle to enable sharing of a local service on an embedded device
CN101923485A (en) * 2009-06-17 2010-12-22 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN102053860A (en) * 2009-10-30 2011-05-11 中国人民解放军国防科学技术大学 CORBA-based OSGi distributed extensible system and method
CN102629198A (en) * 2012-02-29 2012-08-08 北京大学 On-demand remote execution method of computational logic in software application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2088741A1 (en) * 2008-02-11 2009-08-12 Alcatel Lucent Method and OSGi bundle to enable sharing of a local service on an embedded device
CN101923485A (en) * 2009-06-17 2010-12-22 大唐软件技术股份有限公司 JACA remote invocation method in CORBA (Common Object Request Breaker Architecture) system
CN102053860A (en) * 2009-10-30 2011-05-11 中国人民解放军国防科学技术大学 CORBA-based OSGi distributed extensible system and method
CN102629198A (en) * 2012-02-29 2012-08-08 北京大学 On-demand remote execution method of computational logic in software application

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
LU YIQIN 等: "《An Approach to Service Intergration in the OSGi Architecture of Home Networks》", 《COMMUNICATION SYSTEMS, 2008. ICCS 2008. 11TH IEEE SINGAPORE INTERNATIONAL CONFERENCE ON 》, 21 November 2008 (2008-11-21), pages 756 - 760 *
MARQUEZ, J.M 等: "《Distributing OSGi Services: The OSIRIS Domain Connector》", 《NETWORKED COMPUTING AND ADVANCED INFORMATION MANAGEMENT, 2008. NCM "08. FOURTH INTERNATIONAL CONFERENCE ON 》, vol. 1, 4 September 2008 (2008-09-04), pages 341 - 346 *
冯志宁 等: "《基于OSGI的两层服务模型》", 《计算机应用研究》, vol. 26, no. 7, 31 July 2009 (2009-07-31), pages 2590 - 2592 *
史殿习 等: "《StarOSGi:一种OSGI分布式扩展中间件》", 《计算机科学》, vol. 38, no. 1, 31 January 2011 (2011-01-31), pages 162 - 165 *
林琳 等: "《远程调用方法及其在Globus ToolKit 4中的应用》", 《吉林大学学报(信息科学版)》, vol. 25, no. 6, 30 November 2007 (2007-11-30), pages 617 - 623 *

Also Published As

Publication number Publication date
CN102984208B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN102460391B (en) Systems and methods for providing virtual appliance in application delivery fabric
US9183111B2 (en) Methods and computer program products for collecting storage resource performance data using file system hooks
WO2019062304A1 (en) Method, device and system for managing computing resources of block chain node
US8463737B2 (en) Realtime unification management information data conversion and monitoring apparatus and method for thereof
KR20080020604A (en) Managed automation programming model
CN111092759B (en) Log management method, device and medium in JBOD (just in Bunch) out-of-band management system
CN113709810B (en) Method, equipment and medium for configuring network service quality
CN105681472B (en) A kind of log transmission method and device
CN111597012A (en) System and method for automatically discovering cloud environment equipment
CN102624881A (en) Mobile-device-oriented service cache system architecture and development method
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN103414605A (en) Desktop cloud monitoring method based on exchange gateway
CN109117341A (en) A kind of monitoring method of virtual machine, device, equipment and medium
CN109858817A (en) A kind of Workflow Management System and method
CN111464331B (en) Control method and system for thread creation and terminal equipment
CN103051683A (en) Method for establishing virtual ammeter centralized collecting concentrator
CN103927244B (en) A kind of method of the plug-in unit scheduling process monitoring realized based on dynamic proxy
US9715448B2 (en) Efficiently using memory for Java collection objects
CN109495501B (en) Network security dynamic asset management system
CN114661419A (en) Service quality control system and method
CN104219175A (en) Data exchanging and service invocation system and data exchanging and service invocation method
KR101376226B1 (en) Method for total managing open-source systems and total management server thereof
CN113553381A (en) Distributed data management system based on novel pipeline scheduling algorithm
CN112667683A (en) Stream computing system, electronic device and storage medium therefor
CN108733536A (en) Monitoring management system and method

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
CP01 Change in the name or title of a patent holder

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Patentee after: Shuguang Cloud Computing Group Co.,Ltd.

Address before: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Patentee before: DAWNING CLOUD COMPUTING TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP03 Change of name, title or address

Address after: 100193 5 floor, 36 building, No. 8 Northeast Road, Haidian District, Beijing.

Patentee after: Shuguang Cloud Computing Group Co.,Ltd.

Country or region after: China

Address before: 100193 5 floor, 36 building, No. 8 Northeast Road, Haidian District, Beijing.

Patentee before: Shuguang Cloud Computing Group Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address