org.apache.oozie.service

Class ConfigurationService

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void destroy()
      Destroy the configuration service.
      static java.lang.String get(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static java.lang.String get(java.lang.String name) 
      static boolean getBoolean(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static boolean getBoolean(java.lang.String name) 
      static boolean getBoolean(java.lang.String name, boolean defaultValue) 
      static java.lang.Class<?> getClass(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static java.lang.Class<?>[] getClasses(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static java.lang.Class<?>[] getClasses(java.lang.String name) 
      org.apache.hadoop.conf.Configuration getConf()
      Return the services configuration.
      java.lang.String getConfigDir()
      Return Oozie configuration directory.
      static java.lang.String getConfigurationDirectory() 
      static float getFloat(java.lang.String name) 
      static int getInt(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static int getInt(java.lang.String name) 
      static int getInt(java.lang.String name, int defaultValue) 
      java.lang.Class<? extends Service> getInterface()
      Return the public interface for configuration service.
      static long getLong(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static long getLong(java.lang.String name) 
      org.apache.hadoop.conf.Configuration getMaskedConfiguration()
      Return a configuration with all sensitive values masked.
      static java.lang.String getPassword(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static java.lang.String getPassword(org.apache.hadoop.conf.Configuration conf, java.lang.String name, java.lang.String defaultValue) 
      static java.lang.String getPassword(java.lang.String name, java.lang.String defaultValue) 
      static java.lang.String[] getStrings(org.apache.hadoop.conf.Configuration conf, java.lang.String name) 
      static java.lang.String[] getStrings(java.lang.String name) 
      void init(Services services)
      Initialize the log service.
      void instrument(Instrumentation instr)
      Instruments the configuration service.
      static void set(java.lang.String name, java.lang.String value) 
      static void setBoolean(java.lang.String name, boolean value) 
      void verifyConfigurationName()
      Verify the configuration is in oozie-default
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • destroy

        public void destroy()
        Destroy the configuration service.
        Specified by:
        destroy in interface Service
      • getConf

        public org.apache.hadoop.conf.Configuration getConf()
        Return the services configuration.
        Returns:
        the services configuration.
      • getConfigDir

        public java.lang.String getConfigDir()
        Return Oozie configuration directory.
        Returns:
        Oozie configuration directory.
      • instrument

        public void instrument(Instrumentation instr)
        Instruments the configuration service.

        It sets instrumentation variables indicating the config dir and config file used.

        Specified by:
        instrument in interface Instrumentable
        Parameters:
        instr - instrumentation to use.
      • getMaskedConfiguration

        public org.apache.hadoop.conf.Configuration getMaskedConfiguration()
        Return a configuration with all sensitive values masked.
        Returns:
        masked configuration.
      • set

        public static void set(java.lang.String name,
               java.lang.String value)
      • setBoolean

        public static void setBoolean(java.lang.String name,
                      boolean value)
      • get

        public static java.lang.String get(java.lang.String name)
      • get

        public static java.lang.String get(org.apache.hadoop.conf.Configuration conf,
                           java.lang.String name)
      • getStrings

        public static java.lang.String[] getStrings(java.lang.String name)
      • getStrings

        public static java.lang.String[] getStrings(org.apache.hadoop.conf.Configuration conf,
                                    java.lang.String name)
      • getBoolean

        public static boolean getBoolean(java.lang.String name)
      • getBoolean

        public static boolean getBoolean(org.apache.hadoop.conf.Configuration conf,
                         java.lang.String name)
      • getBoolean

        public static boolean getBoolean(java.lang.String name,
                         boolean defaultValue)
      • getInt

        public static int getInt(java.lang.String name)
      • getInt

        public static int getInt(java.lang.String name,
                 int defaultValue)
      • getInt

        public static int getInt(org.apache.hadoop.conf.Configuration conf,
                 java.lang.String name)
      • getFloat

        public static float getFloat(java.lang.String name)
      • getLong

        public static long getLong(java.lang.String name)
      • getLong

        public static long getLong(org.apache.hadoop.conf.Configuration conf,
                   java.lang.String name)
      • getClasses

        public static java.lang.Class<?>[] getClasses(java.lang.String name)
      • getClasses

        public static java.lang.Class<?>[] getClasses(org.apache.hadoop.conf.Configuration conf,
                                      java.lang.String name)
      • getClass

        public static java.lang.Class<?> getClass(org.apache.hadoop.conf.Configuration conf,
                                  java.lang.String name)
      • getPassword

        public static java.lang.String getPassword(org.apache.hadoop.conf.Configuration conf,
                                   java.lang.String name)
      • getPassword

        public static java.lang.String getPassword(org.apache.hadoop.conf.Configuration conf,
                                   java.lang.String name,
                                   java.lang.String defaultValue)
      • getPassword

        public static java.lang.String getPassword(java.lang.String name,
                                   java.lang.String defaultValue)

Copyright © 2019 Apache Software Foundation. All Rights Reserved.