DJ.5. LookupLocator Class
The LookupLocator class provides a simple interface for performing unicast discovery:
package net.jini.core.discovery; import java.io.IOException; import java.io.Serializable; import java.net.MalformedURLException; import net.jini.core.lookup.ServiceRegistrar; 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, ClassNotFoundException {...} }
Each constructor takes parameters that allow ...
Get Jini™ Specifications, The, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.