Download presentation
Presentation is loading. Please wait.
Published byClara Sherman Modified over 9 years ago
1
ECEG Group
2
iSpace Room Before
3
iSpace Room After
4
Abstract Event Heap Solution: ECEG
5
Video
6
ECEG System Features Resource Discovery
7
ECEG System Features Resource Discovery Generic Application Platform
8
ECEG System Features Resource Discovery Generic Application Platform Remote Control
9
ECEG System Features Resource Discovery Generic Application Platform Remote Control Instant Messenger
10
ECEG System – How to Use
11
ECEG System http://2g1319.ssvl.kth.se/~csd2002- forumispace/download/eceg.htm
12
System Overview Application P2P Communication Discovery JXTA TCP/IP Wave LAN
13
BlueTooth
14
Infrared
15
Wave LAN
16
Transport layer solutions Event Heap Jini Jxta Definition –Transport layer’s responsibility is to define how traffic should be sent over inter- networks
17
Event Heap A centeral event dispatcher, all the message goes through the event heap server.
18
Jini Establishes a distributed system by moving interfaces of objects around the network Looku p Service Looku p Service Provide r Service Provide r Client
19
Jini Looku p Service Looku p Service Provide r Service Provide r Client
20
Jini Looku p Service Looku p Service Provide r Service Provide r Client Service Object Service Attribute
21
Jini Looku p Service Looku p Service Provide r Service Provide r Client
22
Jini Looku p Service Looku p Service Provide r Service Provide r Client
23
Jini Advantages –Simplicity. –Robustness. Disadvantages –Platform dependency. –IP based.
24
JXTA ”A layered model solution for developing Peer 2 Peer applications, consisting of protocols that are independent from underlying topology” -SUN
25
JXTA Peer 2 Peer Dynamic Lightweight
26
Chosen Technology: JXTA Advantages –Interoperability. –Platform Independent. –Ubiquity Disadvantages –Under Development. –Inherently Chatty.
27
ECEG System Application P2P Communication Discovery
28
Source Code public void discoveryEvent(DiscoveryEvent ev) { Debug.trace("-> MyPeerGroupNeigborhood.discoveryEvent", 1); DiscoveryResponseMsg response = ev.getResponse(); int index = -1; Peer peerTemp = null; try { String aResponse = response.getPeerAdv(); /* First we can elicit what peer has published the advert, we can then determine which groups it belongs to */ InputStream is = new ByteArrayInputStream((aResponse).getBytes()); peerAdvert = (PeerAdvertisement)AdvertisementFactory.newAdvertisement( new MimeMediaType("text/xml"), is); Debug.trace("Number of responses received from: " + peerAdvert.getName() + " is " + response.getResponseCount(), 2); index = neighborhoodData.doesPeerExist(peerAdvert.getPeerID()); Debug.trace("Peer Description: " + peerAdvert.getDescription(), 2); Enumeration enum = response.getResponses(); if (index >= 0) // the peer exists { Debug.trace("Peer exists", 1); neighborhoodData.setPeerAliveFlag(peerAdvert.getPeerID()); ParsePeer.parse( (Peer)neighborhoodData.vectorManip.elementAt(index), peerAdvert, enum, this, true); Debug.writePeerHtmlFile(peerAdvert.getName()); ParsePeer.dealWithSubAdvertisements(enum, (Peer)neighborhoodData.vectorManip.elementAt(index), this); Debug.trace("End of peer exists", 1); } else if (index < 0) { Debug.trace("Peer does not exist", 3); peerTemp = new Peer(); neighborhoodData.addPeer(peerTemp); ParsePeer.parse(peerTemp, peerAdvert, enum, this, false); ParsePeer.dealWithSubAdvertisements(enum, peerTemp, this); Debug.trace("End of peer does not exist", 1); discovery.getRemoteAdvertisements (null, DiscoveryService.ADV, null, null, 30, this); discovery.publish(myPeer.pipeAdvertisement, DiscoveryService.ADV); discovery.remotePublish(myPeer.pipeAdvertisement, DiscoveryService.ADV); } catch (IOException ioe) { Debug.error("An IO error occured!!"); Debug.error(ioe.toString()); ioe.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } Debug.trace("<- MyPeerGroupNeigborhood.discoveryEvent", 1); }
29
Project Issues Project Scope Project Plan Adherence Extra Frills: –Mouse Sender/Receiver –Instant Messenger –Dynamic IP Discovery –Inter iSpace Communication
30
Problems Faced Team Member Loss Tomorrow’s Technology Inter-Subnet Peer Groups
31
Conclusion Wave LAN JXTA Layered Model Developed Application Future
32
Acknowledgements Li Wei Erik Eliasson Fredrik Kilander Teaching Team
33
Questions & Answers ?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.