mirror of https://github.com/apache/druid.git
curator 2.3.0
This commit is contained in:
parent
6c6c1c83f8
commit
e4bcbcf3cc
2
pom.xml
2
pom.xml
|
@ -40,7 +40,7 @@
|
|||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<metamx.java-util.version>0.25.1</metamx.java-util.version>
|
||||
<apache.curator.version>2.1.0-incubating</apache.curator.version>
|
||||
<apache.curator.version>2.3.0</apache.curator.version>
|
||||
<druid.api.version>0.1.7</druid.api.version>
|
||||
</properties>
|
||||
|
||||
|
|
|
@ -40,14 +40,7 @@ import io.druid.guice.annotations.Self;
|
|||
import io.druid.server.DruidNode;
|
||||
import io.druid.server.initialization.CuratorDiscoveryConfig;
|
||||
import org.apache.curator.framework.CuratorFramework;
|
||||
import org.apache.curator.x.discovery.ProviderStrategy;
|
||||
import org.apache.curator.x.discovery.ServiceCache;
|
||||
import org.apache.curator.x.discovery.ServiceCacheBuilder;
|
||||
import org.apache.curator.x.discovery.ServiceDiscovery;
|
||||
import org.apache.curator.x.discovery.ServiceDiscoveryBuilder;
|
||||
import org.apache.curator.x.discovery.ServiceInstance;
|
||||
import org.apache.curator.x.discovery.ServiceProvider;
|
||||
import org.apache.curator.x.discovery.ServiceProviderBuilder;
|
||||
import org.apache.curator.x.discovery.*;
|
||||
import org.apache.curator.x.discovery.details.ServiceCacheListener;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -389,8 +382,12 @@ public class DiscoveryModule implements Module
|
|||
}
|
||||
|
||||
@Override
|
||||
public ServiceProviderBuilder<T> refreshPaddingMs(int refreshPaddingMs)
|
||||
{
|
||||
public ServiceProviderBuilder<T> downInstancePolicy(DownInstancePolicy downInstancePolicy) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServiceProviderBuilder<T> additionalFilter(InstanceFilter<T> tInstanceFilter) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
@ -409,6 +406,11 @@ public class DiscoveryModule implements Module
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void noteError(ServiceInstance<T> tServiceInstance) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException
|
||||
{
|
||||
|
|
|
@ -62,6 +62,11 @@ public class ServerDiscoveryFactory
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void noteError(ServiceInstance<T> tServiceInstance) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue