Class JMEmbeddedElasticsearch

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class JMEmbeddedElasticsearch
    extends org.elasticsearch.node.Node
    The type Jm embedded elasticsearch.
    • Field Summary

      • Fields inherited from class org.elasticsearch.node.Node

        BREAKER_TYPE_KEY, NODE_ATTRIBUTES, NODE_LOCAL_STORAGE_SETTING, NODE_NAME_SETTING, WRITE_PORTS_FILE_SETTING
    • Constructor Detail

      • JMEmbeddedElasticsearch

        public JMEmbeddedElasticsearch()
        Instantiates a new Jm embedded elasticsearch.
      • JMEmbeddedElasticsearch

        public JMEmbeddedElasticsearch​(org.elasticsearch.common.settings.Settings settings)
        Instantiates a new Jm embedded elasticsearch.
        Parameters:
        settings - the settings
      • JMEmbeddedElasticsearch

        public JMEmbeddedElasticsearch​(String nodeName,
                                       String networkHost)
        Instantiates a new Jm embedded elasticsearch.
        Parameters:
        nodeName - the node name
        networkHost - the network host
    • Method Detail

      • getNodeConfig

        public static org.elasticsearch.common.settings.Settings.Builder getNodeConfig​(String clusterName,
                                                                                       String nodeName,
                                                                                       String networkHost,
                                                                                       String homePath,
                                                                                       boolean nodeIngest)
        Gets node config.
        Parameters:
        clusterName - the cluster name
        nodeName - the node name
        networkHost - the network host
        homePath - the home path
        nodeIngest - the node ingest
        Returns:
        the node config
      • start

        public org.elasticsearch.node.Node start()
        Overrides:
        start in class org.elasticsearch.node.Node
      • getTransportIpPortPair

        public String getTransportIpPortPair()
        Gets transport ip port pair.
        Returns:
        the transport ip port pair