java.io.Closeable
, java.lang.AutoCloseable
, org.elasticsearch.common.settings.SecureSettings
public class MockSecureSettings
extends java.lang.Object
implements org.elasticsearch.common.settings.SecureSettings
Constructor | Description |
---|---|
MockSecureSettings() |
Modifier and Type | Method | Description |
---|---|---|
org.elasticsearch.common.settings.SecureSettings |
clone() |
|
void |
close() |
|
java.io.InputStream |
getFile(java.lang.String setting) |
|
java.util.Set<java.lang.String> |
getSettingNames() |
|
org.elasticsearch.common.settings.SecureString |
getString(java.lang.String setting) |
|
boolean |
isLoaded() |
|
void |
merge(MockSecureSettings secureSettings) |
Merge the given secure settings into this one.
|
void |
setFile(java.lang.String setting,
byte[] value) |
|
void |
setString(java.lang.String setting,
java.lang.String value) |
public boolean isLoaded()
isLoaded
in interface org.elasticsearch.common.settings.SecureSettings
public java.util.Set<java.lang.String> getSettingNames()
getSettingNames
in interface org.elasticsearch.common.settings.SecureSettings
public org.elasticsearch.common.settings.SecureString getString(java.lang.String setting)
getString
in interface org.elasticsearch.common.settings.SecureSettings
public java.io.InputStream getFile(java.lang.String setting)
getFile
in interface org.elasticsearch.common.settings.SecureSettings
public void setString(java.lang.String setting, java.lang.String value)
public void setFile(java.lang.String setting, byte[] value)
public void merge(MockSecureSettings secureSettings)
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in interface org.elasticsearch.common.settings.SecureSettings
java.io.IOException
public org.elasticsearch.common.settings.SecureSettings clone()
clone
in class java.lang.Object