Package net.jini.discovery

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


  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

  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

    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

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.