Examples of JoinManager


Examples of com.sun.jini.lookup.JoinManager

            };
   
  /* Create a LeaseRenewalManager for the JoinManager to use */
  LeaseRenewalManager leaseRenewalMgr = new LeaseRenewalManager();
  try {
      _joinMgr = new JoinManager(this,
               _serviceAttrs,
               _groupsToJoin,
               _lookupLocators,
               new ServiceIDListenerImpl(),
               leaseRenewalMgr);
View Full Code Here

Examples of com.sun.jini.lookup.JoinManager

  entries.toArray(_serviceAttrs);

  /* Create a LeaseRenewalManager for the JoinManager to use */
  LeaseRenewalManager leaseRenewalMgr = new LeaseRenewalManager();
  try {
      _joinMgr = new JoinManager(this,
               _serviceAttrs,
               _groupsToJoin,
               _lookupLocators,
               new ServiceIDListenerImpl(this),
               leaseRenewalMgr);
View Full Code Here

Examples of com.sun.jini.lookup.JoinManager

            };
   
  /* Create a LeaseRenewalManager for the JoinManager to use */
  LeaseRenewalManager leaseRenewalMgr = new LeaseRenewalManager();
  try {
      _joinMgr = new JoinManager(this,
               _serviceAttrs,
               _groupsToJoin,
               _lookupLocators,
               new ServiceIDListenerImpl(),
               leaseRenewalMgr);
View Full Code Here

Examples of com.sun.jini.lookup.JoinManager

  entries.toArray(_serviceAttrs);

  /* Create a LeaseRenewalManager for the JoinManager to use */
  LeaseRenewalManager leaseRenewalMgr = new LeaseRenewalManager();
  try {
      _joinMgr = new JoinManager(this,
               _serviceAttrs,
               _groupsToJoin,
               _lookupLocators,
               new ServiceIDListenerImpl(this),
               leaseRenewalMgr);
View Full Code Here

Examples of net.jini.lookup.JoinManager

        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

Examples of net.jini.lookup.JoinManager

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

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

                    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

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