java.io.Closeable, java.lang.AutoCloseable, UnicastHostsProviderpublic final class MockUncasedHostProvider extends java.lang.Object implements UnicastHostsProvider, java.io.Closeable
UnicastHostsProvider implementation which returns results based on a static in-memory map. This allows running
with nodes that only determine their transport address at runtime, which is the default behavior of
InternalTestCluster| Constructor | Description |
|---|---|
MockUncasedHostProvider(java.util.function.Supplier<DiscoveryNode> localNodeSupplier,
ClusterName clusterName) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<DiscoveryNode> |
buildDynamicNodes() |
|
void |
close() |
public MockUncasedHostProvider(java.util.function.Supplier<DiscoveryNode> localNodeSupplier, ClusterName clusterName)
public java.util.List<DiscoveryNode> buildDynamicNodes()
buildDynamicNodes in interface UnicastHostsProviderpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeable