Package net.jini.discovery

Examples of net.jini.discovery.LookupDiscoveryManager.addDiscoveryListener()


         *       in the run method
         */
        LookupDiscoveryManager discMgr
              = (LookupDiscoveryManager)(joinMgrSrvcID.getDiscoveryManager());
        discMgr.setGroups(toGroupsArray(initLookupsToStart));
        discMgr.addDiscoveryListener(mainListener);
    }//end setup

    /** Executes the current test by doing the following:
     * <p><ul>
     *    <li> verifies that the lookup service(s) started initially were
View Full Code Here


            if(ldm==null) {
                ldm = discoControl.createLookupDiscoveryManager(groups, locators, listener, config);
            } else {
                ((SharedDiscoveryManager)ldm).incrementRefCounter();
                if(listener!=null)
                    ldm.addDiscoveryListener(listener);
            }
        }
        return(ldm);
    }
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.