de.uka.ipd.sdq.ByCounter.execution
Class CollectionStrategyForceInlining

java.lang.Object
  extended by de.uka.ipd.sdq.ByCounter.execution.AbstractCollectionStrategy
      extended by de.uka.ipd.sdq.ByCounter.execution.CollectionStrategyForceInlining

public class CollectionStrategyForceInlining
extends AbstractCollectionStrategy

This class can be used in addition to CountingResultCollector in order to achieve result inlining during result collection. Inlining means that instead of holding every individual result, results are added up into shared counters.

The goal of this strategy is to provide a collection strategy with a strong limit in used memory.

Author:
Martin Krogmann, Michael Kuperberg

Constructor Summary
CollectionStrategyForceInlining(CountingResultCollector parent)
          Create and initialise the strategy.
 
Method Summary
 void clearResults()
          Clear the result storage fields.
 CountingResult getForcedInlining_CountingResult()
           
 java.util.SortedMap<java.lang.String,java.lang.Integer> getForcedInlining_OccurenceCountsReportingMethods()
           
 java.lang.Integer getForcedInlining_thresholdPerReportingMethod()
           
 java.lang.Integer getForcedInlining_thresholdTotalMaximum()
           
 java.lang.Integer getForcedInlining_totalOfUninlinedMethodsDespiteForcedInlining()
           
 boolean protocolCount(ProtocolCountStructure result, long reportingStart)
          Protocol the count to the collection strategy.
 java.util.SortedSet<CountingResult> retrieveAllCountingResults()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionStrategyForceInlining

public CollectionStrategyForceInlining(CountingResultCollector parent)
Create and initialise the strategy.

Method Detail

clearResults

public void clearResults()
Description copied from class: AbstractCollectionStrategy
Clear the result storage fields.

Specified by:
clearResults in class AbstractCollectionStrategy

protocolCount

public boolean protocolCount(ProtocolCountStructure result,
                             long reportingStart)
Description copied from class: AbstractCollectionStrategy
Protocol the count to the collection strategy.

Specified by:
protocolCount in class AbstractCollectionStrategy
Parameters:
result - The result to protocol.
reportingStart - Time stamp of the time of reporting the result.
Returns:
True, when the result is accepted by the strategy. False, when the result needs to be handled by a different strategy.

retrieveAllCountingResults

public java.util.SortedSet<CountingResult> retrieveAllCountingResults()

Specified by:
retrieveAllCountingResults in class AbstractCollectionStrategy
Returns:
The CountingResults produced from the handling and accepting of results by this strategy.

getForcedInlining_OccurenceCountsReportingMethods

public java.util.SortedMap<java.lang.String,java.lang.Integer> getForcedInlining_OccurenceCountsReportingMethods()

getForcedInlining_CountingResult

public CountingResult getForcedInlining_CountingResult()

getForcedInlining_thresholdPerReportingMethod

public java.lang.Integer getForcedInlining_thresholdPerReportingMethod()

getForcedInlining_thresholdTotalMaximum

public java.lang.Integer getForcedInlining_thresholdTotalMaximum()

getForcedInlining_totalOfUninlinedMethodsDespiteForcedInlining

public java.lang.Integer getForcedInlining_totalOfUninlinedMethodsDespiteForcedInlining()