一种创建CF服务实例的方法及装置制造方法及图纸

技术编号:16219324 阅读:55 留言:0更新日期:2017-09-16 01:49
本发明专利技术提供一种创建CF服务实例的方法及装置,该方法基于Servicebroker服务实例创建接口实现CF与服务的资源池内之间的通信,然后通过Java定时任务调用Servicebroker服务实例创建接口,获取用户的服务实例创建请求,触发CF根据所述服务实例创建请求完成服务实例的创建。通过本发明专利技术的定时任务,可有效规避服务实例创建过程的时限问题,有效解决各类Servicebroker中实例创建必须同步的问题,做到异步创建服务实例的同时,不影响CF的正常使用。本发明专利技术将服务实例的创建变为异步操作,更加灵活、高效,增强了Servicebroker的通用性、易用性,还可实现跨平台连接等功能,极具推广价值。

Method and device for creating CF service instance

The present invention provides a method and a device for creating an instance of the CF service, the communication method of Servicebroker service instances created based on the interfaces between CF and service resource pool in between, and then through the Java timing task calls the Servicebroker service instance creation interface, access to the user's service instance creation request, triggering CF according to create the service instance creation request complete the service instance. The timing task of the present invention, the issue of time can effectively avoid the service instance creation process, effectively solve all kinds of instances created in Servicebroker must be synchronized problem, do asynchronous service instances created at the same time, does not affect the normal use of CF. The invention changes the creation of service instances into asynchronous operations, is more flexible and efficient, enhances the versatility, ease of use of the Servicebroker, and realizes cross platform connection functions, and has great popularization value.

【技术实现步骤摘要】
一种创建CF服务实例的方法及装置
本专利技术涉及计算机、信息处理等
,具体地说是一种创建CF服务实例的方法及装置。
技术介绍
CF(CloudFoundry)是VMware推出的业界第一个开源PaaS云平台,它支持多种框架、语言、运行时环境、云平台及应用服务,使开发人员能够在几秒钟内进行应用程序的部署和扩展,无需担心任何基础架构的问题。同时,它本身是一个基于RubyonRails的由多个相对独立的子系统通过消息机制组成的分布式系统,使平台在各层级都可水平扩展,既能在大型数据中心里运行,也能运行在一台桌面电脑中,二者使用相同的代码库。作为新一代云应用平台,CloudFoundry专为私有云计算环境、企业级数据中心和公有云服务提供商所打造。CloudFoundry云平台可以简化现代应用程序的开发、交付和运行过程,在面对多种公有云和私有云选择、符合业界标准的高效开发框架以及应用基础设施服务时,可以显著提高开发者在云环境中部署和运行应用程序的能力。App在运行的时候通常需要依赖外部的一些服务,比如数据库服务、缓存服务、短信邮件服务等等。Servicebroker就是app接入服务的一种本文档来自技高网...
一种创建CF服务实例的方法及装置

【技术保护点】
一种创建CF服务实例的方法,其特征在于,该方法基于Servicebroker服务实例创建接口实现CF与服务的资源池内之间的通信,然后通过Java定时任务调用Servicebroker服务实例创建接口,获取用户的服务实例创建请求,触发CF根据所述服务实例创建请求完成服务实例的创建。

【技术特征摘要】
1.一种创建CF服务实例的方法,其特征在于,该方法基于Servicebroker服务实例创建接口实现CF与服务的资源池内之间的通信,然后通过Java定时任务调用Servicebroker服务实例创建接口,获取用户的服务实例创建请求,触发CF根据所述服务实例创建请求完成服务实例的创建。2.根据权利要求1所述的一种创建CF服务实例的方法,其特征在于,包括以下步骤:1)用户通过Servicebroker服务实例创建接口,进入相应的服务环境发出服务实例创建请求;2)服务实例创建请求发出时,触发Java定时任务,调用Servicebroker服务实例创建接口,同时获取CF的创建逻辑;其中,CF的创建逻辑为:若服务实例在规定时间内创建成功,则向CF返回创建接口运行成功的信息,并进行服务实例绑定操作;若服务实例在规定时间内创建失败,则向CF返回创建接口运行失败的信息,并触发事件回滚机制,删除服务环境中的服务实例,同时删除CF中的服务实例信息;3)通过所述Java定时任务,基于CF的创建逻辑,实现服务实例的实时创建,并对服务实例创建过程进行监控,将监控信息返回给CF。3.根据权利要求1所述的一种创建CF服务实例的方法,其特征在于,所述规定时间不超过2分钟。4.根据...

【专利技术属性】
技术研发人员:王阳
申请(专利权)人:郑州云海信息技术有限公司
类型:发明
国别省市:河南,41

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1