Examples of JoinManager


Examples of net.jini.lookup.JoinManager

            }
            innerProxy =
                   (RemoteTestServiceInterface)serverExporter.export(this);
            outerProxy = TestServiceProxy.createTestServiceProxy
                                          (innerProxy, proxyID, val, renewDur);
            joinMgr = new JoinManager(outerProxy, null, serviceID,
                                      ldm, null, config);
        }//end doInit
View Full Code Here

Examples of net.jini.lookup.JoinManager

      }
  }
  log.snapshot();
  discoer = new LookupDiscoveryManager(lookupGroups, lookupLocators,
               null);
  joiner = new JoinManager(proxy, lookupAttrs, myServiceID,
         discoer, null);
  /* start up all the daemon threads */
  serviceExpirer.start();
  eventExpirer.start();
  unicaster.start();
 
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());
        joinMgrList.add(joinMgrSrvcID);
    }//end setup
View Full Code Here

Examples of net.jini.lookup.JoinManager

        super.setup(sysConfig);
        /* Discover & join lookups just started */
        String jmType = ( (callbackJM) ? "callback" : "service ID" );
        logger.log(Level.FINE, "creating a "+jmType+" join manager ...");
        if(callbackJM) {
            jm = new JoinManager(testService,serviceAttrs,
                                 new SrvcIDListener(testService),
                                 getLookupDiscoveryManager(),leaseMgr,
         sysConfig.getConfiguration());
            nServiceIDEventsExpected = 1;
        } else {//create a join manager that sends the generated ID in an event
            jm = new JoinManager(testService,serviceAttrs,serviceID,
                                 getLookupDiscoveryManager(),leaseMgr,
         sysConfig.getConfiguration());
            nServiceIDEventsExpected = 0;
        }//endif
        joinMgrList.add(jm);
View Full Code Here

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

Examples of net.jini.lookup.JoinManager

      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

Examples of net.jini.lookup.JoinManager

    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

Examples of net.jini.lookup.JoinManager

     *   </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

Examples of net.jini.lookup.JoinManager

        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

Examples of net.jini.lookup.JoinManager

    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
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.