Class EtcdPublisher

java.lang.Object
com.predic8.membrane.core.cloud.etcd.EtcdPublisher
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

public class EtcdPublisher extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle
  • Constructor Details

    • EtcdPublisher

      public EtcdPublisher()
  • Method Details

    • getBaseUrl

      public String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(String baseURL)
      Default
      "..."
      Description
      URL for etcd
    • getBaseKey

      public String getBaseKey()
    • setBaseKey

      public void setBaseKey(String baseKey)
      Default
      "/asa/lb"
      Description
      Key/Directory
    • getTtl

      public int getTtl()
    • setTtl

      public void setTtl(int ttl)
      Default
      300
      Description
      time to live of etcd data
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • readConfig

      public void readConfig()
    • publishToEtcd

      public boolean publishToEtcd()
    • start

      @EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException