public class DefaultAggregatorFactory extends java.lang.Object implements ClusterMonitorFactory<AggDataFromCluster>
AggregateClusterMonitor on startup.
Note that the factory requires a comma separated list of cluster names in order to start the individual cluster monitor for each cluster.
The property is turbine.aggregator.clusterConfig
e.g config
turbine.aggregator.clusterConfig=prod,prod-backup
Note that since the aggregator shuts down when no-one is listening we just attach a bogus no-op TurbineDataHandler
here to keep the aggergator running. This helps in getting the data really fast when a real listener comes along, since the
aggregator will then already have all the connections set up and data will be flowing from the multiple server instances.
| Constructor and Description |
|---|
DefaultAggregatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
ClusterMonitor<AggDataFromCluster> |
getClusterMonitor(java.lang.String name) |
void |
initClusterMonitors()
Inits all configured cluster monitors
|
void |
shutdownClusterMonitors()
shutdown all configured cluster monitors
|
public ClusterMonitor<AggDataFromCluster> getClusterMonitor(java.lang.String name)
getClusterMonitor in interface ClusterMonitorFactory<AggDataFromCluster>ClusterMonitor<AggDataFromCluster>public void initClusterMonitors()
initClusterMonitors in interface ClusterMonitorFactory<AggDataFromCluster>public void shutdownClusterMonitors()
shutdownClusterMonitors in interface ClusterMonitorFactory<AggDataFromCluster>