4. 廣告(Advertisements) 同位組廣告: 定義這個同位組的識別標志和服務: Name DESC GID(Peer group id) MSID SVC(Service)-list of the service denoted by MCID and Parmeters
Peer Advertisements 同位體廣告: Name DESC PID(Peergroup id) Debug Flag(Dbg)-optional tag for debugging Service(SVC)
模塊-Modules 模塊是定義了一個同位體或者一個同位體組所提供的服務。
模塊類廣告-Module Class Advertisement 定義了一種行為。 格式: MCID(Module class id)-Module唯一的識別標志 Name-模塊名稱,用來進行search和識別,不保證唯一 DESC(Descripition)-描述:供搜索和識別用。
模塊規范描述廣告-Module Specification Advertisement 比較具體的描述模塊的規范定義。 Module Spec ID(MSID)-定義一個模塊-和MCID有和區別? Compatibility(COMP)兼容性-定義代碼的兼容性,跨語言和跨平臺。 Name Desc Sprcification URI document.定義URI Vers-the version Parm-定義參數-供Implementation使用 Proxy-ModuleSpecID of a proxy if one exists Authenticator-ModuleSpecID of an authenticator module if required
模塊執行廣告 Name DESC MSID COMP PURI(Package URI)-Download the special code Code-a reference code,for a java module,this is a classname Prov(Provider)
管道廣告-Pipe Advertisements Name ID TYPE-Related to a protocol, unicasttype,unicastsecuretype,propagatetype
管道綁定協議-Pipe Binding Protocol 要建立管道,一個peer必須憲發布一個管道廣告,表示自己在request。接收方會回應并同時發布廣告。 Request Adv: Msgtype-Query or Respond PopeId-Pipe id being resolved Type-the type of pope resolution requested Cached-cache里是否有答案 Peer-指定鏈接的peer Response Adv: Msgtype Pipeid Type Found
Resolver-解釋器 用來發現來自對等組內其它對等機的廣告;有助于發現對等機、對等組、管道和服務 解釋器的ResolverQuery message的schema: credential-信任證書 of the peer sending the query HandlerName QueryID Query
Rendezvous Protocol: 描述了消息是怎么在組里面廣播的。 使用端點協議來定位同位體和路由以及傳輸 使用Rendezvous Protocol來傳輸消息。 Rendezvous ADV: Name Rdvgroupid-peergroup uuid Rdvpeerid-peer id of the Rendezvous peer