java.io.Closeable, java.lang.AutoCloseablepublic class MockNode extends Node
BREAKER_TYPE_KEY, NODE_ATTRIBUTES, NODE_DATA_SETTING, NODE_INGEST_SETTING, NODE_LOCAL_STORAGE_SETTING, NODE_MASTER_SETTING, NODE_NAME_SETTING, WRITE_PORTS_FILE_SETTING| Constructor | Description |
|---|---|
MockNode(Settings settings,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins) |
|
MockNode(Settings settings,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins,
java.nio.file.Path configPath) |
|
MockNode(Environment environment,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins) |
| Modifier and Type | Method | Description |
|---|---|---|
protected BigArrays |
createBigArrays(PageCacheRecycler pageCacheRecycler,
CircuitBreakerService circuitBreakerService) |
|
java.util.Collection<java.lang.Class<? extends Plugin>> |
getClasspathPlugins() |
The classpath plugins this node was constructed with.
|
protected ClusterInfoService |
newClusterInfoService(Settings settings,
ClusterService clusterService,
ThreadPool threadPool,
NodeClient client,
java.util.function.Consumer<ClusterInfo> listener) |
|
protected SearchService |
newSearchService(ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ScriptService scriptService,
BigArrays bigArrays,
FetchPhase fetchPhase,
ResponseCollectorService responseCollectorService) |
|
protected TransportService |
newTransportService(Settings settings,
Transport transport,
ThreadPool threadPool,
TransportInterceptor interceptor,
java.util.function.Function<BoundTransportAddress,DiscoveryNode> localNodeFactory,
ClusterSettings clusterSettings,
java.util.Set<java.lang.String> taskHeaders) |
|
protected void |
processRecoverySettings(ClusterSettings clusterSettings,
RecoverySettings recoverySettings) |
addNodeNameIfNeeded, client, close, createCircuitBreakerService, getEnvironment, getNodeEnvironment, getPluginsService, injector, isClosed, originalSettings, settings, start, validateNodeBeforeAcceptingRequestspublic MockNode(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
public MockNode(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins, java.nio.file.Path configPath)
public MockNode(Environment environment, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
public java.util.Collection<java.lang.Class<? extends Plugin>> getClasspathPlugins()
protected BigArrays createBigArrays(PageCacheRecycler pageCacheRecycler, CircuitBreakerService circuitBreakerService)
protected SearchService newSearchService(ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ScriptService scriptService, BigArrays bigArrays, FetchPhase fetchPhase, ResponseCollectorService responseCollectorService)
newSearchService in class Nodeprotected TransportService newTransportService(Settings settings, Transport transport, ThreadPool threadPool, TransportInterceptor interceptor, java.util.function.Function<BoundTransportAddress,DiscoveryNode> localNodeFactory, ClusterSettings clusterSettings, java.util.Set<java.lang.String> taskHeaders)
newTransportService in class Nodeprotected void processRecoverySettings(ClusterSettings clusterSettings, RecoverySettings recoverySettings)
processRecoverySettings in class Nodeprotected ClusterInfoService newClusterInfoService(Settings settings, ClusterService clusterService, ThreadPool threadPool, NodeClient client, java.util.function.Consumer<ClusterInfo> listener)
newClusterInfoService in class Node