throws Exception
{
logger.log(Level.FINE, "starting lookup service "+indx);
/* retrieve the member groups with which to configure the lookup */
String[] memberGroups = (String[])memberGroupsList.get(indx);
ServiceRegistrar lookupProxy = null;
if(implClassname.equals("com.sun.jini.test.services.lookupsimulator.LookupSimulatorImpl"))
{
/* Use either a random or an explicit locator port */
DiscoveryProtocolSimulator generator =
new DiscoveryProtocolSimulator(config, memberGroups, manager, port);
genMap.put( generator, memberGroups );
lookupProxy = generator.getLookupProxy();
} else {//start a non-simulated lookup service implementation
logger.log(Level.FINER, "Starting lookup for host " + serviceHost);
lookupProxy = manager.startLookupService(serviceHost); // already prepared
genMap.put( lookupProxy, memberGroups );
}//endif
lookupList.add( lookupProxy );
LookupLocator lookupLocator = QAConfig.getConstrainedLocator(lookupProxy.getLocator());
locatorsStarted.add(lookupLocator);
LocatorsUtil.displayLocator(lookupLocator,
" locator ",Level.FINE);
String displayGroups = GroupsUtil.toCommaSeparatedStr(memberGroups);
if(displayGroups.equals("")) displayGroups = new String("NO_GROUPS");