Class ReadOnlyConfiguration
java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.coprocessor.ReadOnlyConfiguration
Wraps a Configuration to make it read-only.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.Configuration.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addResource
(InputStream in, String name) void
addResource
(String name) void
addResource
(URL url) void
addResource
(org.apache.hadoop.conf.Configuration conf) void
addResource
(org.apache.hadoop.fs.Path file) void
clear()
boolean
getBoolean
(String name, boolean defaultValue) Class<?>
<U> Class<? extends U>
Class<?>
getClassByName
(String name) Class<?>
getClassByNameOrNull
(String name) Class<?>[]
getClasses
(String name, Class<?>... defaultValue) double
<T extends Enum<T>>
Tfloat
<U> List<U>
getInstances
(String name, Class<U> xface) int
int[]
org.apache.hadoop.fs.Path
getLocalPath
(String dirsProp, String path) long
long
getLongBytes
(String name, long defaultValue) char[]
getPassword
(String name) getPattern
(String name, Pattern defaultValue) String[]
getPropertySources
(String name) org.apache.hadoop.conf.Configuration.IntegerRanges
getResource
(String name) getSocketAddr
(String name, String defaultAddress, int defaultPort) getSocketAddr
(String hostProperty, String addressProperty, String defaultAddressValue, int defaultPort) getStringCollection
(String name) String[]
getStrings
(String name) String[]
getStrings
(String name, String... defaultValue) long
getTimeDuration
(String name, long defaultValue, TimeUnit unit) getTrimmed
(String name) getTrimmed
(String name, String defaultValue) String[]
getTrimmedStrings
(String name) String[]
getTrimmedStrings
(String name, String... defaultValue) getValByRegex
(String regex) iterator()
void
readFields
(DataInput in) void
void
void
void
setAllowNullValueProperties
(boolean val) void
setBoolean
(String name, boolean value) void
setBooleanIfUnset
(String name, boolean value) void
void
setClassLoader
(ClassLoader classLoader) void
void
<T extends Enum<T>>
voidvoid
void
setIfUnset
(String name, String value) void
void
void
setPattern
(String name, Pattern pattern) void
setQuietMode
(boolean quietmode) void
setSocketAddr
(String name, InetSocketAddress addr) void
setStrings
(String name, String... values) void
setTimeDuration
(String name, long value, TimeUnit unit) int
size()
toString()
void
updateConnectAddr
(String hostProperty, String addressProperty, String defaultAddressValue, InetSocketAddress addr) updateConnectAddr
(String name, InetSocketAddress addr) void
write
(DataOutput out) void
writeXml
(OutputStream out) void
Methods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, getPasswordFromConfig, getPasswordFromCredentialProviders, getProps, getPropsWithPrefix, getTimeDuration, getTimeDurations, hasWarnedDeprecation, isDeprecated, main, onlyKeyExists, reloadExistingConfigurations, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, writeXml
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
conf
-
-
Constructor Details
-
ReadOnlyConfiguration
-
-
Method Details
-
setDeprecatedProperties
- Overrides:
setDeprecatedProperties
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
addResource
- Overrides:
addResource
in classorg.apache.hadoop.conf.Configuration
-
reloadConfiguration
- Overrides:
reloadConfiguration
in classorg.apache.hadoop.conf.Configuration
-
get
- Overrides:
get
in classorg.apache.hadoop.conf.Configuration
-
setAllowNullValueProperties
- Overrides:
setAllowNullValueProperties
in classorg.apache.hadoop.conf.Configuration
-
getTrimmed
- Overrides:
getTrimmed
in classorg.apache.hadoop.conf.Configuration
-
getTrimmed
- Overrides:
getTrimmed
in classorg.apache.hadoop.conf.Configuration
-
getRaw
- Overrides:
getRaw
in classorg.apache.hadoop.conf.Configuration
-
set
- Overrides:
set
in classorg.apache.hadoop.conf.Configuration
-
set
- Overrides:
set
in classorg.apache.hadoop.conf.Configuration
-
unset
- Overrides:
unset
in classorg.apache.hadoop.conf.Configuration
-
setIfUnset
- Overrides:
setIfUnset
in classorg.apache.hadoop.conf.Configuration
-
get
- Overrides:
get
in classorg.apache.hadoop.conf.Configuration
-
getInt
- Overrides:
getInt
in classorg.apache.hadoop.conf.Configuration
-
getInts
- Overrides:
getInts
in classorg.apache.hadoop.conf.Configuration
-
setInt
- Overrides:
setInt
in classorg.apache.hadoop.conf.Configuration
-
getLong
- Overrides:
getLong
in classorg.apache.hadoop.conf.Configuration
-
getLongBytes
- Overrides:
getLongBytes
in classorg.apache.hadoop.conf.Configuration
-
setLong
- Overrides:
setLong
in classorg.apache.hadoop.conf.Configuration
-
getFloat
- Overrides:
getFloat
in classorg.apache.hadoop.conf.Configuration
-
setFloat
- Overrides:
setFloat
in classorg.apache.hadoop.conf.Configuration
-
getDouble
- Overrides:
getDouble
in classorg.apache.hadoop.conf.Configuration
-
setDouble
- Overrides:
setDouble
in classorg.apache.hadoop.conf.Configuration
-
getBoolean
- Overrides:
getBoolean
in classorg.apache.hadoop.conf.Configuration
-
setBoolean
- Overrides:
setBoolean
in classorg.apache.hadoop.conf.Configuration
-
setBooleanIfUnset
- Overrides:
setBooleanIfUnset
in classorg.apache.hadoop.conf.Configuration
-
setEnum
- Overrides:
setEnum
in classorg.apache.hadoop.conf.Configuration
-
getEnum
- Overrides:
getEnum
in classorg.apache.hadoop.conf.Configuration
-
setTimeDuration
- Overrides:
setTimeDuration
in classorg.apache.hadoop.conf.Configuration
-
getTimeDuration
- Overrides:
getTimeDuration
in classorg.apache.hadoop.conf.Configuration
-
getPattern
- Overrides:
getPattern
in classorg.apache.hadoop.conf.Configuration
-
setPattern
- Overrides:
setPattern
in classorg.apache.hadoop.conf.Configuration
-
getPropertySources
- Overrides:
getPropertySources
in classorg.apache.hadoop.conf.Configuration
-
getRange
public org.apache.hadoop.conf.Configuration.IntegerRanges getRange(String name, String defaultValue) - Overrides:
getRange
in classorg.apache.hadoop.conf.Configuration
-
getStringCollection
- Overrides:
getStringCollection
in classorg.apache.hadoop.conf.Configuration
-
getStrings
- Overrides:
getStrings
in classorg.apache.hadoop.conf.Configuration
-
getStrings
- Overrides:
getStrings
in classorg.apache.hadoop.conf.Configuration
-
getTrimmedStringCollection
- Overrides:
getTrimmedStringCollection
in classorg.apache.hadoop.conf.Configuration
-
getTrimmedStrings
- Overrides:
getTrimmedStrings
in classorg.apache.hadoop.conf.Configuration
-
getTrimmedStrings
- Overrides:
getTrimmedStrings
in classorg.apache.hadoop.conf.Configuration
-
setStrings
- Overrides:
setStrings
in classorg.apache.hadoop.conf.Configuration
-
getPassword
- Overrides:
getPassword
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
getSocketAddr
public InetSocketAddress getSocketAddr(String hostProperty, String addressProperty, String defaultAddressValue, int defaultPort) - Overrides:
getSocketAddr
in classorg.apache.hadoop.conf.Configuration
-
getSocketAddr
- Overrides:
getSocketAddr
in classorg.apache.hadoop.conf.Configuration
-
setSocketAddr
- Overrides:
setSocketAddr
in classorg.apache.hadoop.conf.Configuration
-
updateConnectAddr
public InetSocketAddress updateConnectAddr(String hostProperty, String addressProperty, String defaultAddressValue, InetSocketAddress addr) - Overrides:
updateConnectAddr
in classorg.apache.hadoop.conf.Configuration
-
updateConnectAddr
- Overrides:
updateConnectAddr
in classorg.apache.hadoop.conf.Configuration
-
getClassByName
- Overrides:
getClassByName
in classorg.apache.hadoop.conf.Configuration
- Throws:
ClassNotFoundException
-
getClassByNameOrNull
- Overrides:
getClassByNameOrNull
in classorg.apache.hadoop.conf.Configuration
-
getClasses
- Overrides:
getClasses
in classorg.apache.hadoop.conf.Configuration
-
getClass
- Overrides:
getClass
in classorg.apache.hadoop.conf.Configuration
-
getClass
public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface) - Overrides:
getClass
in classorg.apache.hadoop.conf.Configuration
-
getInstances
- Overrides:
getInstances
in classorg.apache.hadoop.conf.Configuration
-
setClass
- Overrides:
setClass
in classorg.apache.hadoop.conf.Configuration
-
getLocalPath
- Overrides:
getLocalPath
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
getFile
- Overrides:
getFile
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
getResource
- Overrides:
getResource
in classorg.apache.hadoop.conf.Configuration
-
getConfResourceAsInputStream
- Overrides:
getConfResourceAsInputStream
in classorg.apache.hadoop.conf.Configuration
-
getConfResourceAsReader
- Overrides:
getConfResourceAsReader
in classorg.apache.hadoop.conf.Configuration
-
getFinalParameters
- Overrides:
getFinalParameters
in classorg.apache.hadoop.conf.Configuration
-
size
- Overrides:
size
in classorg.apache.hadoop.conf.Configuration
-
clear
- Overrides:
clear
in classorg.apache.hadoop.conf.Configuration
-
iterator
-
writeXml
- Overrides:
writeXml
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
writeXml
- Overrides:
writeXml
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
getClassLoader
- Overrides:
getClassLoader
in classorg.apache.hadoop.conf.Configuration
-
setClassLoader
- Overrides:
setClassLoader
in classorg.apache.hadoop.conf.Configuration
-
toString
- Overrides:
toString
in classorg.apache.hadoop.conf.Configuration
-
setQuietMode
- Overrides:
setQuietMode
in classorg.apache.hadoop.conf.Configuration
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classorg.apache.hadoop.conf.Configuration
- Throws:
IOException
-
getValByRegex
- Overrides:
getValByRegex
in classorg.apache.hadoop.conf.Configuration
-