Package org.apache.helix

Examples of org.apache.helix.LiveInstanceInfoProvider


  public boolean register(final String serviceId, final ServiceMetadata serviceMetadata)
      throws Exception {
    HelixManager helixManager =
        HelixManagerFactory.getZKHelixManager(cluster, serviceId, InstanceType.PARTICIPANT,
            zkAddress);
    LiveInstanceInfoProvider liveInstanceInfoProvider = new LiveInstanceInfoProvider() {
      @Override
      public ZNRecord getAdditionalLiveInstanceInfo() {
        // serialize serviceMetadata to ZNRecord
        ZNRecord rec = new ZNRecord(serviceId);
        rec.setSimpleField("HOST", serviceMetadata.getHost());
View Full Code Here


  public boolean register(final String serviceId, final ServiceMetadata serviceMetadata)
      throws Exception {
    HelixManager helixManager =
        HelixManagerFactory.getZKHelixManager(cluster, serviceId, InstanceType.PARTICIPANT,
            zkAddress);
    LiveInstanceInfoProvider liveInstanceInfoProvider = new LiveInstanceInfoProvider() {
      @Override
      public ZNRecord getAdditionalLiveInstanceInfo() {
        // serialize serviceMetadata to ZNRecord
        ZNRecord rec = new ZNRecord(serviceId);
        rec.setSimpleField("HOST", serviceMetadata.getHost());
View Full Code Here

  public boolean register(final String serviceId,
      final ServiceMetadata serviceMetadata) throws Exception
  {
    HelixManager helixManager = HelixManagerFactory.getZKHelixManager(cluster,
        serviceId, InstanceType.PARTICIPANT, zkAddress);
    LiveInstanceInfoProvider liveInstanceInfoProvider = new LiveInstanceInfoProvider()
    {
      @Override
      public ZNRecord getAdditionalLiveInstanceInfo()
      {
        // serialize serviceMetadata to ZNRecord
View Full Code Here

TOP

Related Classes of org.apache.helix.LiveInstanceInfoProvider

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.