Package net.jini.lookup

Examples of net.jini.lookup.JoinManager


        /* Start the discovery mechanism for all recovered registrations */
        discoveryMgr.addDiscoveryListener(discoveryListener);

        /* Advertise the services provided by this entity */
  joinMgr = new JoinManager(outerProxy, thisServicesAttrs,
                                  serviceID, joinMgrLDM, null,
                                  config);
        ((DiscoveryLocatorManagement)joinMgrLDM).setLocators
                                                        (thisServicesLocators);
        ((DiscoveryGroupManagement)joinMgrLDM).setGroups(thisServicesGroups);
View Full Code Here


      serviceID.getLeastSignificantBits());

  if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Creating JoinManager.");
  }
  joiner = new JoinManager(
      mailboxProxy,                // service object
      lookupAttrs,               // service attributes
      lookupID,                 // Service ID
      lookupDiscMgr,             // DiscoveryManagement ref - default
      null,                      // LeaseRenewalManager reference
View Full Code Here

    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        newServiceAttrs =
               removeDups( addAttrsDup1DupAll(serviceAttrs,newServiceAttrs) );
        /* Discover & join lookups just started */
        jm = new JoinManager(testService,serviceAttrs,serviceID,
                             getLookupDiscoveryManager(),leaseMgr,
                             sysConfig.getConfiguration());
    }//end setup
View Full Code Here

     *   </ul>
     */
    public void setup(com.sun.jini.qa.harness.QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        null,null,
          sysConfig.getConfiguration());
    }//end setup
View Full Code Here

        logger.log(Level.FINE, "run()");
        int regWait  = 5; //seconds to wait for RegisterTask to start
        int propWait = 10;//seconds to wait for RegisterTask to complete
  /* Create the join manager to queue and start a RegisterTask */
  logger.log(Level.FINE, "create join manager");
  joinMgrSrvcID = new JoinManager(testService,
          serviceAttrs,
          serviceID,
          ldm,
          leaseMgr,
          getConfig().getConfiguration());
View Full Code Here

    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        newServiceAttrs =
               removeDups( addAttrsDup1DupAll(serviceAttrs,newServiceAttrs) );
        /* Discover & join lookups just started */
        jm = new JoinManager(testService,serviceAttrs,serviceID,
                             getLookupDiscoveryManager(),leaseMgr,
                             sysConfig.getConfiguration());
    }//end setup
View Full Code Here

  }

  dgm.setGroups(groups);
  ((DiscoveryLocatorManagement)dgm).setLocators(locators);

  mgr = new JoinManager(service, attributes, serviceID,
            (DiscoveryManagement)dgm, null, config);

  // Once we are running we don't need the attributes,
  // locators, and groups fields, null them out (the
  // state is in the mgr and dgm.
View Full Code Here

      discoveryManager = new LookupDiscovery(
    new String[] { "" }, config);
  }

  /* Get the join manager, for joining lookup services */
  JoinManager joinManager =
      new JoinManager(smartProxy, null /* attrSets */, getServiceID(),
          discoveryManager, null /* leaseMgr */, config);
    }
View Full Code Here

      dgm.setGroups(lookupGroups);
      dlm.setLocators(lookupLocators);
  } catch (ClassCastException e) {
      throw new ConfigurationException(null, e);
  }
  joiner = new JoinManager(proxy, lookupAttrs, myServiceID,
         discoer, null, config);

  /* start up all the daemon threads */
  serviceExpirer.start();
  eventExpirer.start();
 
View Full Code Here

      ServiceIDListener sidListener = new SIDListener(ts);
      if( (i%mod == 0) || (i == nServices-1) ) {
    /* If N services (N large), show only some debug info*/
    logger.log(Level.FINE, "registering service # "+i);
      }//endif
      JoinManager jm =
    new JoinManager(ts,serviceAttrs,
        sidListener,
        ldm,leaseMgr,
        getConfig().getConfiguration());
      joinMgrList.add(jm);
  }//end loop
View Full Code Here

TOP

Related Classes of net.jini.lookup.JoinManager

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.