public abstract class BaseTransportClient extends Object
Modifier and Type | Field and Description |
---|---|
protected org.elasticsearch.client.transport.TransportClient |
client |
protected ConfigHelper |
configHelper |
Constructor and Description |
---|
BaseTransportClient() |
Modifier and Type | Method and Description |
---|---|
void |
addSetting(String key,
Boolean value) |
void |
addSetting(String key,
Integer value) |
void |
addSetting(String key,
String value) |
org.elasticsearch.client.Client |
client() |
protected void |
connect(org.elasticsearch.common.settings.Settings settings) |
protected void |
createClient(org.elasticsearch.common.settings.Settings settings) |
protected org.elasticsearch.common.settings.Settings |
findSettings() |
List<String> |
getConnectedNodes() |
Map<String,String> |
getMappings() |
org.elasticsearch.common.settings.Settings |
getSettings() |
org.elasticsearch.common.settings.ImmutableSettings.Builder |
getSettingsBuilder() |
boolean |
isShutdown() |
void |
mapping(String type,
InputStream in) |
void |
mapping(String type,
String mapping) |
void |
resetSettings() |
void |
setSettings(org.elasticsearch.common.settings.Settings settings) |
void |
setting(InputStream in) |
void |
shutdown() |
protected org.elasticsearch.client.transport.TransportClient client
protected ConfigHelper configHelper
public BaseTransportClient()
protected void createClient(org.elasticsearch.common.settings.Settings settings)
public org.elasticsearch.client.Client client()
public List<String> getConnectedNodes()
public void shutdown()
public boolean isShutdown()
protected org.elasticsearch.common.settings.Settings findSettings()
protected void connect(org.elasticsearch.common.settings.Settings settings) throws IOException
IOException
public org.elasticsearch.common.settings.ImmutableSettings.Builder getSettingsBuilder()
public void resetSettings()
public void setting(InputStream in) throws IOException
IOException
public void addSetting(String key, String value)
public void addSetting(String key, Boolean value)
public void addSetting(String key, Integer value)
public void setSettings(org.elasticsearch.common.settings.Settings settings)
public org.elasticsearch.common.settings.Settings getSettings()
public void mapping(String type, String mapping) throws IOException
IOException
public void mapping(String type, InputStream in) throws IOException
IOException
public Map<String,String> getMappings()
elasticsearch-river-jdbc