logger.log(Level.FINER, "memberGroups = ALL_GROUPS");
continue;
}
memberGroupsList.add(memberGroups);
/* Locator for initial remote lookup service i */
LookupLocator lookupLocator = getRemoteTestLocator(i);
initLookupsToStart.add
(new LocatorGroupsPair(lookupLocator,memberGroups));
}//end loop
/* Remote lookups started after initial remote lookups */
n0 = n1;
n1 = n0 + nAddRemoteLookupServices;
for(int i=n0;i<n1;i++) {//additional remote lookups
/* Member groups for remote lookup service i */
String groupsArg = getConfig().getServiceStringProperty
("net.jini.core.lookup.ServiceRegistrar",
"membergroups", i);
/* Use NON-unique groups for remote lookups */
String[] memberGroups = config.parseString(groupsArg,",");
if(memberGroups == DiscoveryGroupManagement.ALL_GROUPS) continue;
memberGroupsList.add(memberGroups);
/* Locator for additional remote lookup service i */
LookupLocator lookupLocator = getRemoteTestLocator(i);
addLookupsToStart.add
(new LocatorGroupsPair(lookupLocator,memberGroups));
}//end loop
/* Handle all lookups to be started locally */
n0 = n1;
n1 = n0 + nLookupServices;
int portBias = n0;
for(int i=n0;i<n1;i++) {//initial local lookups
/* Member groups for lookup service i */
String groupsArg = getConfig().getServiceStringProperty
("net.jini.core.lookup.ServiceRegistrar",
"membergroups", i);
if(testType == AUTOMATIC_LOCAL_TEST) {
/* Use unique group names to avoid conflict with other tests */
groupsArg = config.makeGroupsUnique(groupsArg);
}//endif
String[] memberGroups = config.parseString(groupsArg,",");
if(memberGroups == DiscoveryGroupManagement.ALL_GROUPS) {
logger.log(Level.FINER, "memberGroups = All_Groups");
continue;
}
memberGroupsList.add(memberGroups);
/* Locator for initial lookup service i */
LookupLocator lookupLocator = getTestLocator(i-portBias);
initLookupsToStart.add
(new LocatorGroupsPair(lookupLocator,memberGroups));
}//end loop
/* The lookup services to start after the initial lookup services */
n0 = n1;
n1 = n0 + nAddLookupServices;
for(int i=n0;i<n1;i++) {//additional local lookups
/* Member groups for lookup service i */
String groupsArg = getConfig().getServiceStringProperty
("net.jini.core.lookup.ServiceRegistrar",
"membergroups", i);
if(testType == AUTOMATIC_LOCAL_TEST) {
/* Use unique group names to avoid conflict with other tests */
groupsArg = config.makeGroupsUnique(groupsArg);
}//endif
String[] memberGroups = config.parseString(groupsArg,",");
if(memberGroups == DiscoveryGroupManagement.ALL_GROUPS) continue;
memberGroupsList.add(memberGroups);
/* Locator for additional lookup service i */
LookupLocator lookupLocator = getTestLocator(i-portBias);
addLookupsToStart.add
(new LocatorGroupsPair(lookupLocator,memberGroups));
}//end loop
/* Populate the ArrayList allLookupsToStart */
for(int i=0;i<initLookupsToStart.size();i++) {