public class CascadeProps extends Props
Cascade
level properties passed
through a CascadeConnector
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAX_CONCURRENT_FLOWS |
Constructor and Description |
---|
CascadeProps() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesTo(java.util.Properties properties) |
static CascadeProps |
cascadeProps()
Creates a new CascadeProps instance.
|
int |
getMaxConcurrentFlows() |
CascadeProps |
setMaxConcurrentFlows(int maxConcurrentFlows)
Method setMaxConcurrentFlows sets the maximum number of Flows that a Cascade can run concurrently.
|
static void |
setMaxConcurrentFlows(java.util.Map<java.lang.Object,java.lang.Object> properties,
int numConcurrentFlows)
Method setMaxConcurrentFlows sets the maximum number of Flows that a Cascade can run concurrently.
|
buildProperties, buildProperties, buildProperties, buildProperties, setProperties, setProperties
public static final java.lang.String MAX_CONCURRENT_FLOWS
public CascadeProps()
public static void setMaxConcurrentFlows(java.util.Map<java.lang.Object,java.lang.Object> properties, int numConcurrentFlows)
A value of one (1) will run one Flow at a time. A value of zero (0), the default, disables the restriction.
By default a Cascade will attempt to run all give Flow instances at the same time. But there are occasions where limiting the number for flows helps manages resources.
properties
- of type MapnumConcurrentFlows
- of type intpublic static CascadeProps cascadeProps()
public int getMaxConcurrentFlows()
public CascadeProps setMaxConcurrentFlows(int maxConcurrentFlows)
A value of one (1) will run one Flow at a time. A value of zero (0), the default, disables the restriction.
By default a Cascade will attempt to run all give Flow instances at the same time, if eligible. But there are occasions where limiting the number for flows helps manages resources.
maxConcurrentFlows
- of type intprotected void addPropertiesTo(java.util.Properties properties)
addPropertiesTo
in class Props
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.