Package net.jini.lookup

Examples of net.jini.lookup.JoinManager$ProxyReg


        ClassLoader oldClassLoader = curThread.getContextClassLoader();
        curThread.setContextClassLoader(Activator.class.getClassLoader());

        // creating a lookupDiscovery
        lookupDiscovery = new LookupDiscovery(getLusExportGroups());
        joinManager = new JoinManager(this.service, this.entries, this,
                lookupDiscovery, leaseRenewalManager);

        curThread.setContextClassLoader(oldClassLoader);
        oldClassLoader = null;
        curThread = null;
View Full Code Here


      // after the JoinManager has been constructed.
      discovery = new LookupDiscoveryManager(LookupDiscovery.NO_GROUPS,
               locators, null);

      proxy.setServerRef(this);
      myJM = new JoinManager(proxy, attrs, this, discovery,
                                       null);
      joiners.add(myJM);

      // Use user.name property as group for joining purposes
      String[] joinGroups = new String[] { System.getProperty("user.name") };
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

                    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

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

      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

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

  }

  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

      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

TOP

Related Classes of net.jini.lookup.JoinManager$ProxyReg

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.