etm.contrib.aggregation.swing
Class SimpleTreeModelAggregator

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by etm.contrib.aggregation.swing.SimpleTreeModelAggregator
All Implemented Interfaces:
Aggregator, java.io.Serializable, javax.swing.tree.TreeModel

Deprecated. Please don't use this aggregator any more. With JETM 1.3.0 this aggregator will be removed.

public class SimpleTreeModelAggregator
extends javax.swing.tree.DefaultTreeModel
implements Aggregator

The SimpleTreeModelAggregator builds up a Swing TreeModel for all EtmPoints. Do not use anymore.

Please note that the current implementation isn't very efficient, it definitly adds some overhead for every measurement.

Version:
$Revision: 150 $
Author:
void.fm
See Also:
Serialized Form

Field Summary
protected  Aggregator delegate
          Deprecated.  
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
SimpleTreeModelAggregator(java.lang.String aName)
          Deprecated. Creates a new SimpleTreeModelAggregator with a RootAggregator as backing aggregator instance.
SimpleTreeModelAggregator(java.lang.String aName, Aggregator aDelegate)
          Deprecated. Creates a new SimpleTreeModelAggregator which delegates add(etm.core.monitor.EtmPoint) calls to the provided aggregator instances after altering the treemodel.
 
Method Summary
 void add(EtmPoint point)
          Deprecated. Adds a new EtmPoint to the aggregator.
 void flush()
          Deprecated. Flushes the current aggregation details.
 AggregatorMetaData getMetaData()
          Deprecated. Returns detailed information about the aggregator chain.
 void init(EtmMonitorContext ctx)
          Deprecated. Lifecycle Method, will be called before Aggregator.start(), after initalization of the current EtmMonitor runtime.
 void render(MeasurementRenderer renderer)
          Deprecated. Renders the current state of the aggregator using the provided renderer instance.
 void reset()
          Deprecated. Resets the internal aggregator state.
 void reset(java.lang.String symbolicName)
          Deprecated. Resets the internal aggregator state for a etm point.
 void start()
          Deprecated. 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()
          Deprecated. Lifecycle method, will be called after the EtmMonitor instance was shutdown.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected Aggregator delegate
Deprecated. 
Constructor Detail

SimpleTreeModelAggregator

public SimpleTreeModelAggregator(java.lang.String aName)
Deprecated. 
Creates a new SimpleTreeModelAggregator with a RootAggregator as backing aggregator instance.

Parameters:
aName - The name of the root node.
See Also:
RootAggregator

SimpleTreeModelAggregator

public SimpleTreeModelAggregator(java.lang.String aName,
                                 Aggregator aDelegate)
Deprecated. 
Creates a new SimpleTreeModelAggregator which delegates add(etm.core.monitor.EtmPoint) calls to the provided aggregator instances after altering the treemodel.

Parameters:
aName -
aDelegate -
Method Detail

add

public void add(EtmPoint point)
Deprecated. 
Description copied from interface: Aggregator
Adds a new EtmPoint to the aggregator.

Specified by:
add in interface Aggregator
Parameters:
point - A new collected EtmPoint.

flush

public void flush()
Deprecated. 
Description copied from interface: Aggregator
Flushes the current aggregation details. Buffering Aggragetors should clean up their process buffer.

Specified by:
flush in interface Aggregator

reset

public void reset()
Deprecated. 
Description copied from interface: Aggregator
Resets the internal aggregator state. Persistent states usually aren't affected.

Specified by:
reset in interface Aggregator

reset

public void reset(java.lang.String symbolicName)
Deprecated. 
Description copied from interface: Aggregator
Resets the internal aggregator state for a etm point. Persistent states usually aren't affected.

Specified by:
reset in interface Aggregator
Parameters:
symbolicName - The name of the etm point to be resetted.

render

public void render(MeasurementRenderer renderer)
Deprecated. 
Description copied from interface: Aggregator
Renders the current state of the aggregator using the provided renderer instance.

Specified by:
render in interface Aggregator
Parameters:
renderer - The renderer.

getMetaData

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

Specified by:
getMetaData in interface Aggregator
Returns:
The AggregatorMetaData.

init

public void init(EtmMonitorContext ctx)
Deprecated. 
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
Parameters:
ctx - The current EtmMonitor Context.

start

public void start()
Deprecated. 
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

stop

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

Specified by:
stop in interface Aggregator


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