All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ibole.microservice.discovery.AbstractServiceDiscovery Maven / Gradle / Ivy

The newest version!
package com.github.ibole.microservice.discovery;

import com.github.ibole.microservice.common.ServerIdentifier;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractServiceDiscovery implements ServiceDiscovery {

  protected final Logger logger = LoggerFactory.getLogger(this.getClass().getName());

  private ServerIdentifier identifier;

  protected AbstractServiceDiscovery(ServerIdentifier identifier) {
    this.identifier = identifier;
  }

  @Override
  public ServerIdentifier getIdentifier() {
    return this.identifier;
  }

  protected String buildBasePath() {
    return this.getIdentifier().getRootPath().getPath();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy