etm.core.aggregation.persistence
Class PersistentRootAggregator

java.lang.Object
  extended by etm.core.aggregation.RootAggregator
      extended by etm.core.aggregation.persistence.PersistentRootAggregator
All Implemented Interfaces:
Aggregator

public class PersistentRootAggregator
extends RootAggregator

An aggregator that supports persistence provided by a PersistenceBackend. By default the persistence backend is FileSystemPersistenceBackend, however you may supply a custom backends during initialization.

Since:
1.2.0
Version:
$Revision:96 $
Author:
void.fm

Field Summary
protected  java.util.Map backendProperties
           
protected  EtmMonitorContext context
           
protected  PersistenceBackend persistenceBackend
           
 
Fields inherited from class etm.core.aggregation.RootAggregator
aggregates, ctx
 
Constructor Summary
PersistentRootAggregator()
           
 
Method Summary
 AggregatorMetaData getMetaData()
          Returns detailed information about the aggregator chain.
 void init(EtmMonitorContext ctx)
          Lifecycle Method, will be called before Aggregator.start(), after initalization of the current EtmMonitor runtime.
 void setBackendProperties(java.util.Map someProperties)
           
 void setPersistenceBackend(PersistenceBackend aPersistenceBackend)
           
 void setPersistenceBackendClass(java.lang.Class aPersistenceBackendClazz)
           
 void start()
          Lifecycle method, will be called after all Aggregator instances are initialized by calling Aggregator.init(etm.core.monitor.EtmMonitorContext) and before the EtmMonitor instance will becomes available.
 void stop()
          Lifecycle method, will be called after the EtmMonitor instance was shutdown.
 
Methods inherited from class etm.core.aggregation.RootAggregator
add, flush, getAggregate, render, reset, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected EtmMonitorContext context

persistenceBackend

protected PersistenceBackend persistenceBackend

backendProperties

protected java.util.Map backendProperties
Constructor Detail

PersistentRootAggregator

public PersistentRootAggregator()
Method Detail

init

public void init(EtmMonitorContext ctx)
Description copied from interface: Aggregator
Lifecycle Method, will be called before Aggregator.start(), after initalization of the current EtmMonitor runtime. Be aware that Plugins are instantiated, but not started at this point.

Specified by:
init in interface Aggregator
Overrides:
init in class RootAggregator
Parameters:
ctx - The current EtmMonitor Context.

start

public void start()
Description copied from interface: Aggregator
Lifecycle method, will be called after all Aggregator instances are initialized by calling Aggregator.init(etm.core.monitor.EtmMonitorContext) and before the EtmMonitor instance will becomes available.

Specified by:
start in interface Aggregator
Overrides:
start in class RootAggregator

stop

public void stop()
Description copied from interface: Aggregator
Lifecycle method, will be called after the EtmMonitor instance was shutdown.

Specified by:
stop in interface Aggregator
Overrides:
stop in class RootAggregator

setPersistenceBackend

public void setPersistenceBackend(PersistenceBackend aPersistenceBackend)

setBackendProperties

public void setBackendProperties(java.util.Map someProperties)

setPersistenceBackendClass

public void setPersistenceBackendClass(java.lang.Class aPersistenceBackendClazz)

getMetaData

public AggregatorMetaData getMetaData()
Description copied from interface: Aggregator
Returns detailed information about the aggregator chain.

Specified by:
getMetaData in interface Aggregator
Overrides:
getMetaData in class RootAggregator
Returns:
The AggregatorMetaData.


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.