Class PerformanceImpl

java.lang.Object
io.webfolder.cdp.command.PerformanceImpl
All Implemented Interfaces:
Performance

public class PerformanceImpl
extends java.lang.Object
implements Performance
  • Constructor Summary

    Constructors 
    Constructor Description
    PerformanceImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Disable collecting and reporting metrics.
    void enable()
    Enable collecting and reporting metrics.
    java.util.List<Metric> getMetrics()
    Retrieve current values of run-time metrics.
    void setTimeDomain​(TimeDomain timeDomain)
    Sets time domain to use for collecting and reporting duration metrics.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • disable

      public void disable()
      Description copied from interface: Performance
      Disable collecting and reporting metrics.
      Specified by:
      disable in interface Performance
    • enable

      public void enable()
      Description copied from interface: Performance
      Enable collecting and reporting metrics.
      Specified by:
      enable in interface Performance
    • setTimeDomain

      public void setTimeDomain​(TimeDomain timeDomain)
      Description copied from interface: Performance
      Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.
      Specified by:
      setTimeDomain in interface Performance
      Parameters:
      timeDomain - Time domain
    • getMetrics

      public java.util.List<Metric> getMetrics()
      Description copied from interface: Performance
      Retrieve current values of run-time metrics.
      Specified by:
      getMetrics in interface Performance
      Returns:
      Current values for run-time metrics.