Package org.eclipse.ecf.provider.zookeeper.core.internal

Examples of org.eclipse.ecf.provider.zookeeper.core.internal.Notification


    if (serviceInfo instanceof AdvertisedService) {
      watchManager.publish((AdvertisedService) serviceInfo);
    } else {
      watchManager.publish(new AdvertisedService(serviceInfo));
    }
    Localizer.getSingleton().localize(new Notification(serviceInfo, Notification.AVAILABLE));

  }
View Full Code Here


  public void unregisterService(IServiceInfo serviceInfo) {
    Assert.isNotNull(serviceInfo);
    watchManager.unpublish(serviceInfo.getServiceID().getName());

    Localizer.getSingleton().localize(new Notification(serviceInfo, Notification.UNAVAILABLE));
  }
View Full Code Here

        this.location);
  }

  public void dispose() {
    Logger.log(SystemLogService.LOG_DEBUG, PrettyPrinter.prompt(PrettyPrinter.REMOTE_UNAVAILABLE, this), null);
    Localizer.getSingleton().localize(new Notification(this, Notification.UNAVAILABLE));
  }
View Full Code Here

          return;
        }
        // delete node
        this.writeRoot.getWriteKeeper().delete(nodePath, -1);
        Localizer.getSingleton().localize(
            new Notification(this.getNode().getWrappedService(),
                Notification.UNAVAILABLE));
        Logger.log(LogService.LOG_INFO, PrettyPrinter.prompt(PrettyPrinter.UNPUBLISHED, this.getNode().getWrappedService()), null);

      } catch (KeeperException e) {
        // ignore
View Full Code Here

      readRoot.getDiscoverdServices()
          .put(this.discovered.getServiceID().getServiceTypeID()
              .getName(), this.discovered);
      Logger.log(LogService.LOG_DEBUG, PrettyPrinter.prompt(PrettyPrinter.REMOTE_AVAILABLE, this.discovered), null);
      Localizer.getSingleton().localize(
          new Notification(this.discovered, Notification.AVAILABLE));

    } catch (IOException e) {
      Logger.log(LogService.LOG_DEBUG, e.getMessage(), e);
    } finally {
      if (objin != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.provider.zookeeper.core.internal.Notification

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.