public class CuratorComponent
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
CuratorComponent(com.lucidworks.apollo.startup.DependencyManager dependencyManager,
com.lucidworks.apollo.config.CuratorConfiguration configuration,
MetricRegistry metricRegistry,
com.lucidworks.apollo.component.CuratorComponent.InstrumentedBoundedExponentialBackoffRetry retryPolicy,
CuratorDependencyComponent curatorDependencyComponent) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CuratorFramework |
get()
Get an active, initialized CuratorFramework with a namespace set
|
java.lang.String |
getZkConnect() |
void |
shutdown() |
public CuratorComponent(com.lucidworks.apollo.startup.DependencyManager dependencyManager,
com.lucidworks.apollo.config.CuratorConfiguration configuration,
MetricRegistry metricRegistry,
com.lucidworks.apollo.component.CuratorComponent.InstrumentedBoundedExponentialBackoffRetry retryPolicy,
CuratorDependencyComponent curatorDependencyComponent)
public CuratorFramework get()
public java.lang.String getZkConnect()
@PreDestroy public void shutdown()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException