Class PreBuiltTransportClient
java.lang.Object
org.elasticsearch.client.support.AbstractClient
org.elasticsearch.client.transport.TransportClient
org.elasticsearch.transport.client.PreBuiltTransportClient
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Client
,ElasticsearchClient
,Releasable
@Deprecated public class PreBuiltTransportClient extends TransportClient
Deprecated.
TransportClient
is deprecated in favour of the High Level REST client and will
be removed in Elasticsearch 8.0.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
-
Constructor Summary
Constructors Constructor Description PreBuiltTransportClient(Settings settings, java.lang.Class<? extends Plugin>... plugins)
Deprecated.Creates a new transport client with pre-installed plugins.PreBuiltTransportClient(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> plugins)
Deprecated.Creates a new transport client with pre-installed plugins.PreBuiltTransportClient(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> plugins, TransportClient.HostFailureListener hostFailureListener)
Deprecated.Creates a new transport client with pre-installed plugins. -
Method Summary
Modifier and Type Method Description void
close()
Deprecated.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
-
Constructor Details
-
PreBuiltTransportClient
@SafeVarargs public PreBuiltTransportClient(Settings settings, java.lang.Class<? extends Plugin>... plugins)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
public PreBuiltTransportClient(Settings settings, java.util.Collection<java.lang.Class<? extends Plugin>> plugins)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, java.util.Collection<java.lang.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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceReleasable
- Overrides:
close
in classTransportClient
-