adaptj.toolkits.analyses.metrics
Class SynchronizationMetric

java.lang.Object
  |
  +--adaptj.toolkits.Customizable
        |
        +--adaptj.toolkits.TimedCustomizable
              |
              +--adaptj.toolkits.TimedEventBoxApplicable
                    |
                    +--adaptj.toolkits.EventOperation
                          |
                          +--adaptj.toolkits.analyses.metrics.MetricAnalysis
                                |
                                +--adaptj.toolkits.analyses.metrics.SynchronizationMetric
All Implemented Interfaces:
ICustomizable, IEventBoxApplicable, IInitializable, ITimedCustomizable, XMLOutputable

public class SynchronizationMetric
extends MetricAnalysis


Nested Class Summary
(package private)  class SynchronizationMetric.ContendedMonitorEnterSitesComparator
           
(package private)  class SynchronizationMetric.MonitorEnterSitesComparator
           
 
Field Summary
static double DEFAULT_THRESHOLD
           
 
Constructor Summary
SynchronizationMetric(java.lang.String name)
           
SynchronizationMetric(java.lang.String name, double threshold)
           
SynchronizationMetric(java.lang.String name, double monitorThreshold, double contendedMonitorThreshold)
           
 
Method Summary
 void computeResults()
           
 void displayHelp(HelpDisplayManager manager)
           
 void doApply(EventBox box)
           
 void doInit()
           
 java.lang.String getOption(java.lang.String name)
           
 void outputXML(XMLMetricPrinter xmlPrinter)
           
 EventDependency[] registerEventDependencies()
           
 java.lang.String[] registerOperationDependencies()
           
 void setOption(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class adaptj.toolkits.analyses.metrics.MetricAnalysis
analysisDone, doDone, getLongName
 
Methods inherited from class adaptj.toolkits.EventOperation
doPreInit
 
Methods inherited from class adaptj.toolkits.TimedEventBoxApplicable
apply, done, doVerboseDone, doVerboseInit, doVerbosePreInit, init, preInit
 
Methods inherited from class adaptj.toolkits.TimedCustomizable
getTime, isTimed, setTimed, startTimer, stopTimer
 
Methods inherited from class adaptj.toolkits.Customizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface adaptj.toolkits.ICustomizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 

Field Detail

DEFAULT_THRESHOLD

public static final double DEFAULT_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

SynchronizationMetric

public SynchronizationMetric(java.lang.String name)

SynchronizationMetric

public SynchronizationMetric(java.lang.String name,
                             double threshold)

SynchronizationMetric

public SynchronizationMetric(java.lang.String name,
                             double monitorThreshold,
                             double contendedMonitorThreshold)
Method Detail

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)
Specified by:
setOption in interface ICustomizable
Overrides:
setOption in class MetricAnalysis

getOption

public java.lang.String getOption(java.lang.String name)
Specified by:
getOption in interface ICustomizable
Overrides:
getOption in class MetricAnalysis

displayHelp

public void displayHelp(HelpDisplayManager manager)
Specified by:
displayHelp in interface ICustomizable
Overrides:
displayHelp in class MetricAnalysis

registerEventDependencies

public EventDependency[] registerEventDependencies()
Specified by:
registerEventDependencies in interface IEventBoxApplicable
Specified by:
registerEventDependencies in class TimedEventBoxApplicable

registerOperationDependencies

public java.lang.String[] registerOperationDependencies()
Specified by:
registerOperationDependencies in interface IEventBoxApplicable
Specified by:
registerOperationDependencies in class TimedEventBoxApplicable

doInit

public void doInit()
Overrides:
doInit in class EventOperation

doApply

public void doApply(EventBox box)
Specified by:
doApply in class TimedEventBoxApplicable

computeResults

public void computeResults()
Overrides:
computeResults in class MetricAnalysis

outputXML

public void outputXML(XMLMetricPrinter xmlPrinter)
Specified by:
outputXML in interface XMLOutputable
Overrides:
outputXML in class MetricAnalysis