Package net.jini.discovery

Examples of net.jini.discovery.LookupDiscoveryManager$LocatorDiscoveryListener


        super.setup(sysConfig);
        testDesc = "NullPointerException should occur upon adding a null "
                   +"listener to a lookup cache";
        logger.log(Level.FINE, "constructing a service discovery manager");
        discoveryMgr =
      new LookupDiscoveryManager(DiscoveryGroupManagement.NO_GROUPS,
               null,
               null,
               sysConfig.getConfiguration());
        srvcDiscoveryMgr =
      new ServiceDiscoveryManager(discoveryMgr,
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

  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

                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

                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

  /* Verify that the lookups were discovered */
  logger.log(Level.FINE,
       "verifying the lookup service(s) are discovered ...");
  String[] groupsToDiscover =  toGroupsArray(lookupsStarted);
  LookupDiscoveryManager ldm = getLookupDiscoveryManager();
  mainListener.setLookupsToDiscover(lookupsStarted,
            toGroupsArray(lookupsStarted));
  waitForDiscovery(mainListener);

  logger.log(Level.FINE,
View Full Code Here

        GroupsUtil.displayGroupSet(groupsToJoin,
                                   "groupsToDiscoverAndJoin",Level.FINE);
        LocatorsUtil.displayLocatorSet(locsToJoin,
                                      "locsToDiscoverAndJoin",Level.FINE);
  try {
      return new LookupDiscoveryManager(groupsToJoin,
                locsToJoin,
                mainListener,
                getConfig().getConfiguration());
  } catch (ConfigurationException e) {
      throw new RuntimeException("Configuration Error", e);
View Full Code Here

        GroupsUtil.displayGroupSet(groupsToJoin,
                                   "groupsToDiscoverAndJoin",Level.FINE);
        LocatorsUtil.displayLocatorSet(locsToJoin,
                                      "locsToDiscoverAndJoin",Level.FINE);
  try {
      return new LookupDiscoveryManager(groupsToJoin,
                locsToJoin,
                mainListener,
                config.getConfiguration());
  } catch (ConfigurationException e) {
      throw new RuntimeException("Configuration Error", e);
View Full Code Here

                                        null,null,sysConfig.getConfiguration());
        /* Note: no need to add joinMgrSrvcID to the joinMgrList for
         *       termination during tearDown because it will be terminated
         *       in the run method
         */
        LookupDiscoveryManager discMgr
              = (LookupDiscoveryManager)(joinMgrSrvcID.getDiscoveryManager());
        discMgr.setGroups(toGroupsArray(initLookupsToStart));
        discMgr.addDiscoveryListener(mainListener);
    }//end setup
View Full Code Here

TOP

Related Classes of net.jini.discovery.LookupDiscoveryManager$LocatorDiscoveryListener

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.