Permalink
Commits on Nov 22, 2017
  1. Release 0.7.5

    SidW committed Nov 22, 2017
  2. Replace CopyOnWriteMap with ConcurrentHashMap in MetricsRepository

    SidW committed Nov 22, 2017
    CopyOnWriteMap which makes a copy of the whole map every time "put" operation is called is extremely expensive when loading lots of metrics at one time. Change it to ConcurrentHashMap instead.
Commits on Oct 13, 2017
  1. Release 0.7.4

    SidW committed Oct 13, 2017
  2. Merge pull request #16 from squarY/fixprecheck

    SidW committed Oct 13, 2017
    Fix the pre-check quota issue for rate sensor.
  3. Fix the pre-check quota issue for rate sensor.

    squarY committed Oct 12, 2017
    For rate sensor the value we used to compare with quota should be usage/elapsed. So once we do the pre-check, we should aslo use the same rule to compute the request value.No the value we used to compare with quota should be (usage+requestValue)/elapsed.
    
    Add javadoc and refactor method name based on review comment.
  4. Fix the pre-check quota issue for rate sensor.

    squarY committed Oct 12, 2017
    For rate sensor the value we used to compare with quota should be usage/elapsed. So once we do the pre-check, we should aslo use the same rule to compute the request value.No the value we used to compare with quota should be (usage+requestValue)/elapsed.
    
    Add javadoc and refactor method name based on review comment.
Commits on May 25, 2017
  1. Release 0.7.3

    SidW committed May 25, 2017
  2. Merge pull request #14 from squarY/fixprecheck

    SidW committed May 25, 2017
    Fix the issue of check quota before recording the usage.
Commits on May 23, 2017
  1. Fix the issue of check quota before recording the usage.

    squarY committed May 23, 2017
    We should get the sum of the current usage and the usage of incoming request, then compare this sum with quota in pre-check.
  2. Release 0.7.3

    FelixGV committed May 23, 2017
  3. Allow sensor to check quota before recording the stat.

    squarY authored and FelixGV committed May 19, 2017
    Add a boolean field in quota to enable/disable checking quota before recording.
    Change the logic of quota so that, in pre-check, if the usage equals to the quota,
    then throw a quota violation exception.
Commits on Sep 6, 2016
  1. Release 0.7.2

    SidW committed Sep 6, 2016
Commits on Sep 2, 2016
  1. 1. fix JmxReporter#removeMetric

    SidW committed Sep 2, 2016
    2. fix javadoc error while building the project
Commits on Sep 1, 2016
  1. Merge pull request #9 from SidW/master

    SidW committed Sep 1, 2016
    add MetricsRepository#removeMetrics and implement a new MeasurableStat Gauge.
  2. 1. MetricsReporter is able to removeMetrics now.

    SidW committed Jul 26, 2016
        add MetricsReporter#addMetric, MetricsReporter#removeMetric
        mark MetricsReporter#metricChange as deprecated
    
    2. add synchronized blocks for TehutiMbean#getAttribute and
    TehutiMbean#setAttribute to solve a potential race condition.
    
    3. Implement a new MeasurableStat "Gauge".
        Gauge is the most primitive MeasurableStat that always the return the
        most recent value passed in.
Commits on Jul 21, 2016
Commits on Jul 15, 2016
  1. Release 0.7.1

    FelixGV committed Jul 15, 2016
Commits on Jul 13, 2016
  1. Moved and renamed JmxReporter#split() to Utils#splitMetricName().

    SidW committed Jul 12, 2016
    A generic name like split does not sound good enough to describe a
    method that does speicfic work here. Also moved this method into Utils so that
    other classes may use it as well.
Commits on Jul 11, 2016
  1. This change is used to address the following issue:

    gaojieliu authored and FelixGV committed Jun 24, 2016
    Metric will report wrong value if the sensor time-window/samples are
    different from the specific config for the associated metrics.
    Sensor record function is using its own metric config instead of the
    config controlled by each metric.
    
    Considering the following scenario:
    1. Sensor is using the default 30s time-window;
    2. The metric associated with this sensor is using 2s time-window;
    3. When we record a value in the data sensor in the first second, the
    metric will report the correct value since both sensor record and metric
    measure functions are using the same window;
    4. If we record another value after 5 seconds, the sensor will still
    write to the same window because of the big 30s sensor time-window, but
    the metric measure function will treat the sensor time-window to be
    obsolete because the window was updated 5 seconds ago, then report 0;
Commits on Jul 17, 2015
Commits on Jul 14, 2015
  1. Release 0.7

    FelixGV committed Jul 14, 2015
  2. Added value inside QuotaViolationException

    FelixGV committed Jul 14, 2015
    This allows throttler implementations to know the by how much a given metric exceeded its quota, and react accordingly.
Commits on Feb 25, 2015
  1. Release 0.6

    FelixGV committed Feb 25, 2015
Commits on Jan 30, 2015
  1. Prepared build for publishing to Sonatype Central Repository.

    FelixGV committed Jan 30, 2015
    Marked build as version '0.6-SNAPSHOT'
  2. Renamed package from 'org.tehuti' to 'io.tehuti'.

    FelixGV committed Jan 30, 2015
    This is so that the tehuti organization can own its domain name, in order to ensure it can publish artifacts to Maven Central without conflict...
Commits on Aug 26, 2014
Commits on Aug 20, 2014
  1. Improved clarity of doc and APIs based on Sid's comments.

    FelixGV committed Aug 20, 2014
    Note: This commit changes the name of the Metrics class to MetricsRepository, which makes it backwards-incompatible with the Tehuti 0.4 release.
Commits on Aug 14, 2014
  1. More documentation tweaks.

    FelixGV committed Aug 14, 2014
Commits on Aug 12, 2014