Class PartitionedDiscovery

  • All Implemented Interfaces:
    EmoServiceDiscovery, com.google.common.util.concurrent.Service

    public class PartitionedDiscovery
    extends ZKEmoServiceDiscovery
    Service discovery implementation which directs requests to a spectific host based on a partition key. The algorithm comes directly from EmoDB and Zookeeper.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PartitionedDiscovery.Builder  
      • 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 
      Constructor Description
      PartitionedDiscovery​(java.lang.String zookeeperConnectionString, java.lang.String service, java.lang.String partitionKey)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URI getBaseUriFromDiscovery()  
      protected 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