Class ZKEmoServiceDiscovery

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  ZKEmoServiceDiscovery.Builder  
      protected static class  ZKEmoServiceDiscovery.Host  
      • Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

        com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ZKEmoServiceDiscovery​(java.lang.String zookeeperConnectionString, java.lang.String service)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doStart()  
      protected void doStop()  
      java.net.URI getBaseUri()  
      protected abstract java.net.URI getBaseUriFromDiscovery()  
      protected abstract void hostsChanged​(java.util.List<ZKEmoServiceDiscovery.Host> sortedHosts)  
      • Methods inherited from class com.google.common.util.concurrent.AbstractService

        addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ZKEmoServiceDiscovery

        protected ZKEmoServiceDiscovery​(java.lang.String zookeeperConnectionString,
                                        java.lang.String service)
    • Method Detail

      • doStart

        protected void doStart()
        Specified by:
        doStart in class com.google.common.util.concurrent.AbstractService
      • doStop

        protected void doStop()
        Specified by:
        doStop in class com.google.common.util.concurrent.AbstractService
      • getBaseUri

        public java.net.URI getBaseUri()
                                throws java.net.UnknownHostException
        Specified by:
        getBaseUri in interface EmoServiceDiscovery
        Throws:
        java.net.UnknownHostException
      • getBaseUriFromDiscovery

        protected abstract java.net.URI getBaseUriFromDiscovery()