Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Licensed to STRATIO (C) under one or more contributor license agreements.
   * See the NOTICE file distributed with this work for additional information
   * regarding copyright ownership.  The STRATIO (C) licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
 package com.stratio.connector.elasticsearch.core.configuration;
This enum has the options for Elasticsearch. Created by jmgomez on 1/09/14.
 public enum ConfigurationOptions {

The elasticserach node type property.
The elasticserach node data property.
The elasticserach node master property.
The elasticserach transfer sniff type property.
The elastichseach cluser name.
The hosts ip.
     HOST("Hosts"new String[] { "localhost" }),
The hosts ports.
     PORT("Port"new String[] { "9300" }),
The elasticsearch coerce property.
The elasticsearch mapper dynamic property.

The name of the option.
     private final String optionName;
The default value of the options.
     private final String[] defaultValue;


optionName the name of the option.
defaultValue the default value of the option.
     ConfigurationOptions(String optionNameString... defaultValue) {
         this. = optionName;
         this. = defaultValue;

return the default value.

the default value.
     public String[] getDefaultValue() {
         return .clone();

Return the option name.

the option name.
    public String getOptionName() {
        return ;
New to GrepCode? Check out our FAQ X