public 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 and Description |
---|
MockNode(Settings settings,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins) |
Modifier and Type | Method and Description |
---|---|
protected BigArrays |
createBigArrays(Settings settings,
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) |
protected SearchService |
newSearchService(ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ScriptService scriptService,
BigArrays bigArrays,
FetchPhase fetchPhase) |
protected TransportService |
newTransportService(Settings settings,
Transport transport,
ThreadPool threadPool,
TransportInterceptor interceptor,
java.util.function.Function<BoundTransportAddress,DiscoveryNode> localNodeFactory,
ClusterSettings clusterSettings) |
protected Node |
newTribeClientNode(Settings settings,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins) |
protected void |
processRecoverySettings(ClusterSettings clusterSettings,
RecoverySettings recoverySettings) |
addNodeNameIfNeeded, client, close, createCircuitBreakerService, getEnvironment, getNodeEnvironment, getPluginsService, injector, isClosed, settings, start, validateNodeBeforeAcceptingRequests
public java.util.Collection<java.lang.Class<? extends Plugin>> getClasspathPlugins()
protected BigArrays createBigArrays(Settings settings, CircuitBreakerService circuitBreakerService)
createBigArrays
in class Node
protected SearchService newSearchService(ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ScriptService scriptService, BigArrays bigArrays, FetchPhase fetchPhase)
newSearchService
in class Node
protected TransportService newTransportService(Settings settings, Transport transport, ThreadPool threadPool, TransportInterceptor interceptor, java.util.function.Function<BoundTransportAddress,DiscoveryNode> localNodeFactory, ClusterSettings clusterSettings)
newTransportService
in class Node
protected Node newTribeClientNode(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
newTribeClientNode
in class Node
protected void processRecoverySettings(ClusterSettings clusterSettings, RecoverySettings recoverySettings)
processRecoverySettings
in class Node
protected ClusterInfoService newClusterInfoService(Settings settings, ClusterService clusterService, ThreadPool threadPool, NodeClient client)
newClusterInfoService
in class Node