Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.coherence.rest.util.aggregator
Class AggregatorRegistry

java.lang.Object
  extended by com.tangosol.coherence.rest.util.aggregator.AggregatorRegistry


public class AggregatorRegistry
extends java.lang.Object

A registry for AggregatorFactory instances.

Author:
vp 2011.07.07

Field Summary
static java.lang.String AGGREGATOR_REQUEST_REGEX
          Regex pattern that defines the aggregator request syntax.

 

Constructor Summary
AggregatorRegistry()
          Construct an AggregatorRegistry.
AggregatorRegistry(java.util.Collection colConfig)
          Construct an AggregatorRegistry that includes built-in aggregators in addition to the specified aggregators.

 

Method Summary
 InvocableMap.EntryAggregator getAggregator(java.lang.String sRequest)
          Returns a configured aggregator.
 void register(java.util.Collection colConfig)
          Register a collection of aggregators.
 void register(java.lang.String sName, AggregatorFactory factory)
          Register an aggregator factory with the given name.
 void register(java.lang.String sName, java.lang.Class clz)
          Register an aggregator or aggregator factory with the given name.

 

Field Detail

AGGREGATOR_REQUEST_REGEX

public static final java.lang.String AGGREGATOR_REQUEST_REGEX
Regex pattern that defines the aggregator request syntax.
See Also:
Constant Field Values

Constructor Detail

AggregatorRegistry

public AggregatorRegistry()
Construct an AggregatorRegistry.

By default the following built-in aggregators will be registered:


AggregatorRegistry

public AggregatorRegistry(java.util.Collection colConfig)
Construct an AggregatorRegistry that includes built-in aggregators in addition to the specified aggregators.
Parameters:
colConfig - aggregator configurations

Method Detail

getAggregator

public InvocableMap.EntryAggregator getAggregator(java.lang.String sRequest)
Returns a configured aggregator.
Parameters:
sRequest - the aggregator request
Returns:
aggregator

register

public void register(java.lang.String sName,
                     AggregatorFactory factory)
Register an aggregator factory with the given name.
Parameters:
sName - the aggregator name
factory - the aggregator factory

register

public void register(java.lang.String sName,
                     java.lang.Class clz)
Register an aggregator or aggregator factory with the given name.

A DefaultAggregatorFactory will be used if the clz parameter is a class that implements InvocableMap.EntryAggregator.

Parameters:
sName - the aggregator name
clz - the aggregator or aggregator factory class

register

public void register(java.util.Collection colConfig)
Register a collection of aggregators.
Parameters:
colConfig - the aggregator configurations

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.