Package net.jini.discovery

Examples of net.jini.discovery.LookupDiscovery.terminate()


      si = null;
      System.out.println("TransactionManager found");
    } else {
      System.out.println("Can't find TransactionManager");
    }
    discovery.terminate();
    serviceDiscoveryManager.terminate();
  }

  public void startAdapter()
    throws RemoteException, TransactionException,
View Full Code Here


      };
    }
    finally {
      // make sure to close the lookup threads
      if (lookupDiscovery != null)
        lookupDiscovery.terminate();
    }

    return proxy;
  }
View Full Code Here

        mainListener.setLookupsToDiscover(initLookupsToStart);
        ld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        /* Terminate the lookup discovery utility */
        ld.terminate();
        logger.log(Level.FINE, "terminated lookup discovery");


        /* Since the lookup discovery utility was terminated, the listener
         * should receive no more events when new lookups are started that
View Full Code Here

  }

  if (arder.unexpected == true) {
      throw new TestException( "unexpected event reported");
  }
  disc.terminate();

  try {
      disc.addGroups(actualGroups);
      throw new TestException("addGroups after terminate didn't "
          + "throw anything");
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.