Examples of LookupLocatorDiscovery


Examples of net.jini.discovery.LookupLocatorDiscovery

        logger.log(Level.FINE, "starting discovery by creating a "
                          +"LookupLocatorDiscovery to discover -- ");
        for(int i=0;i<locsToDiscover.length;i++) {
            logger.log(Level.FINE, "   "+locsToDiscover[i]);
        }//end loop
        LookupLocatorDiscovery lld
               = new LookupLocatorDiscovery(locsToDiscover,
      getConfig().getConfiguration());
        locatorDiscoveryList.add(lld);
        /* Verify that the lookup locator discovery utility created
         * above is operational by verifying that the INITIIAL lookups
         * are discovered.
         */
        mainListener.setLookupsToDiscover(initLookupsToStart);
        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        /* Terminate the lookup locator discovery utility */
        lld.terminate();
        logger.log(Level.FINE, "terminated lookup locator discovery");

        /* Since the lookup locator discovery utility was terminated, the
         * listener should receive no more events when new lookups are
         * started that have locators the utility is configured to
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery

            /* Start locator discovery by creating a lookup locator discovery*/
            logger.log(Level.FINE, "creating a lookup locator discovery "
                              +"initially configured to discover NO_LOCATORS");
            /* discover no locs at first, wait for test to call setLocators */
            locatorDiscovery
                   = new LookupLocatorDiscovery(new LookupLocator[0],
            sysConfig.getConfiguration());
            locatorDiscoveryList.add(locatorDiscovery);
            mainListener = new LookupListener();
        } catch(Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery

     */
    public void setup(QAConfig sysConfig) throws Exception {
        delayLookupStart = true;//don't start lookups, just want config info
        super.setup(sysConfig);
        configLocs = toLocatorArray(initLookupsToStart);
        lld = new LookupLocatorDiscovery(configLocs, sysConfig.getConfiguration());
        locatorDiscoveryList.add(lld);
    }//end setup
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery

        /* Create LookupLocatorDiscovery instance using the new locs */
        logger.log(Level.FINE, "constructing LookupLocatorDiscovery to discover -- ");
        for(int i=0;i<dupLocs.length;i++) {
            logger.log(Level.FINE, "   "+dupLocs[i]);
        }//end loop
        LookupLocatorDiscovery newLLD
                   = new LookupLocatorDiscovery(dupLocs,
                getConfig().getConfiguration());
        locatorDiscoveryList.add(newLLD);
        /* Verify discovery */
        doDiscovery(newLookups,newLLD,mainListener);
    }//end run
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery

  t.start();
  // Wait for AcceptThread to set up its socket.
  Thread.sleep(1000);
  long startTime = System.currentTimeMillis();
  for (int i = 0; i < NUMLD; i++) {
      ldArray[i] = new LookupLocatorDiscovery(
        new LookupLocator[] {
      new LookupLocator(
        InetAddress.getLocalHost().getHostName(),
        DISCOVERYPORT)
        }, config);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.