Examples of addLocators()


Examples of net.jini.discovery.DiscoveryLocatorManagement.addLocators()

  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.addLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
View Full Code Here

Examples of net.jini.discovery.DiscoveryLocatorManagement.addLocators()

  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.addLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
View Full Code Here

Examples of net.jini.discovery.DiscoveryLocatorManagement.addLocators()

  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.addLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
View Full Code Here

Examples of net.jini.discovery.DiscoveryLocatorManagement.addLocators()

    public void addLookupLocators(LookupLocator[] locators) {
        JoinManager mgr = service.getJoinManager();
        if(mgr!=null) {
            DiscoveryManagement dm = mgr.getDiscoveryManager();
            DiscoveryLocatorManagement dlm = (DiscoveryLocatorManagement)dm;
            dlm.addLocators(locators);
            if(snapshotHandler!=null) {
                try {
                    snapshotHandler.takeSnapshot();
                } catch(IOException ioe) {
                    logger.warn( "Persisting Added LookupLocators", ioe);
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.addLocators()

            /* update the expected state for this regInfo information */
            regInfo.setLookupsToDiscover(DiscoveryGroupManagement.NO_GROUPS,
                                         locatorsToDiscover);
        }//end sync(regInfo)
        /* Add to the locators the lds should discover for this registration */
        reg.addLocators(locators);
    }//end addLocatorsOneReg

    /** Common code, shared by this class and its sub-classes. For each
     *  current registration with the lookup discovery service, this method
     *  replaces that registration's desired locators with the given set of
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.addLocators()

            LookupDiscoveryRegistration ldsReg =
                                    (LookupDiscoveryRegistration)pair.getKey();
            LDSEventListener regListener = (LDSEventListener)pair.getValue();
            RegistrationInfo regInfo = regListener.getRegInfo();
      setExpectedDiscoveredMap(regInfo,ldsReg);
            ldsReg.addLocators(locators);
        }//end loop(j)
    }//end addLocatorsDo

    /** For each registration with the discovery service, this method removes
     *  the given locators from the set of locators that should be discovered.
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryRegistration.addLocators()

            /* update the expected state for this regInfo information */
            regInfo.setLookupsToDiscover(DiscoveryGroupManagement.NO_GROUPS,
                                         locatorsToDiscover);
        }//end sync(regInfo)
        /* Add to the locators the lds should discover for this registration */
        reg.addLocators(locators);
    }//end addLocatorsOneReg

    /** Common code, shared by this class and its sub-classes. For each
     *  current registration with the lookup discovery service, this method
     *  replaces that registration's desired locators with the given set of
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery.addLocators()

        /* Using either addLocators ore setLocators, re-configure the
         * lookup locator discovery utility to discover the lookup
         * services started in setup
         */
        if(addLocs) {
            lld.addLocators(locsToDiscover);
        } else {
            lld.setLocators(locsToDiscover);
        }//endif
        /* Verify that the listener receives the expected events */
        waitForDiscovery(mainListener);
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.