org.apache.oozie.dependency
Class DependencyChecker

java.lang.Object
  extended by org.apache.oozie.dependency.DependencyChecker

public class DependencyChecker
extends Object


Constructor Summary
DependencyChecker()
           
 
Method Summary
static ActionDependency checkForAvailability(String[] missingDependencies, org.apache.hadoop.conf.Configuration actionConf, boolean stopOnFirstMissing)
          Get the currently missing and available dependencies after checking the list of known missing dependencies against the source.
static ActionDependency checkForAvailability(String missingDependencies, org.apache.hadoop.conf.Configuration actionConf, boolean stopOnFirstMissing)
          Get the currently missing and available dependencies after checking the list of known missing dependencies against the source.
static String[] dependenciesAsArray(String missingDependencies)
          Return a array of missing dependencies
static String dependenciesAsString(List<String> missingDependencies)
          Return a string of missing dependencies concatenated by CoordELFunctions.INSTANCE_SEPARATOR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyChecker

public DependencyChecker()
Method Detail

dependenciesAsString

public static String dependenciesAsString(List<String> missingDependencies)
Return a string of missing dependencies concatenated by CoordELFunctions.INSTANCE_SEPARATOR

Parameters:
missingDependencies - list of missing dependencies
Returns:
missing dependencies as a string

dependenciesAsArray

public static String[] dependenciesAsArray(String missingDependencies)
Return a array of missing dependencies

Parameters:
missingDependencies - missing dependencies concatenated by CoordELFunctions.INSTANCE_SEPARATOR
Returns:
missing dependencies as a array

checkForAvailability

public static ActionDependency checkForAvailability(String missingDependencies,
                                                    org.apache.hadoop.conf.Configuration actionConf,
                                                    boolean stopOnFirstMissing)
                                             throws CommandException
Get the currently missing and available dependencies after checking the list of known missing dependencies against the source.

Parameters:
missingDependencies - known missing dependencies
actionConf - Configuration for the action
stopOnFirstMissing - Does not continue check for the rest of list if there is a missing dependency
Returns:
ActionDependency which has the list of missing and available dependencies
Throws:
CommandException

checkForAvailability

public static ActionDependency checkForAvailability(String[] missingDependencies,
                                                    org.apache.hadoop.conf.Configuration actionConf,
                                                    boolean stopOnFirstMissing)
                                             throws CommandException
Get the currently missing and available dependencies after checking the list of known missing dependencies against the source.

Parameters:
missingDependencies - known missing dependencies
actionConf - Configuration for the action
stopOnFirstMissing - Does not continue check for the rest of list if there is a missing dependency
Returns:
ActionDependency which has the list of missing and available dependencies
Throws:
CommandException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.