IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope:Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  Grid computing  >

网格实践:在 SOA/Web 服务环境中监视和发现网格服务

使用 Globus Toolkit 4 中的开放源码信息服务

developerWorks

返回文章


清单 7. GRAM 和 RFT 服务注册例子
				
<ServiceGroupRegistrationParameters
   xmlns="http://mds.globus.org/servicegroup/client" >

    <RegistrantEPR
      xmlns:agg="http://mds.globus.org/aggregator/types"
      xmlns:gram="http://www.globus.org/namespaces/2004/10/gram/job"
      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
      <wsa:Address>
          https://129.114.50.64:8443/wsrf/services/mds/test/execsource/IndexServiceEntry
      </wsa:Address>
      <wsa:ReferenceProperties>
         <gram:ResourceID>GRAM</gram:ResourceID>
      </wsa:ReferenceProperties>
   </RegistrantEPR>

   <RefreshIntervalSecs>600</RefreshIntervalSecs>

   <Content xsi:type="agg:AggregatorContent"
      xmlns:agg="http://mds.globus.org/aggregator/types">

      <agg:AggregatorConfig xsi:type="agg:AggregatorConfig">
        <agg:ExecutionPollType>
          <agg:PollIntervalMillis>60000</agg:PollIntervalMillis>
          <agg:ProbeName>globus-scheduler-provider-condor</agg:ProbeName>
        </agg:ExecutionPollType>
      </agg:AggregatorConfig>
      <agg:AggregatorData/>
    </Content>

</ServiceGroupRegistrationParameters>

   ...

<ServiceGroupRegistrationParameters
  xmlns="http://mds.globus.org/servicegroup/client" >

   <RegistrantEPR
      xmlns:agg="http://mds.globus.org/aggregator/types"
      xmlns:glue="http://mds.globus.org/glue/ce/1.1"
      xmlns:gram="http://www.globus.org/namespaces/2004/10/gram/job"
      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
      <wsa:Address>
         https://gt4-test.tacc.utexas.edu:8443/wsrf/services/ReliableFileTransferFactoryService
      </wsa:Address>
   </RegistrantEPR>
      
   <RefreshIntervalSecs>600</RefreshIntervalSecs>
        
   <Content
        xmlns:agg="http://mds.globus.org/aggregator/types"
        xmlns:rft="http://www.globus.org/namespaces/2004/10/rft"
        xsi:type="agg:AggregatorContent">
      <agg:AggregatorConfig xsi:type="agg:AggregatorConfig">

         <agg:GetMultipleResourcePropertiesPollType
            xmlns:rft="http://www.globus.org/namespaces/2004/10/rft">
            <agg:PollIntervalMillis>60000</agg:PollIntervalMillis>
            <agg:ResourcePropertyNames>rft:TotalNumberOfBytesTransferred</agg:ResourcePropertyNames>
            <agg:ResourcePropertyNames>rft:TotalNumberOfActiveTransfers</agg:ResourcePropertyNames>
            <agg:ResourcePropertyNames>rft:RFTFactoryStartTime</agg:ResourcePropertyNames>
            <agg:ResourcePropertyNames>rft:ActiveResourceInstances</agg:ResourcePropertyNames>
            <agg:ResourcePropertyNames>rft:TotalNumberOfTransfers</agg:ResourcePropertyNames>

         </agg:GetMultipleResourcePropertiesPollType>
      </agg:AggregatorConfig>
      <agg:AggregatorData/>
   </Content>

</ServiceGroupRegistrationParameters>

返回文章

    关于 IBM 隐私条约 联系 IBM 使用条款