org.apache.synapse.aspects.statistics.view
Class SystemViewStrategy

java.lang.Object
  extended by org.apache.synapse.aspects.statistics.view.SystemViewStrategy
All Implemented Interfaces:
StatisticsViewStrategy

public class SystemViewStrategy
extends Object
implements StatisticsViewStrategy

Strategy that determine a system wide statistics view


Constructor Summary
SystemViewStrategy()
           
 
Method Summary
 Map<String,Map<String,InOutStatisticsView>> determineView(List<StatisticsRecord> statisticsRecords, ComponentType type)
          Return a statistics view for all resource with given type
 Map<String,InOutStatisticsView> determineView(String id, List<StatisticsRecord> statisticsRecords, ComponentType type)
          Return a statistics view for a resource with given type and given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemViewStrategy

public SystemViewStrategy()
Method Detail

determineView

public Map<String,Map<String,InOutStatisticsView>> determineView(List<StatisticsRecord> statisticsRecords,
                                                                 ComponentType type)
Description copied from interface: StatisticsViewStrategy
Return a statistics view for all resource with given type

Specified by:
determineView in interface StatisticsViewStrategy
Parameters:
statisticsRecords - Statistics Data
type - Type of resource
Returns:
A particular statistics view

determineView

public Map<String,InOutStatisticsView> determineView(String id,
                                                     List<StatisticsRecord> statisticsRecords,
                                                     ComponentType type)
Description copied from interface: StatisticsViewStrategy
Return a statistics view for a resource with given type and given name

Specified by:
determineView in interface StatisticsViewStrategy
Parameters:
id - The resource name or identifier
statisticsRecords - Statistics Data
type - Type of resource
Returns:
A particular statistics view


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.