Class ReadOnlyConfiguration

java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.coprocessor.ReadOnlyConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

@Private public class ReadOnlyConfiguration extends org.apache.hadoop.conf.Configuration
Wraps a Configuration to make it read-only.
  • Field Details

    • conf

      private final org.apache.hadoop.conf.Configuration conf
  • Constructor Details

  • Method Details

    • setDeprecatedProperties

      public void setDeprecatedProperties()
      Overrides:
      setDeprecatedProperties in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(String name)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(URL url)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(org.apache.hadoop.fs.Path file)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(InputStream in)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(InputStream in, String name)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • addResource

      public void addResource(org.apache.hadoop.conf.Configuration conf)
      Overrides:
      addResource in class org.apache.hadoop.conf.Configuration
    • reloadConfiguration

      public void reloadConfiguration()
      Overrides:
      reloadConfiguration in class org.apache.hadoop.conf.Configuration
    • get

      public String get(String name)
      Overrides:
      get in class org.apache.hadoop.conf.Configuration
    • setAllowNullValueProperties

      public void setAllowNullValueProperties(boolean val)
      Overrides:
      setAllowNullValueProperties in class org.apache.hadoop.conf.Configuration
    • getTrimmed

      public String getTrimmed(String name)
      Overrides:
      getTrimmed in class org.apache.hadoop.conf.Configuration
    • getTrimmed

      public String getTrimmed(String name, String defaultValue)
      Overrides:
      getTrimmed in class org.apache.hadoop.conf.Configuration
    • getRaw

      public String getRaw(String name)
      Overrides:
      getRaw in class org.apache.hadoop.conf.Configuration
    • set

      public void set(String name, String value)
      Overrides:
      set in class org.apache.hadoop.conf.Configuration
    • set

      public void set(String name, String value, String source)
      Overrides:
      set in class org.apache.hadoop.conf.Configuration
    • unset

      public void unset(String name)
      Overrides:
      unset in class org.apache.hadoop.conf.Configuration
    • setIfUnset

      public void setIfUnset(String name, String value)
      Overrides:
      setIfUnset in class org.apache.hadoop.conf.Configuration
    • get

      public String get(String name, String defaultValue)
      Overrides:
      get in class org.apache.hadoop.conf.Configuration
    • getInt

      public int getInt(String name, int defaultValue)
      Overrides:
      getInt in class org.apache.hadoop.conf.Configuration
    • getInts

      public int[] getInts(String name)
      Overrides:
      getInts in class org.apache.hadoop.conf.Configuration
    • setInt

      public void setInt(String name, int value)
      Overrides:
      setInt in class org.apache.hadoop.conf.Configuration
    • getLong

      public long getLong(String name, long defaultValue)
      Overrides:
      getLong in class org.apache.hadoop.conf.Configuration
    • getLongBytes

      public long getLongBytes(String name, long defaultValue)
      Overrides:
      getLongBytes in class org.apache.hadoop.conf.Configuration
    • setLong

      public void setLong(String name, long value)
      Overrides:
      setLong in class org.apache.hadoop.conf.Configuration
    • getFloat

      public float getFloat(String name, float defaultValue)
      Overrides:
      getFloat in class org.apache.hadoop.conf.Configuration
    • setFloat

      public void setFloat(String name, float value)
      Overrides:
      setFloat in class org.apache.hadoop.conf.Configuration
    • getDouble

      public double getDouble(String name, double defaultValue)
      Overrides:
      getDouble in class org.apache.hadoop.conf.Configuration
    • setDouble

      public void setDouble(String name, double value)
      Overrides:
      setDouble in class org.apache.hadoop.conf.Configuration
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Overrides:
      getBoolean in class org.apache.hadoop.conf.Configuration
    • setBoolean

      public void setBoolean(String name, boolean value)
      Overrides:
      setBoolean in class org.apache.hadoop.conf.Configuration
    • setBooleanIfUnset

      public void setBooleanIfUnset(String name, boolean value)
      Overrides:
      setBooleanIfUnset in class org.apache.hadoop.conf.Configuration
    • setEnum

      public <T extends Enum<T>> void setEnum(String name, T value)
      Overrides:
      setEnum in class org.apache.hadoop.conf.Configuration
    • getEnum

      public <T extends Enum<T>> T getEnum(String name, T defaultValue)
      Overrides:
      getEnum in class org.apache.hadoop.conf.Configuration
    • setTimeDuration

      public void setTimeDuration(String name, long value, TimeUnit unit)
      Overrides:
      setTimeDuration in class org.apache.hadoop.conf.Configuration
    • getTimeDuration

      public long getTimeDuration(String name, long defaultValue, TimeUnit unit)
      Overrides:
      getTimeDuration in class org.apache.hadoop.conf.Configuration
    • getPattern

      public Pattern getPattern(String name, Pattern defaultValue)
      Overrides:
      getPattern in class org.apache.hadoop.conf.Configuration
    • setPattern

      public void setPattern(String name, Pattern pattern)
      Overrides:
      setPattern in class org.apache.hadoop.conf.Configuration
    • getPropertySources

      public String[] getPropertySources(String name)
      Overrides:
      getPropertySources in class org.apache.hadoop.conf.Configuration
    • getRange

      public org.apache.hadoop.conf.Configuration.IntegerRanges getRange(String name, String defaultValue)
      Overrides:
      getRange in class org.apache.hadoop.conf.Configuration
    • getStringCollection

      Overrides:
      getStringCollection in class org.apache.hadoop.conf.Configuration
    • getStrings

      public String[] getStrings(String name)
      Overrides:
      getStrings in class org.apache.hadoop.conf.Configuration
    • getStrings

      public String[] getStrings(String name, String... defaultValue)
      Overrides:
      getStrings in class org.apache.hadoop.conf.Configuration
    • getTrimmedStringCollection

      Overrides:
      getTrimmedStringCollection in class org.apache.hadoop.conf.Configuration
    • getTrimmedStrings

      public String[] getTrimmedStrings(String name)
      Overrides:
      getTrimmedStrings in class org.apache.hadoop.conf.Configuration
    • getTrimmedStrings

      public String[] getTrimmedStrings(String name, String... defaultValue)
      Overrides:
      getTrimmedStrings in class org.apache.hadoop.conf.Configuration
    • setStrings

      public void setStrings(String name, String... values)
      Overrides:
      setStrings in class org.apache.hadoop.conf.Configuration
    • getPassword

      public char[] getPassword(String name) throws IOException
      Overrides:
      getPassword in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • getSocketAddr

      public InetSocketAddress getSocketAddr(String hostProperty, String addressProperty, String defaultAddressValue, int defaultPort)
      Overrides:
      getSocketAddr in class org.apache.hadoop.conf.Configuration
    • getSocketAddr

      public InetSocketAddress getSocketAddr(String name, String defaultAddress, int defaultPort)
      Overrides:
      getSocketAddr in class org.apache.hadoop.conf.Configuration
    • setSocketAddr

      public void setSocketAddr(String name, InetSocketAddress addr)
      Overrides:
      setSocketAddr in class org.apache.hadoop.conf.Configuration
    • updateConnectAddr

      public InetSocketAddress updateConnectAddr(String hostProperty, String addressProperty, String defaultAddressValue, InetSocketAddress addr)
      Overrides:
      updateConnectAddr in class org.apache.hadoop.conf.Configuration
    • updateConnectAddr

      Overrides:
      updateConnectAddr in class org.apache.hadoop.conf.Configuration
    • getClassByName

      Overrides:
      getClassByName in class org.apache.hadoop.conf.Configuration
      Throws:
      ClassNotFoundException
    • getClassByNameOrNull

      public Class<?> getClassByNameOrNull(String name)
      Overrides:
      getClassByNameOrNull in class org.apache.hadoop.conf.Configuration
    • getClasses

      public Class<?>[] getClasses(String name, Class<?>... defaultValue)
      Overrides:
      getClasses in class org.apache.hadoop.conf.Configuration
    • getClass

      public Class<?> getClass(String name, Class<?> defaultValue)
      Overrides:
      getClass in class org.apache.hadoop.conf.Configuration
    • getClass

      public <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
      Overrides:
      getClass in class org.apache.hadoop.conf.Configuration
    • getInstances

      public <U> List<U> getInstances(String name, Class<U> xface)
      Overrides:
      getInstances in class org.apache.hadoop.conf.Configuration
    • setClass

      public void setClass(String name, Class<?> theClass, Class<?> xface)
      Overrides:
      setClass in class org.apache.hadoop.conf.Configuration
    • getLocalPath

      public org.apache.hadoop.fs.Path getLocalPath(String dirsProp, String path) throws IOException
      Overrides:
      getLocalPath in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • getFile

      public File getFile(String dirsProp, String path) throws IOException
      Overrides:
      getFile in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • getResource

      public URL getResource(String name)
      Overrides:
      getResource in class org.apache.hadoop.conf.Configuration
    • getConfResourceAsInputStream

      Overrides:
      getConfResourceAsInputStream in class org.apache.hadoop.conf.Configuration
    • getConfResourceAsReader

      Overrides:
      getConfResourceAsReader in class org.apache.hadoop.conf.Configuration
    • getFinalParameters

      Overrides:
      getFinalParameters in class org.apache.hadoop.conf.Configuration
    • size

      public int size()
      Overrides:
      size in class org.apache.hadoop.conf.Configuration
    • clear

      public void clear()
      Overrides:
      clear in class org.apache.hadoop.conf.Configuration
    • iterator

      Specified by:
      iterator in interface Iterable<Map.Entry<String,String>>
      Overrides:
      iterator in class org.apache.hadoop.conf.Configuration
    • writeXml

      public void writeXml(OutputStream out) throws IOException
      Overrides:
      writeXml in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • writeXml

      public void writeXml(Writer out) throws IOException
      Overrides:
      writeXml in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • getClassLoader

      Overrides:
      getClassLoader in class org.apache.hadoop.conf.Configuration
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
      Overrides:
      setClassLoader in class org.apache.hadoop.conf.Configuration
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.hadoop.conf.Configuration
    • setQuietMode

      public void setQuietMode(boolean quietmode)
      Overrides:
      setQuietMode in class org.apache.hadoop.conf.Configuration
    • readFields

      public void readFields(DataInput in) throws IOException
      Specified by:
      readFields in interface org.apache.hadoop.io.Writable
      Overrides:
      readFields in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • write

      public void write(DataOutput out) throws IOException
      Specified by:
      write in interface org.apache.hadoop.io.Writable
      Overrides:
      write in class org.apache.hadoop.conf.Configuration
      Throws:
      IOException
    • getValByRegex

      Overrides:
      getValByRegex in class org.apache.hadoop.conf.Configuration