    001    package com.hammurapi.eventbus.monitoring;
    002
    003    import java.util.Date;
    004
    005    /**
    006     * Event bus statistics.
    007     * @author Pavel Vlasov
    008     *
    009     */
    010    public interface EventBusStats extends Stats {
    011
    012            /**
    013             * @return Number of posts by bus client.
    014             */
    015            long getPosts();
    016
    017            /**
    018             * @return Number of posts since last invocation of this method.
    019             */
    020            long getPostsDelta();
    021
    022            /**
    023             * @return Number of conclusions posted by handlers.
    024             */
    025            long getConclusions();
    026
    027            /**
    028             * @return Number of conclusions since last invocation of this method.
    029             */
    030            long getConclusionsDelta();
    031
    032            /**
    033             * @return Number of handlers fired.
    034             */
    035            long getHandlersFired();
    036
    037            /**
    038             * @return Number of handlers fired since last invocation of this method.
    039             */
    040            long getHandlersFiredDelta();
    041
    042            Date getStart();
    043
    044    }