Package net.jini.lookup

Examples of net.jini.lookup.JoinManager


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

            if (serviceID != null) {
                new JoinManager(proxy, // service proxy
                        entries, // attr sets
                        serviceID, // ServiceID
                        mgr, // DiscoveryManager
                        new LeaseRenewalManager());
            } else {
                new JoinManager(proxy, // service proxy
                        entries, // attr sets
                        this, // ServiceIDListener
                        mgr, // DiscoveryManager
                        new LeaseRenewalManager());
            }
View Full Code Here


            LOG.error(message, e);
            throw new RuntimeException(message, e);
        }

        try {
            joinManager = new JoinManager(getProxy(), entries, this, null, null);
        } catch (IOException e) {
            final String message = "Error starting discovery";
            LOG.error(message, e);
            throw new RuntimeException(message, e);
        }
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

      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

  ((DiscoveryLocatorManagement)dm).setLocators(locators);

        if(initlogger.isLoggable(Level.FINEST)) {
      initlogger.log(Level.FINEST, "Creating JoinManager");
        }
  mgr = new JoinManager(service, attributes, serviceID,
            dm, 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 dm.
        attributes = null;
View Full Code Here

  // Create DiscoveryManager
  createDiscoveryManager();

  // Create JoinManager
  try {
      joinMgr = new JoinManager(service, attributes, serviceID, dm, lrm,
              config);
  } catch (IOException e) {
      IOException e2 = new IOException(
    "Problem starting JoinManager: " + e.getMessage());
      e2.initCause(e2);
View Full Code Here

            }
            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

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

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

        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

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.