Java多播事件總線 Avis

fmms 12年前發布 | 21K 次閱讀 Java Java開發

Avis 是一個多播事件總線。它提供了一個快捷的發布/訂閱事件的路由服務。

  • Fast broadcast message delivery. No requirement to support transactions or persistence, plus concise message selection allows near real-time delivery.

  • Flexible message format. Messages are just name-value pairs.

  • Content-based subscription. Select messages using subscription expressions like From == 'logger' && Severity > 3 or(string (Message) && Timeout > 0) || regex (Message, 'News:.*').

  • Federation of multiple message routers. Replicate selected messages between any configuration of routers to form local and wide-area message networks.

  • Security. Supports per-subscription access control and SSL/TLS client/server authentication and encryption.

  • Simplicity. No external dependencies and no configuration required. Avis runs on any platform that supports Java 5 or later.

  • Client libraries for Java and C. Write Avis clients for a wide variety of platforms.

Java多播事件總線 Avis

示例代碼:

Elvin elvin = new Elvin ("elvin://elvin_router");
Notification ntfn = new Notification ();

ntfn.set ("Status-Message", 1000);
ntfn.set ("Host-Name", hostName ());
ntfn.set ("Department",  lookupDepartment ());
ntfn.set ("Percent-Disk-Free", diskFreePercentage ());

elvin.send (ntfn);

elvin.close ();

項目主頁:http://www.baiduhome.net/lib/view/home/1327500107109

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!