Package net.jini.discovery

Examples of net.jini.discovery.DiscoveryListener


    try {
      lookupDiscovery = new LookupDiscovery(groups);

      // hook listener for finding the service
      lookupDiscovery.addDiscoveryListener(new DiscoveryListener() {
        public void discovered(DiscoveryEvent ev) {
          log.debug("received discovery event " + ev);
          ServiceRegistrar[] reg = ev.getRegistrars();
          // once the proxy if found, bail out
          for (int i = 0; i < reg.length && proxy == null; i++) {
View Full Code Here


          + getImpl() + " identified by "
          + serviceName + ".impl",
            e);
  }
  eventList = new LinkedList(); // every start call gets a new list
  DiscoveryListener listener = new RunningDiscoveryListener();
  LookupDiscoveryManager manager = null;
  // populate the groups/locators arrays. Discard the overrides list.
  // This admin implement doRandom to return false to inhibit
  // randomization of the group names
  addServiceGroupsAndLocators(new ArrayList());
View Full Code Here

TOP

Related Classes of net.jini.discovery.DiscoveryListener

Copyright © 2018 www.massapicom. 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.