streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbnks <...@git.apache.org>
Subject [GitHub] incubator-streams pull request: Streams 190
Date Wed, 08 Oct 2014 19:31:52 GMT
Github user rbnks commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/99#discussion_r18606496
  
    --- Diff: streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/queues/ThroughputQueueMXBean.java
---
    @@ -0,0 +1,48 @@
    +package org.apache.streams.local.queues;
    +
    +import javax.management.MXBean;
    +
    +/**
    + * MXBean capable queue that monitors the throughput of the queue
    + */
    +public interface ThroughputQueueMXBean {
    +
    +    /**
    +     * Returns the number of items on the queue.
    +     * @return number of items on queue
    +     */ 
    +    public long getCurrentSize();
    +
    +    /**
    +     * Get the average time an item spends in queue in milliseconds
    +     * @return average time an item spends in queue in milliseconds
    +     */
    +    public double getAvgWait();
    +
    +    /**
    +     * Get the maximum time an item has spent on the queue before being removed from
the queue.
    +     * @return the maximum time an item has spent on the queue
    +     */
    +    public long getMaxWait();
    +
    +    /**
    +     * Get the number of items that have been removed from this queue
    +     * @return number of items that have been removed from the queue
    +     */
    +    public long getRemoved();
    +
    +    /**
    +     * Get the number of items that have been added to the queue
    +     * @return number of items that have been added to the queue
    +     */
    +    public long getAdded();
    +
    +    /**
    +     * Get the the throughput of the queue measured by the time the queue has been active
divided by
    --- End diff --
    
    You are correct.  Will fix.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message