Package net.jini.discovery

Examples of net.jini.discovery.LookupDiscoveryManager


                discMgr = (DiscoveryManagement)thisConfig.getEntry
                                                   (COMPONENT_NAME,
                                                    "discoveryManager",
                                                    DiscoveryManagement.class);
            } catch(NoSuchEntryException e) { /* use default */
                discMgr = new LookupDiscoveryManager
                                   (new String[] {""}, null, null, thisConfig);
            }
  }//endif
  discMgr.addDiscoveryListener(discMgrListener);
    }//end init
View Full Code Here


  }
//TODO - defer creation of default LDM
  dm = (DiscoveryManagement)
      Config.getNonNullEntry(config, TxnManager.MAHALO,
    "discoveryManager", DiscoveryManagement.class,
    new LookupDiscoveryManager(
                    DiscoveryGroupManagement.NO_GROUPS, null, null, config));
        if(initlogger.isLoggable(Level.CONFIG)) {
      initlogger.log(Level.CONFIG, "discoveryManager: {0}", dm);
  }
View Full Code Here

  dgm = (DiscoveryGroupManagement)
      Config.getNonNullEntry(config,
    OutriggerServerImpl.COMPONENT_NAME, "discoveryManager",
    DiscoveryGroupManagement.class,
    new LookupDiscoveryManager(
                    DiscoveryGroupManagement.NO_GROUPS, null, null,
        config));

  if (!(dgm instanceof DiscoveryManagement))
      throw throwNewConfigurationException("Entry for component " +
View Full Code Here

     
      ((DiscoveryGroupManagement)lookupDiscMgr).setGroups(lookupGroups);
      ((DiscoveryLocatorManagement)lookupDiscMgr).setLocators(lookupLocators);
  } catch (NoSuchEntryException e) {
      lookupDiscMgr  =
    new LookupDiscoveryManager(lookupGroups, lookupLocators,
                    null, config);
  }
        if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Discovery manager is: {0}",
      lookupDiscMgr);
View Full Code Here

        System.setSecurityManager(new RMISecurityManager());

        tryRetrieveServiceId(serviceIdFile);

        try {
            LookupDiscoveryManager mgr = new LookupDiscoveryManager(groups,
                    unicastLocators, // unicast locators
                    this); // DiscoveryListener

            if (serviceID != null) {
                new JoinManager(proxy, // service proxy
View Full Code Here

        ServiceDiscoveryManager clientMgr = null;

        System.setSecurityManager(new RMISecurityManager());

        try {
            LookupDiscoveryManager mgr = new LookupDiscoveryManager(groups,
                    unicastLocators, // unicast locators
                    this); // DiscoveryListener
            clientMgr = new ServiceDiscoveryManager(mgr,
                    new LeaseRenewalManager());
        } catch (Exception ex) {
View Full Code Here

        LOG.debug("Starting multicast discovery for groups: " + lookupGroups);
        ReggieUtil.setupRMISecurityManager();

        try {

            final LookupDiscoveryManager discoverMgr = new LookupDiscoveryManager(
                lookupGroups, unicastLocaters, null);

            clientMgr = new ServiceDiscoveryManager(discoverMgr, new LeaseRenewalManager());
        } catch (IOException e) {
            final String message = "Error starting discovery";
View Full Code Here

                discMgr = (DiscoveryManagement)config.getEntry
                                                 (COMPONENT_NAME,
                                                  "discoveryManager",
                                                  DiscoveryManagement.class);
            } catch(NoSuchEntryException e) { /* use default */
                discMgr = new LookupDiscoveryManager
                                     (new String[] {""}, null, null, config);
            }
  }//endif
  discMgr.addDiscoveryListener(discMgrListener);
    }//end createJoinManager
View Full Code Here

                discMgr = (DiscoveryManagement)thisConfig.getEntry
                                                   (COMPONENT_NAME,
                                                    "discoveryManager",
                                                    DiscoveryManagement.class);
            } catch(NoSuchEntryException e) { /* use default */
                discMgr = new LookupDiscoveryManager
                                   (new String[] {""}, null, null, thisConfig);
            }
  }//endif
  discMgr.addDiscoveryListener(discMgrListener);
    }//end init
View Full Code Here

  }
  try {
      discoer = (DiscoveryManagement) config.getEntry(
    COMPONENT, "discoveryManager", DiscoveryManagement.class);
  } catch (NoSuchEntryException e) {
      discoer = new LookupDiscoveryManager(
    DiscoveryGroupManagement.NO_GROUPS, null, null, config);
  }
  listenerPreparer = (ProxyPreparer) Config.getNonNullEntry(
      config, COMPONENT, "listenerPreparer", ProxyPreparer.class,
      listenerPreparer);
View Full Code Here

TOP

Related Classes of net.jini.discovery.LookupDiscoveryManager

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.