public class AggregatorRegistry extends Object
AggregatorFactory
instances.Modifier and Type | Field and Description |
---|---|
static String |
AGGREGATOR_REQUEST_REGEX
Regex pattern that defines the aggregator request syntax.
|
Constructor and Description |
---|
AggregatorRegistry()
Construct an AggregatorRegistry.
|
AggregatorRegistry(Collection<AggregatorConfig> colConfig)
Construct an AggregatorRegistry that includes built-in aggregators in
addition to the specified aggregators.
|
Modifier and Type | Method and Description |
---|---|
InvocableMap.EntryAggregator |
getAggregator(String sRequest)
Returns a configured aggregator.
|
void |
register(Collection<AggregatorConfig> colConfig)
Register a collection of aggregators.
|
void |
register(String sName,
AggregatorFactory factory)
Register an aggregator factory with the given name.
|
void |
register(String sName,
Class clz)
Register an aggregator or aggregator factory with the given name.
|
public static final String AGGREGATOR_REQUEST_REGEX
public AggregatorRegistry()
By default the following built-in aggregators will be registered:
public AggregatorRegistry(Collection<AggregatorConfig> colConfig)
colConfig
- aggregator configurationspublic InvocableMap.EntryAggregator getAggregator(String sRequest)
sRequest
- the aggregator requestpublic void register(String sName, AggregatorFactory factory)
sName
- the aggregator namefactory
- the aggregator factorypublic void register(String sName, Class clz)
A DefaultAggregatorFactory
will be used if the clz
parameter is a class that implements InvocableMap.EntryAggregator.
sName
- the aggregator nameclz
- the aggregator or aggregator factory classpublic void register(Collection<AggregatorConfig> colConfig)
colConfig
- the aggregator configurations