2012-07-16 18:09 Mule的cloudhub学习(2):开始

CloudHub的一些基本概念:

  1. CloudHub是一个集成服务平台(ipaas),Mule studio是它的开发工具。

  2. Mule Flow是CloudHub的集成的配置,每一个Mule  Flow由Message Processors组成,每一个Message Processor定义了消息怎样从一个组件flow到另一个组件

  3. Message Processors可以让你connect to SaaS services, transform data, connect to various protocols, filter data, and much more.

    Message Processors分为[Endpoints]、 [Transformers]、 [Scopes]、 [Components]、 [Filters]、.  Flow Controls六大类.
  4. DataMapper是一种 Message Processors,用来映射不同的数据格式,无论数据来自哪里。
  5. Applications,Mule Flows打包为Application,部署到CloudHub运行
  6. CloudHub Management Portal,登陆http://cloudhub.io/login.html可以管理你的Cloudhub应用。
Cloud Hub创建Hello world应用的几点知识
  1. Http Endpoint是处理http协议的,拥有一个监听端口,
  2. ${http.port}表示环境变量,需要在cloudio中配置
  3. Expression表达式负责产生一个表达式,输入可以是字符串或者文件
  4. 结果发现Expression component并未产生相应的效果,没有hello world这样的语句,而是输入路径为什么,输出就是什么。原因不清楚。比如输入http://longtwittertutorail.cloudhub.io/那么输出就是 /
CloudHub创建twitter Cloud  connector应用的几点体会
  1. Expression component还是未产生相应的效果,而是将前一个输出原封不动的转给了下一个组件。原因暂时不清楚。



               

2. Mule的message包括以下部分
    • Payload – this is the actual data that we are concerned with in this application

    • Properties—Along with a set of standard parameters, user defined parameters may be included as well.   We access an “inbound property” in this application to view the URL query parameter.

    • Attachments—Although not used in this projects, other applications may include attachments such as a XML file or PDF attachment.

    3. Mule Expression Language是Mule专门用来处理Mule的消息的语言,这里的工程用的#[message.inboundProperties['http.query.params']['tweet']]表示获取消息的inbound属性中的http参数中的tweet参数的值。

  1. payload由以下部分组成,可以使用payload.name获得值,比如#[payload.text]获得payload的text。

     

    createdAt=Tue Jul 17 06:34:10 UTC 2012,
 id=225116163082956800, 
text='I built a new CloudHub application', 
source=' yaoxianglongExample', 
isTruncated=false, 
inReplyToStatusId=-1, 
inReplyToUserId=-1,
 isFavorited=false, 
inReplyToScreenName='null', 
geoLocation=null, 
place=null, 
retweetCount=0,
 wasRetweetedByMe=false,
 contributors=null, 
annotations=null,
 retweetedStatus=null,
 userMentionEntities=[], 
urlEntities=[],
 hashtagEntities=[], 
user=UserJSONImpl{id=700452060, 
                                   name='yaoxianglong',
                                    screenName='yaoxianglong',
                                 location='null',
                                        description='',
                                   isContributorsEnabled=false, 
                                    profileImageUrl='http://a0.twimg.com/profile_images/2405030851/__1_normal.jpg', 
                                  profileImageUrlHttps='https://si0.twimg.com/profile_images/2405030851/__1_normal.jpg', 
                                   url='null', 
                                   isProtected=false,
                                    followersCount=0,
                                                status=null, 
                                        profileBackgroundColor='C0DEED', 
                                      profileTextColor='333333', 
                                      profileLinkColor='0084B4',
                                          profileSidebarFillColor='DDEEF6', 
                                     profileSidebarBorderColor='C0DEED', 
                                     profileUseBackgroundImage=true, 
                                     showAllInlineMedia=false, 
                                     friendsCount=11,
                                     createdAt=Tue Jul 17 05:45:06 UTC 2012, 
                                      favouritesCount=0, 
                                      utcOffset=-1,
                                       timeZone='null', 
                                         profileBackgroundImageUrl='http://a0.twimg.com/images/themes/theme1/bg.png', 
                                        profileBackgroundImageUrlHttps='https://si0.twimg.com/images/themes/theme1/bg.png', 
                                     profileBackgroundTiled=false,
                                       lang='zh-cn', 
                                       statusesCount=1, 
                                      isGeoEnabled=false, 
                                       isVerified=false, 
                                          translator=false, 
                                           listedCount=0, 
                                          isFollowRequestSent=false}}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值