com.bazaarvoice.emodb.queue.client.DedupQueueFixedHostDiscoverySource Maven / Gradle / Ivy
package com.bazaarvoice.emodb.queue.client;
import com.bazaarvoice.emodb.common.dropwizard.discovery.ConfiguredFixedHostDiscoverySource;
import com.bazaarvoice.emodb.common.dropwizard.discovery.ConfiguredPayload;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Map;
/**
* A SOA (Ostrich) helper class that can be used to configure a {@link com.bazaarvoice.ostrich.ServicePool}
* with a fixed, hard-coded set of hosts, useful for testing and for cross-data center API calls where
* the client and EmoDB servers aren't in the same data center and don't have access to the same ZooKeeper
* ensemble.
*
* @see ConfiguredFixedHostDiscoverySource
*/
public class DedupQueueFixedHostDiscoverySource extends ConfiguredFixedHostDiscoverySource {
public DedupQueueFixedHostDiscoverySource() {
super();
}
public DedupQueueFixedHostDiscoverySource(String... hosts) {
super(hosts);
}
@JsonCreator
public DedupQueueFixedHostDiscoverySource(Map endPoints) {
super(endPoints);
}
@Override
protected String getBaseServiceName() {
return DedupQueueClient.BASE_SERVICE_NAME;
}
@Override
protected String getServicePath() {
return DedupQueueClient.SERVICE_PATH;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy