Class PreBuiltTransportClient
java.lang.Object
org.elasticsearch.client.support.AbstractClient
org.elasticsearch.client.transport.TransportClient
org.elasticsearch.transport.client.PreBuiltTransportClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Client
,ElasticsearchClient
,org.elasticsearch.core.Releasable
Deprecated.
A builder to create an instance of
TransportClient
. This class pre-installs the
Netty4Plugin
,
ReindexPlugin
,
PercolatorPlugin
,
MustachePlugin
,
ParentJoinPlugin
plugins for the client. These plugins are all the required modules for Elasticsearch.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.client.transport.TransportClient
TransportClient.HostFailureListener
-
Field Summary
Fields inherited from class org.elasticsearch.client.transport.TransportClient
CLIENT_TRANSPORT_IGNORE_CLUSTER_NAME, CLIENT_TRANSPORT_NODES_SAMPLER_INTERVAL, CLIENT_TRANSPORT_PING_TIMEOUT, CLIENT_TRANSPORT_SNIFF, CLIENT_TYPE, namedWriteableRegistry, TRANSPORT_CLIENT_FEATURE
Fields inherited from class org.elasticsearch.client.support.AbstractClient
logger, settings
Fields inherited from interface org.elasticsearch.client.Client
CLIENT_TYPE_SETTING_S
-
Constructor Summary
ConstructorDescriptionPreBuiltTransportClient
(Settings settings, Class<? extends Plugin>... plugins) Deprecated.Creates a new transport client with pre-installed plugins.PreBuiltTransportClient
(Settings settings, Collection<Class<? extends Plugin>> plugins) Deprecated.Creates a new transport client with pre-installed plugins.PreBuiltTransportClient
(Settings settings, Collection<Class<? extends Plugin>> plugins, TransportClient.HostFailureListener hostFailureListener) Deprecated.Creates a new transport client with pre-installed plugins. -
Method Summary
Methods inherited from class org.elasticsearch.client.transport.TransportClient
addPlugins, addPlugins, addTransportAddress, addTransportAddresses, connectedNodes, doExecute, filteredNodes, listedNodes, removeTransportAddress, transportAddresses
Methods inherited from class org.elasticsearch.client.support.AbstractClient
admin, bulk, bulk, clearScroll, clearScroll, delete, delete, execute, execute, explain, explain, fieldCaps, fieldCaps, filterWithHeader, get, get, index, index, multiGet, multiGet, multiSearch, multiSearch, multiTermVectors, multiTermVectors, prepareBulk, prepareBulk, prepareClearScroll, prepareDelete, prepareDelete, prepareExplain, prepareFieldCaps, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, prepareMultiGet, prepareMultiSearch, prepareMultiTermVectors, prepareSearch, prepareSearchScroll, prepareTermVectors, prepareTermVectors, prepareUpdate, prepareUpdate, search, search, searchScroll, searchScroll, settings, termVectors, termVectors, threadPool, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.client.Client
getRemoteClusterClient
-
Constructor Details
-
PreBuiltTransportClient
Deprecated.Creates a new transport client with pre-installed plugins.- Parameters:
settings
- the settings passed to this transport clientplugins
- an optional array of additional plugins to run with this client
-
PreBuiltTransportClient
Deprecated.Creates a new transport client with pre-installed plugins.- Parameters:
settings
- the settings passed to this transport clientplugins
- a collection of additional plugins to run with this client
-
PreBuiltTransportClient
public PreBuiltTransportClient(Settings settings, Collection<Class<? extends Plugin>> plugins, TransportClient.HostFailureListener hostFailureListener) Deprecated.Creates a new transport client with pre-installed plugins.- Parameters:
settings
- the settings passed to this transport clientplugins
- a collection of additional plugins to run with this clienthostFailureListener
- a failure listener that is invoked if a node is disconnected; this can benull
-
-
Method Details
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
- Overrides:
close
in classTransportClient
-
TransportClient
is deprecated in favour of the High Level REST client and will be removed in Elasticsearch 8.0.