Class CounterObserver

    • Field Detail

      • myCounter

        protected Counter myCounter
        The Counter that is being observed
      • myModel

        protected Model myModel
        The Model that holds the Counter being observed
      • myAcrossRepStat

        protected Statistic myAcrossRepStat
        Statistic used to collect the across replication statistics on the final value of the counter during each replication
      • myAcrossTimedUpdateStatistic

        protected Statistic myAcrossTimedUpdateStatistic
        A Counter can have a timed update action during a replication This Statistic collects the average of the total count during each timed update interval. For example, a timed update interval of 1 hour can be set. Each hour this statistic will observe the count for that hour and collect averages across the timede update intervals
      • myAcrossRepTimedUpdateStatistic

        protected Statistic myAcrossRepTimedUpdateStatistic
        If the timed update statistics are collected during a replication This Statistic will be used to collect the average across the averages over the update intervals
    • Constructor Detail

      • CounterObserver

        public CounterObserver()
      • CounterObserver

        public CounterObserver​(java.lang.String name)
        Parameters:
        name - the name
    • Method Detail

      • resetTimedUpdateStatistics

        public final void resetTimedUpdateStatistics()
        Resets any statistics collected across the timed update intervals for within a replication
      • getAcrossTimedUpdateStatistic

        public final StatisticAccessorIfc getAcrossTimedUpdateStatistic()
        Returns a StatisticAccessorIfc for the statistics collected across timed update intervals within a replication.
        Returns:
        Returns the statistic
      • getAcrossRepTimedUpdateStatistic

        public final StatisticAccessorIfc getAcrossRepTimedUpdateStatistic()
        Returns a StatisticAccessorIfc for the statistics collected across timed update intervals across the replications
        Returns:
        Returns the statistic
      • getAcrossReplicationStatistic

        public final StatisticAccessorIfc getAcrossReplicationStatistic()
        Gets the statistics that have been accumulated across all replications for this counter.
        Returns:
        A StatisticAccessorIfc representing the across replication statistics.
      • setAcrossReplicationStatisticName

        public void setAcrossReplicationStatisticName​(java.lang.String name)
        A convenience method to set the name of the underlying Statistic for tabulating across replication statistics
        Parameters:
        name - the name