Examples of JoinManager


Examples of net.jini.lookup.JoinManager

  }

  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

Examples of net.jini.lookup.JoinManager

      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

Examples of net.jini.lookup.JoinManager

      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

Examples of net.jini.lookup.JoinManager

      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

Examples of net.jini.lookup.JoinManager

     *   </ul>
     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        logger.log(Level.FINE, "creating a callback join manager ...");
        joinMgrCallback = new JoinManager(testService,
            serviceAttrs,
            callback,
                                          discoveryMgr,
            leaseMgr,
            sysConfig.getConfiguration());
        joinMgrList.add(joinMgrCallback);
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,
          serviceAttrs,
          serviceID,
                                        discoveryMgr,
          leaseMgr,
          sysConfig.getConfiguration());
View Full Code Here

Examples of net.jini.lookup.JoinManager

     */
    public void run() throws Exception {
        logger.log(Level.FINE, "run()");
        /* Callback join manager */
        logger.log(Level.FINE, "testing the callback join manager ...");
        JoinManager newJM = null;
  newJM = new JoinManager(testService,
        serviceAttrs,
        callback,
        discoveryMgr,
        leaseMgr,
        getConfig().getConfiguration());
  joinMgrList.add(newJM);
        if( !satisfiesEqualityTest(joinMgrCallback,newJM) ) {
            throw new TestException(
                                 "failed equality test -- DIFFERENT instances "
                                 +"of callback join manager ");
        }//endif
        if( !satisfiesEqualityTest(joinMgrCallback,joinMgrCallback) ) {
            throw new TestException(
                                 "failed equality test -- SAME instance "
                                 +"of callback join manager ");
        }//endif
        logger.log(Level.FINE, "callback join manager passed equality test");
        /* Service ID join manager */
        logger.log(Level.FINE, "testing the service ID join manager ...");
  newJM = new JoinManager(testService,
        serviceAttrs,
        serviceID,
        discoveryMgr,
        leaseMgr,
        getConfig().getConfiguration());
View Full Code Here

Examples of net.jini.lookup.JoinManager

                    mod = 10;
                }//endif
            }//endif
            /* Terminate each joinmanager and each discovery manager created */
            for(int i=0;i<joinMgrList.size();i++) {
                JoinManager joinMgr = (JoinManager)joinMgrList.get(i);
                DiscoveryManagement discMgr = joinMgr.getDiscoveryManager();
                /* If N join mgrs (N large), show only some debug info */
                boolean show = ( ((i%mod == 0)||(i == n-1)) ? true : false);
                try {
                    if(show) logger.log(Level.FINE,
                                  "tearDown - terminating join manager "+i);
                    joinMgr.terminate();
                } catch(Exception e) {
                    e.printStackTrace();
                }
                try {
                    if(show) logger.log(Level.FINE,
View Full Code Here

Examples of net.jini.lookup.JoinManager

     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        logger.log(Level.FINE, "creating a callback join manager ...");
        callback = new SrvcIDListener(testService);
        joinMgrCallback = new JoinManager(testService,serviceAttrs,callback,
                                          getLookupDiscoveryManager(),
                                          leaseMgr,
            sysConfig.getConfiguration());
        joinMgrList.add(joinMgrCallback);
    }//end setup
View Full Code Here

Examples of net.jini.lookup.JoinManager

     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        /* Discover & join lookups just started */
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        getLookupDiscoveryManager(),leaseMgr,
          sysConfig.getConfiguration());
        joinMgrList.add(joinMgrSrvcID);
    }//end setup
View Full Code Here

Examples of net.jini.lookup.JoinManager

                expectedAttrs[i] = new TestServiceIntAttr
                  (( ((TestServiceIntAttr)newServiceAttrs[i]).val).intValue());
            }//endif
        }//end loop
        logger.log(Level.FINE, "creating a service ID join manager ...");
        joinMgrSrvcID = new JoinManager(testService,serviceAttrs,serviceID,
                                        getLookupDiscoveryManager(),leaseMgr,
          sysConfig.getConfiguration());
        joinMgrList.add(joinMgrSrvcID);
    }//end setup
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.