Title: Chapter 6: In Depth Discovery.
1Chapter 6 In Depth Discovery. Chapter 7
??? ???? ??? ?????
2(No Transcript)
3Multicast request Communication flow
4(No Transcript)
5Multicast announcement Communication flow
6(No Transcript)
7Unicast discovery Communication flow
8package net.jini.discovery import
java.util.EventListener public interface
DiscoveryListener extends EventListener
public void discovered(DiscoveryEvent ev)
public void discarded(DiscoveryEvent ev)
9package net.jini.discovery import
java.util.EventObject public class
DiscoveryEvent extends EventObject // some
methods elided public ServiceRegistrar
getRegistrars()
10package net.jini.discovery public class
LookupDiscovery public static final String
ALL_GROUPS null public static final String
NO_GROUPS new
String0 public LookupDiscovery(String
grps) throws
IOException public void addDiscoveryListener(Di
scoveryListener l) public void
removeDiscoveryListener(DiscoveryListener l)
11public void discard(ServiceRegistrar reg)
public String getGroups() public void
setGroups(String grps)
throws IOException public void
addGroups(String grps)
throws IOException public void
removeGroups(String grps) public void
terminate()
12 package net.jini.discovery public class
LookupLocator implements Serializable
public LookupLocator(String host, int port)
public LookupLocator(String url)
throws MalformedURLException public
String getHost() public int getPort()
public ServiceRegistrar getRegistrar()
throws IOException, ClassNotFoundException
public ServiceRegistrar getRegistrar(int timeout)
throws IOException, ClassNotFoundExcept
ion
13security
permission net.jini.discovery.DiscoveryPermission
permission net.jini.discovery.DiscoveryPermis
sion unsafe permission
net.jini.discovery.DiscoveryPermission