@Override public String get( String key ) { return getProperty( properties, key ); } } );
public static String getApplicationName( Map<Object, Object> properties ) { return PropertyUtil.getProperty( properties, APP_NAME, (String) null ); }
public static String getProperty( Map<Object, Object> properties, String property ) { return getProperty( properties, property, (String) null ); }
public static String getApplicationVersion( Map<Object, Object> properties ) { return PropertyUtil.getProperty( properties, APP_VERSION, (String) null ); }
public static String getStringProperty( Properties defaultProperties, Map<Object, Object> properties, String property ) { if( defaultProperties == null ) return getProperty( properties, property ); return getProperty( properties, property, defaultProperties.getProperty( property ) ); }
static int getMaxConcurrentFlows( Map<Object, Object> properties, int maxConcurrentFlows ) { if( maxConcurrentFlows != -1 ) // CascadeDef is -1 by default return maxConcurrentFlows; return Integer.parseInt( getProperty( properties, CascadeProps.MAX_CONCURRENT_FLOWS, "0" ) ); }
/** * Returns property preserveTemporaryFiles. * * @param properties of type Map * @return a boolean */ static boolean getPreserveTemporaryFiles( Map<Object, Object> properties ) { return Boolean.parseBoolean( PropertyUtil.getProperty( properties, PRESERVE_TEMPORARY_FILES, "false" ) ); }
/** * Returns property stopJobsOnExit. * * @param properties of type Map * @return a boolean */ static boolean getStopJobsOnExit( Map<Object, Object> properties ) { return Boolean.parseBoolean( PropertyUtil.getProperty( properties, FlowProps.STOP_JOBS_ON_EXIT, "true" ) ); }
/** * Returns property preserveTemporaryFiles. * * @param properties of type Map * @return a boolean */ static boolean getPreserveTemporaryFiles( Map<Object, Object> properties ) { return Boolean.parseBoolean( PropertyUtil.getProperty( properties, PRESERVE_TEMPORARY_FILES, "false" ) ); }
/** * Returns property preserveTemporaryFiles. * * @param properties of type Map * @return a boolean */ static boolean getPreserveTemporaryFiles( Map<Object, Object> properties ) { return Boolean.parseBoolean( PropertyUtil.getProperty( properties, PRESERVE_TEMPORARY_FILES, "false" ) ); }
/** * Returns property preserveTemporaryFiles. * * @param properties of type Map * @return a boolean */ static boolean getPreserveTemporaryFiles( Map<Object, Object> properties ) { return Boolean.parseBoolean( PropertyUtil.getProperty( properties, PRESERVE_TEMPORARY_FILES, "false" ) ); }
public static String getApplicationFrameworks( Map<Object, Object> properties ) { return PropertyUtil.getProperty( properties, APP_FRAMEWORKS, System.getProperty( APP_FRAMEWORKS ) ); }
public CascadingServices( Map<Object, Object> properties ) { this.properties = PropertyUtil.createProperties( properties, defaultProperties ); this.enableContainer = PropertyUtil.getProperty( properties, CONTAINER_ENABLED, defaultProperties.getProperty( CONTAINER_ENABLED, "false" ) ).equalsIgnoreCase( "true" ); }
public static boolean getBooleanProperty( Properties defaultProperties, Map<Object, Object> properties, String property, boolean defaultValue ) { String result; if( defaultProperties == null ) result = getProperty( properties, property ); else result = getProperty( properties, property, defaultProperties.getProperty( property ) ); if( isEmpty( result ) ) return defaultValue; return Boolean.parseBoolean( result ); }
public static String getProperty( final Map<Object, Object> properties, ScopedElement flowElement, String property ) { if( flowElement != null && flowElement.hasConfigDef() ) return PropertyUtil.getProperty( properties, flowElement.getConfigDef(), property ); return PropertyUtil.getProperty( properties, property ); }
public static int getIntProperty( Properties defaultProperties, Map<Object, Object> properties, String property, int defaultValue ) { String result; if( defaultProperties == null ) result = getProperty( properties, property ); else result = getProperty( properties, property, defaultProperties.getProperty( property ) ); if( isEmpty( result ) ) return defaultValue; return Integer.parseInt( result ); }
/** * Method getDebugLevel returns the configured target planner {@link cascading.operation.DebugLevel}. * * @param properties of type Map * @return DebugLevel the configured DebugLevel */ static DebugLevel getDebugLevel( Map<Object, Object> properties ) { String debugLevel = PropertyUtil.getProperty( properties, "cascading.flowconnector.debuglevel", DebugLevel.DEFAULT.name() ); return DebugLevel.valueOf( debugLevel ); }
/** * Method getAssertionLevel returns the configured target planner {@link cascading.operation.AssertionLevel}. * * @param properties of type Map * @return AssertionLevel the configured AssertionLevel */ static AssertionLevel getAssertionLevel( Map<Object, Object> properties ) { String assertionLevel = PropertyUtil.getProperty( properties, "cascading.flowconnector.assertionlevel", AssertionLevel.STRICT.name() ); return AssertionLevel.valueOf( assertionLevel ); }
public static String getApplicationID( Map<Object, Object> properties ) { if( properties == null ) return getAppID(); return PropertyUtil.getProperty( properties, APP_ID, getAppID() ); }
private Tap decorateTap( Pipe pipe, Tap tempTap, String decoratorClassProp, String defaultDecoratorClassName ) { String decoratorClassName = PropertyUtil.getProperty( defaultProperties, pipe, decoratorClassProp ); if( Util.isEmpty( decoratorClassName ) ) decoratorClassName = defaultDecoratorClassName; if( Util.isEmpty( decoratorClassName ) ) return tempTap; LOG.info( "found decorator property: {}, with value: {}, wrapping tap: {}", decoratorClassProp, decoratorClassName, tempTap ); tempTap = Util.newInstance( decoratorClassName, tempTap ); return tempTap; }