org.iids.aos.systemservices.lookupservice
Class AsLookupServiceServer

java.lang.Object
  extended by org.iids.aos.systemservices.lookupservice.AsLookupServiceServer

public class AsLookupServiceServer
extends java.lang.Object

Author:
michel@cs.vu.nl

Field Summary
static int listenPort
           
 
Constructor Summary
AsLookupServiceServer(Cookie cookie, int index, java.lang.String serverUrl)
           
AsLookupServiceServer(Cookie cookie, java.lang.String serverUrl)
           
AsLookupServiceServer(JavaLookupServer local)
           
 
Method Summary
 java.util.Hashtable find(java.lang.String key, java.lang.String value)
           
 Address getAddress()
           
 java.net.URL getRemote()
          Retrieve the remote location of the Location Service.
 java.util.Hashtable list(java.lang.String key)
           
 java.util.Hashtable lookup(java.lang.String identifier)
           
 java.lang.Double register(java.lang.String identifier, java.lang.String key, java.lang.String value, double duration)
           
 java.lang.Double registerAll(java.util.Vector<java.lang.String> identifiers, java.util.Vector<java.lang.String> keys, java.util.Vector<java.lang.String> values, double duration)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenPort

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

AsLookupServiceServer

public AsLookupServiceServer(Cookie cookie,
                             java.lang.String serverUrl)
                      throws java.net.MalformedURLException,
                             ParameterNotFoundException,
                             CommunicatorException,
                             java.lang.Exception
Throws:
java.net.MalformedURLException
ParameterNotFoundException
CommunicatorException
java.lang.Exception

AsLookupServiceServer

public AsLookupServiceServer(Cookie cookie,
                             int index,
                             java.lang.String serverUrl)
                      throws java.net.MalformedURLException,
                             ParameterNotFoundException,
                             CommunicatorException,
                             java.lang.Exception
Throws:
java.net.MalformedURLException
ParameterNotFoundException
CommunicatorException
java.lang.Exception

AsLookupServiceServer

public AsLookupServiceServer(JavaLookupServer local)
                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

shutdown

public void shutdown()

register

public java.lang.Double register(java.lang.String identifier,
                                 java.lang.String key,
                                 java.lang.String value,
                                 double duration)

registerAll

public java.lang.Double registerAll(java.util.Vector<java.lang.String> identifiers,
                                    java.util.Vector<java.lang.String> keys,
                                    java.util.Vector<java.lang.String> values,
                                    double duration)

lookup

public java.util.Hashtable lookup(java.lang.String identifier)

find

public java.util.Hashtable find(java.lang.String key,
                                java.lang.String value)

list

public java.util.Hashtable list(java.lang.String key)

getRemote

public java.net.URL getRemote()
Retrieve the remote location of the Location Service.

Returns:
The URL at which the location service resides.

getAddress

public Address getAddress()


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.