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, org.elasticsearch.client.Client, org.elasticsearch.client.ElasticsearchClient, org.elasticsearch.core.Releasable

@Deprecated public class PreBuiltTransportClient extends org.elasticsearch.client.transport.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

    org.elasticsearch.client.transport.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

    Constructors
    Constructor
    Description
    PreBuiltTransportClient​(org.elasticsearch.common.settings.Settings settings, Class<? extends org.elasticsearch.plugins.Plugin>... plugins)
    Deprecated.
    Creates a new transport client with pre-installed plugins.
    PreBuiltTransportClient​(org.elasticsearch.common.settings.Settings settings, Collection<Class<? extends org.elasticsearch.plugins.Plugin>> plugins)
    Deprecated.
    Creates a new transport client with pre-installed plugins.
    PreBuiltTransportClient​(org.elasticsearch.common.settings.Settings settings, Collection<Class<? extends org.elasticsearch.plugins.Plugin>> plugins, org.elasticsearch.client.transport.TransportClient.HostFailureListener hostFailureListener)
    Deprecated.
    Creates a new transport client with pre-installed plugins.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    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

      @SafeVarargs public PreBuiltTransportClient(org.elasticsearch.common.settings.Settings settings, Class<? extends org.elasticsearch.plugins.Plugin>... plugins)
      Deprecated.
      Creates a new transport client with pre-installed plugins.
      Parameters:
      settings - the settings passed to this transport client
      plugins - an optional array of additional plugins to run with this client
    • PreBuiltTransportClient

      public PreBuiltTransportClient(org.elasticsearch.common.settings.Settings settings, Collection<Class<? extends org.elasticsearch.plugins.Plugin>> plugins)
      Deprecated.
      Creates a new transport client with pre-installed plugins.
      Parameters:
      settings - the settings passed to this transport client
      plugins - a collection of additional plugins to run with this client
    • PreBuiltTransportClient

      public PreBuiltTransportClient(org.elasticsearch.common.settings.Settings settings, Collection<Class<? extends org.elasticsearch.plugins.Plugin>> plugins, org.elasticsearch.client.transport.TransportClient.HostFailureListener hostFailureListener)
      Deprecated.
      Creates a new transport client with pre-installed plugins.
      Parameters:
      settings - the settings passed to this transport client
      plugins - a collection of additional plugins to run with this client
      hostFailureListener - a failure listener that is invoked if a node is disconnected; this can be null
  • Method Details

    • close

      public void close()
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable
      Overrides:
      close in class org.elasticsearch.client.transport.TransportClient