Class ServiceMetrics

  • public class ServiceMetrics
    extends java.lang.Object
    Tools to manage service computation times and user-agent metrics
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ServiceMetrics.Item
      Service metrics item
    • Field Summary

      Modifier and Type Field Description
      static int QUANTUM  
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void countUserAgent​(java.lang.String userAgent, java.lang.String login)  
      static java.util.List<ServiceMetrics.Item> getTopPages()  
      static java.util.Map<java.lang.Integer,​java.lang.Long> prepare​(java.lang.String service, java.lang.String target, java.lang.String action, char type, int limit)
      Prepare data
      static void readPagePerfs​(java.lang.String platform)
      Load PAGEPERF history
      static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> readUserAgents​(java.lang.String platform)
      Load USERAGENT history
      static void reset​(java.lang.String platform)  
      static java.util.List<java.lang.String> sortUserAgents​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> agents)  
      static void statistics​(Parameters params, long millisec)
      Count performance per location:object
      static void update()
      Serialize current counters
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceMetrics

        public ServiceMetrics()
    • Method Detail

      • update

        public static void update()
        Serialize current counters
      • reset

        public static void reset​(java.lang.String platform)
      • statistics

        public static void statistics​(Parameters params,
                                      long millisec)
        Count performance per location:object
      • prepare

        public static java.util.Map<java.lang.Integer,​java.lang.Long> prepare​(java.lang.String service,
                                                                                    java.lang.String target,
                                                                                    java.lang.String action,
                                                                                    char type,
                                                                                    int limit)
        Prepare data
      • readPagePerfs

        public static void readPagePerfs​(java.lang.String platform)
        Load PAGEPERF history
      • countUserAgent

        public static void countUserAgent​(java.lang.String userAgent,
                                          java.lang.String login)
      • readUserAgents

        public static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> readUserAgents​(java.lang.String platform)
        Load USERAGENT history
      • sortUserAgents

        public static java.util.List<java.lang.String> sortUserAgents​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> agents)