edu.washington.cs.supple.net.mdns
Class MDNSRegistry

java.lang.Object
  extended byedu.washington.cs.supple.net.mdns.MDNSRegistry

public final class MDNSRegistry
extends java.lang.Object

Adapter to store Supple application information using MDNS.

Author:
dbc1

Field Summary
static int LOOKUP_TIMEOUT
           
static java.lang.String PROP_TYPE
           
static java.lang.String PROP_URL
           
static java.lang.String SERVICE_TYPE
           
 
Constructor Summary
MDNSRegistry()
          Default constructor.
 
Method Summary
 void close()
          Close the registry.
 DirectoryEntry[] getLocalInfo(int timeout)
          Discover local Supple apps and directories.
 DirectoryEntry getLocalInfo(java.lang.String service, int timeout)
          Get info for a specific service.
 void registerEntry(java.lang.String name, int type, java.lang.String url)
          Register a directory at a given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
See Also:
Constant Field Values

PROP_TYPE

public static final java.lang.String PROP_TYPE
See Also:
Constant Field Values

PROP_URL

public static final java.lang.String PROP_URL
See Also:
Constant Field Values

LOOKUP_TIMEOUT

public static final int LOOKUP_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

MDNSRegistry

public MDNSRegistry()
             throws java.io.IOException
Default constructor.

Throws:
java.io.IOException
Method Detail

registerEntry

public void registerEntry(java.lang.String name,
                          int type,
                          java.lang.String url)
                   throws java.io.IOException
Register a directory at a given url.

Parameters:
name -
url -
Throws:
java.io.IOException

close

public void close()
Close the registry.


getLocalInfo

public DirectoryEntry[] getLocalInfo(int timeout)
Discover local Supple apps and directories.

Parameters:
timeout -
Returns:

getLocalInfo

public DirectoryEntry getLocalInfo(java.lang.String service,
                                   int timeout)
Get info for a specific service.

Parameters:
service -
Returns: