Enum Stat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Stat>

    public enum Stat
    extends java.lang.Enum<Stat>
    Guicey metrics collected at startup.
    Since:
    27.07.2016
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTimer()  
      void requiresCounter()  
      void requiresTimer()  
      static Stat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Stat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • GuiceyTime

        public static final Stat GuiceyTime
        Overall guicey startup time (including configuration, run and jersey parts). All other timers represents this timer detalization.
      • ConfigurationTime

        public static final Stat ConfigurationTime
        Guicey time in dropwizard configuration phase. Part of GuiceyTime.
      • CommandTime

        public static final Stat CommandTime
        Commands processing time. Includes environment commands members injection (always performed) and commands registration from classpath scan (disabled by default). Part of ConfigurationTime and a bit of RunTime (fields initialization).
      • ScanTime

        public static final Stat ScanTime
        Classpath scan time (time to resolve all classes from configured packages). Part of ConfigurationTime.
      • ScanClassesCount

        public static final Stat ScanClassesCount
        Count of classes loaded during classpath scan.
      • BundleTime

        public static final Stat BundleTime
        Bundles resolution, creation, initialization and run time (combined from both configuration and run phases). Also includes dropwizard bundles initialization time (for bundles registered through guicey api).
      • BundleResolutionTime

        public static final Stat BundleResolutionTime
        Bundles resolution time only (lookup mechanism). Part of BundleTime.
      • DropwizardBundleInitTime

        public static final Stat DropwizardBundleInitTime
        Initialization time of registered dropwizard bundles. Part of BundleTime.
      • GuiceyBundleInitTime

        public static final Stat GuiceyBundleInitTime
        Initialization time of registered guicey bundles. Part of BundleTime.
      • InstallersTime

        public static final Stat InstallersTime
        Installers resolution, instantiation and execution time. Contains time from both initialization and run phases.
      • ExtensionsRecognitionTime

        public static final Stat ExtensionsRecognitionTime
        Time spent on extensions resolution (matching all extension classes with configured installers ). Does not contain classpath scan time, because already use cached scan result (actual scan performed before initializations). Part of InstallersTime.
      • RunTime

        public static final Stat RunTime
        Guicey time in dropwizard run phase (without jersey time). Part of GuiceyTime.
      • ModulesProcessingTime

        public static final Stat ModulesProcessingTime
        Modules pre processing time (include Aware* interfaces processing and bindings analysis). Also includes part of ExtensionsRecognitionTime. Part of RunTime.
      • BindingsCount

        public static final Stat BindingsCount
        Count of elements found in user modules (note that element is wider then binding and include listeners and other configurations). Not all these elements were analyzed because only pure class bindings are checked.
      • AnalyzedBindingsCount

        public static final Stat AnalyzedBindingsCount
        Count of bindings from registered modules which were analyzed for extensions. As analysis may be switched off by GuiceyOptions.AnalyzeGuiceModules, this counter indicates if analysis was performed or not.
      • RemovedBindingsCount

        public static final Stat RemovedBindingsCount
        Removed configuration elements count. It may be disabled extension or entire inner module (all binding, related to this module are removed).
      • RemovedInnerModules

        public static final Stat RemovedInnerModules
        Count of removed inner guice modules. Usual disable module may declare any inner guice module and all bindings related to this module will be removed. Counter shows only how many disabled module types were affected.
      • BindingsResolutionTime

        public static final Stat BindingsResolutionTime
        Guice SPI time of modules elements resolution. When bindings inspection is disabled with GuiceyOptions.AnalyzeGuiceModules, this time become a part of overall injector creation time.
      • InjectorCreationTime

        public static final Stat InjectorCreationTime
        Guice injector creation time. Part of RunTime.
      • ExtensionsInstallationTime

        public static final Stat ExtensionsInstallationTime
        Time spent installing extensions with registered installers. Part of RunTime.
      • JerseyTime

        public static final Stat JerseyTime
        Guicey initialization time inside jersey context. Jersey is started only when server command used (after guice context startup and so out of scope of guice bundle execution). Part of GuiceyTime.
      • JerseyInstallerTime

        public static final Stat JerseyInstallerTime
        Time spent by JerseyInstaller to install jersey related features. Part of JerseyTime.
    • Method Detail

      • values

        public static Stat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Stat c : Stat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Stat valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isTimer

        public boolean isTimer()
        Returns:
        true is timer stat, false otherwise
      • requiresTimer

        public void requiresTimer()
        Throws:
        java.lang.IllegalStateException - is current stat is not timer
      • requiresCounter

        public void requiresCounter()
        Throws:
        java.lang.IllegalStateException - is current stat is not counter stat