Class LongTermAveragesResource

    • Field Detail

      • _log

        protected static final org.slf4j.Logger _log
      • matchedTripsAvg

        protected static int matchedTripsAvg
      • unmatchedTripsAvg

        protected static int unmatchedTripsAvg
      • ROLLING_AVERAGE_COUNT

        protected static int ROLLING_AVERAGE_COUNT
      • recentMatchedTrips

        protected static int[] recentMatchedTrips
      • recentUnmatchedTrips

        protected static int[] recentUnmatchedTrips
      • currentTripCt

        protected static int currentTripCt
      • earliestTripIdx

        protected static int earliestTripIdx
    • Constructor Detail

      • LongTermAveragesResource

        public LongTermAveragesResource()
    • Method Detail

      • setRefreshInterval

        public void setRefreshInterval​(int refreshInterval)
      • getMatchedTripsAvg

        protected int getMatchedTripsAvg()
      • getAvgByAgency

        protected int getAvgByAgency​(String metricType,
                                     String agencyId)
      • getUnmatchedTripsAvg

        protected int getUnmatchedTripsAvg()
      • start

        @PostConstruct
        public void start()
      • stop

        @PreDestroy
        public void stop()
      • setScheduledExecutorService

        @Autowired
        public void setScheduledExecutorService​(ScheduledExecutorService scheduledExecutorService)
      • updateLongTermMatchedTrips

        protected void updateLongTermMatchedTrips​(int currentMatchedTrips,
                                                  int idx)
      • updateLongTermUnmatchedTrips

        protected void updateLongTermUnmatchedTrips​(int currentUnmatchedTrips,
                                                    int idx)