Package net.jini.discovery

Examples of net.jini.discovery.DiscoveryLocatorManagement


  ready.check();
  locators = prepareLocators(locators, locatorPreparer, false);
  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,
        "added lookup locators {0}",
View Full Code Here


      ready.check();
      locators = prepareLocators(locators, locatorPreparer, false);
  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.removeLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
        "removed lookup locators {0}",
View Full Code Here

      ready.check();
      locators = prepareLocators(locators, locatorPreparer, false);
  concurrentObj.writeLock();
  try {
      ready.check();
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.setLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
        "set lookup locators {0}",
View Full Code Here

      if (groups == null || groups.length > 0) {
    throw new ConfigurationException(
        "discoveryManager must be initially configured with " +
        "no groups");
      }
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      if (dlm.getLocators().length > 0) {
    throw new ConfigurationException(
        "discoveryManager must be initially configured with " +
        "no locators");
      }
      dgm.setGroups(lookupGroups);
      dlm.setLocators(lookupLocators);
  } catch (ClassCastException e) {
      throw new ConfigurationException(null, e);
  }
  joiner = new JoinManager(proxy, lookupAttrs, myServiceID,
         discoer, null, config);
View Full Code Here

  ready.check();
  locators = prepareLocators(locators, locatorPreparer, false);
  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,
        "added lookup locators {0}",
View Full Code Here

      ready.check();
      locators = prepareLocators(locators, locatorPreparer, false);
  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.removeLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
        "removed lookup locators {0}",
View Full Code Here

      ready.check();
      locators = prepareLocators(locators, locatorPreparer, false);
  concurrentObj.writeLock();
  try {
      ready.check();
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.setLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
        "set lookup locators {0}",
View Full Code Here

      if (groups == null || groups.length > 0) {
    throw new ConfigurationException(
        "discoveryManager must be initially configured with " +
        "no groups");
      }
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      if (dlm.getLocators().length > 0) {
    throw new ConfigurationException(
        "discoveryManager must be initially configured with " +
        "no locators");
      }
      dgm.setGroups(lookupGroups);
      dlm.setLocators(lookupLocators);
  } catch (ClassCastException e) {
      throw new ConfigurationException(null, e);
  }
  joiner = new JoinManager(proxy, lookupAttrs, myServiceID,
         discoer, null, config);
View Full Code Here

  ready.check();
  locators = prepareLocators(locators, locatorPreparer, false);
  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,
        "added lookup locators {0}",
View Full Code Here

      ready.check();
      locators = prepareLocators(locators, locatorPreparer, false);
  concurrentObj.writeLock();
  try {
      ready.check();     
      DiscoveryLocatorManagement dlm =
    (DiscoveryLocatorManagement) discoer;
      dlm.removeLocators(locators);
      lookupLocators = dlm.getLocators();
      addLogRecord(new LookupLocatorsChangedLogObj(lookupLocators));
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(
        Level.CONFIG,
        "removed lookup locators {0}",
View Full Code Here

TOP

Related Classes of net.jini.discovery.DiscoveryLocatorManagement

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.