80 likes | 169 Views
Jumb Architecture. Winter of Code (WoC) 2006 Project. author : 최상훈 , 강지윤 date : 2006-01. Functional Requirements. Membership (Multicast Group) Management Join Leave Retrieve Crash Messaging Receive (Subscriber) Send (Publisher) High Level Programming Interface.
E N D
Jumb Architecture Winter of Code (WoC) 2006 Project author : 최상훈, 강지윤 date : 2006-01
Functional Requirements • Membership (Multicast Group) Management • Join • Leave • Retrieve • Crash • Messaging • Receive (Subscriber) • Send (Publisher) • High Level Programming Interface
Nonfunctional Requirements • Guarantee Message Reliability • Multicast use UDP. But UDP is not Reliable • So, we are determined to apply Reliable UDP
Topology Application Application Application Application Jumb F/W Jumb F/W Jumb F/W Jumb F/W ch2 ch2 ch1 ch2 ch1 ch1 Reliable Multicast Protocol Based Message Bus
Programming Interface ChannelManager chMgr = ChannelManager.getInstance(); Channel ch = chMgr.getChannel(“ChannelName”); chMgr.join(ch); ch.send(); // use asynchronous message handling ch.setMessageHandler( new MessageHandler () { public void onMessage(Message msg) { // … } } ); // use synchronous message handling Message msg = ch.receive(); // … chMgr.leave(ch);
Architecture Channel Channel ChannelManager Message Handler Message Handler Message Handler Message Handler ConfigToChannelFatory Channel Channel Jumb Interface (APIs) … Message Dispatcher ThreadPool Reliable Multicast Communication Layer