com.sun.jini.compat.harness
Class DefaultLookupAdmin

java.lang.Object
  extended bycom.sun.jini.compat.harness.DefaultAdmin
      extended bycom.sun.jini.compat.harness.DefaultLookupAdmin
All Implemented Interfaces:
BasicAdmin, BasicLookupAdmin

public class DefaultLookupAdmin
extends DefaultAdmin
implements BasicLookupAdmin

This is a non-automated generic implementation of the BasicLookupAdmin. It extends DefaultAdmin for all of it's BasicAdmin implementation.


Field Summary
 
Fields inherited from interface com.sun.jini.compat.harness.BasicLookupAdmin
CATEGORY
 
Constructor Summary
DefaultLookupAdmin()
          Basic no-arg constructor.
 
Method Summary
 ServiceRegistrar getServiceRegistrar()
          Returns the ServiceRegistrar from an already started Lookup.
 
Methods inherited from class com.sun.jini.compat.harness.DefaultAdmin
getAddress, getConfig, setConfig, start, stop, waitForChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jini.compat.harness.BasicAdmin
getAddress, setConfig, start, stop
 

Constructor Detail

DefaultLookupAdmin

public DefaultLookupAdmin()
Basic no-arg constructor.

Method Detail

getServiceRegistrar

public ServiceRegistrar getServiceRegistrar()
                                     throws java.rmi.RemoteException
Returns the ServiceRegistrar from an already started Lookup. If there are any problems getting the ServiceRegistrar it throws a RemoteException. It uses a property called: com.sun.jini.compat.defaultLookupAdmin.lookupPort. Using that port and the address of the lookup provided by the getAddress method it generates a LookupLocator to get the ServiceRegistrar for the lookup service being tested.

Specified by:
getServiceRegistrar in interface BasicLookupAdmin
Returns:
the ServiceRegistrar for the lookup being tested.
Throws:
java.rmi.RemoteException


Copyright 2005, Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0.