org.apache.oozie.util
Class PropertiesUtils

java.lang.Object
  extended by org.apache.oozie.util.PropertiesUtils

public class PropertiesUtils
extends Object


Field Summary
static String DAY
           
static String DAYS
           
static String GB
           
static String GROUPS
           
static String HADOOP_USER
           
static String HOUR
           
static String HOURS
           
static String KB
           
static String MAP_IN
           
static String MAP_OUT
           
static String MB
           
static String MINUTE
           
static String MINUTES
           
static String MONTH
           
static String PB
           
static String RECORDS
           
static String REDUCE_IN
           
static String REDUCE_OUT
           
static String TB
           
static String YEAR
           
 
Constructor Summary
PropertiesUtils()
           
 
Method Summary
static void checkDisallowedProperties(org.apache.hadoop.conf.Configuration conf, Set<String> set)
          Validate against DISALLOWED Properties.
static void createPropertySet(String[] properties, Set<String> set)
          Create a set from an array
static String propertiesToString(Properties props)
           
static Properties readProperties(Reader reader, int maxDataLen)
           
static Properties stringToProperties(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HADOOP_USER

public static final String HADOOP_USER
See Also:
Constant Field Values

YEAR

public static final String YEAR
See Also:
Constant Field Values

MONTH

public static final String MONTH
See Also:
Constant Field Values

DAY

public static final String DAY
See Also:
Constant Field Values

HOUR

public static final String HOUR
See Also:
Constant Field Values

MINUTE

public static final String MINUTE
See Also:
Constant Field Values

DAYS

public static final String DAYS
See Also:
Constant Field Values

HOURS

public static final String HOURS
See Also:
Constant Field Values

MINUTES

public static final String MINUTES
See Also:
Constant Field Values

KB

public static final String KB
See Also:
Constant Field Values

MB

public static final String MB
See Also:
Constant Field Values

GB

public static final String GB
See Also:
Constant Field Values

TB

public static final String TB
See Also:
Constant Field Values

PB

public static final String PB
See Also:
Constant Field Values

RECORDS

public static final String RECORDS
See Also:
Constant Field Values

MAP_IN

public static final String MAP_IN
See Also:
Constant Field Values

MAP_OUT

public static final String MAP_OUT
See Also:
Constant Field Values

REDUCE_IN

public static final String REDUCE_IN
See Also:
Constant Field Values

REDUCE_OUT

public static final String REDUCE_OUT
See Also:
Constant Field Values

GROUPS

public static final String GROUPS
See Also:
Constant Field Values
Constructor Detail

PropertiesUtils

public PropertiesUtils()
Method Detail

propertiesToString

public static String propertiesToString(Properties props)

stringToProperties

public static Properties stringToProperties(String str)

readProperties

public static Properties readProperties(Reader reader,
                                        int maxDataLen)
                                 throws IOException
Throws:
IOException

createPropertySet

public static void createPropertySet(String[] properties,
                                     Set<String> set)
Create a set from an array

Parameters:
properties - String array
set - String set

checkDisallowedProperties

public static void checkDisallowedProperties(org.apache.hadoop.conf.Configuration conf,
                                             Set<String> set)
                                      throws CommandException
Validate against DISALLOWED Properties.

Parameters:
conf - : configuration to check.
Throws:
CommandException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.