Package org.eclipse.rdf4j.sail.elasticsearchstore

## Class SingletonClientProvider

- java.lang.Object
- - org.eclipse.rdf4j.sail.elasticsearchstore.SingletonClientProvider

- All Implemented Interfaces:
    `AutoCloseable`

      public class SingletonClientProvider
      extends Object

  Author:
    Håvard Mikkelsen Ottestad

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SingletonClientProvider​(String hostname, int port, String clusterName)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` |
    `org.elasticsearch.client.Client` | `getClient()` |
    `boolean` | `isClosed()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingletonClientProvider

          public SingletonClientProvider​(String hostname,
                                         int port,
                                         String clusterName)

  - ### Method Detail

    - #### getClient

          public org.elasticsearch.client.Client getClient()

    - #### isClosed

          public boolean isClosed()

    - #### close

          public void close()
                     throws Exception

      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `Exception`