Enum Stat
- java.lang.Object
-
- java.lang.Enum<Stat>
-
- ru.vyarus.dropwizard.guice.module.context.stat.Stat
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AnalyzedBindingsCountCount of bindings from registered modules which were analyzed for extensions.BindingsAnalysisTimeTime of parsed bindings analysis.BindingsCountCount of elements found in user modules (note that element is wider then binding and include listeners and other configurations).BindingsResolutionTimeGuice SPI time of modules elements resolution (part ofModulesProcessingTime).BundleBuilderTimeTime of bundle configuration.BundleResolutionTimeBundles resolution time only (lookup mechanism).BundleTimeBundles resolution, creation, initialization and run time (combined from both configuration and run phases).CommandTimeCommands processing time.ConfigurationAnalysisTime of configuration object parsing (to bind later by value).ConfigurationTimeGuicey time in dropwizard configuration phase.DropwizardBundleInitTimeInitialization time of registered dropwizard bundles.ExtensionsInstallationTimeTime spent installing extensions with registered installers.ExtensionsRecognitionTimeTime spent on extensions resolution (matching all extension classes with configured installers ).GuiceyBundleInitTimeInitialization time of registered guicey bundles.GuiceyBundleRunTimeTime of guicey bundles run execution.GuiceyTimeOverall guicey startup time (including configuration, run and jersey parts).HooksTimeHooks resolution and processing time.InjectorCreationTimeGuice injector creation time.InstallersResolutionTimeInstallers search and instantiation time.InstallersTimeInstallers resolution, instantiation and execution time.JerseyInstallerTimeTime spent byJerseyInstallerto install jersey related features.JerseyTimeGuicey initialization time inside jersey context.ListenersTimeGuicey listeners execution time.ModulesProcessingTimeModules pre processing time (include Aware* interfaces processing and bindings analysis).OverallTimeTimer started in time of guice bundle creation for measuring entire application startup time (used for measuring time since startup).RemovedBindingsCountRemoved configuration elements count.RemovedInnerModulesCount of removed inner guice modules.RunTimeGuicey time in dropwizard run phase (without jersey time).ScanClassesCountCount of classes loaded during classpath scan.ScanTimeClasspath scan time (time to resolve all classes from configured packages).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTimer()voidrequiresCounter()voidrequiresTimer()static StatvalueOf(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.
-
-
-
Enum Constant Detail
-
OverallTime
public static final Stat OverallTime
Timer started in time of guice bundle creation for measuring entire application startup time (used for measuring time since startup).
-
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 ofGuiceyTime.
-
BundleBuilderTime
public static final Stat BundleBuilderTime
Time of bundle configuration. Part ofConfigurationTime
-
HooksTime
public static final Stat HooksTime
Hooks resolution and processing time. Part ofConfigurationTime.
-
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 ofConfigurationTimeand a bit ofRunTime(fields initialization).
-
ScanTime
public static final Stat ScanTime
Classpath scan time (time to resolve all classes from configured packages). Part ofConfigurationTime.
-
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 ofBundleTime.
-
DropwizardBundleInitTime
public static final Stat DropwizardBundleInitTime
Initialization time of registered dropwizard bundles. Part ofBundleTime.
-
GuiceyBundleInitTime
public static final Stat GuiceyBundleInitTime
Initialization time of registered guicey bundles. Part ofBundleTime.
-
InstallersTime
public static final Stat InstallersTime
Installers resolution, instantiation and execution time. Contains time from both initialization and run phases.
-
InstallersResolutionTime
public static final Stat InstallersResolutionTime
Installers search and instantiation time. Part ofInstallersTime.
-
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 ofInstallersTime.
-
ListenersTime
public static final Stat ListenersTime
Guicey listeners execution time.
-
RunTime
public static final Stat RunTime
Guicey time in dropwizard run phase (without jersey time). Part ofGuiceyTime.
-
ConfigurationAnalysis
public static final Stat ConfigurationAnalysis
Time of configuration object parsing (to bind later by value). Part ofRunTime.
-
GuiceyBundleRunTime
public static final Stat GuiceyBundleRunTime
Time of guicey bundles run execution. Part ofBundleTimeandRunTime.
-
ModulesProcessingTime
public static final Stat ModulesProcessingTime
Modules pre processing time (include Aware* interfaces processing and bindings analysis). Also includes part ofExtensionsRecognitionTime. Part ofRunTime.
-
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 byGuiceyOptions.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 (part ofModulesProcessingTime). When bindings inspection is disabled withGuiceyOptions.AnalyzeGuiceModules, this stat will be 0, but injector creation time will increase accordingly because guice will have to do the same (InjectorCreationTime).
-
BindingsAnalysisTime
public static final Stat BindingsAnalysisTime
Time of parsed bindings analysis. Part ofExtensionsRecognitionTime.
-
InjectorCreationTime
public static final Stat InjectorCreationTime
Guice injector creation time. Part ofRunTime.
-
ExtensionsInstallationTime
public static final Stat ExtensionsInstallationTime
Time spent installing extensions with registered installers. Part ofRunTime.
-
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 ofGuiceyTime.
-
JerseyInstallerTime
public static final Stat JerseyInstallerTime
Time spent byJerseyInstallerto install jersey related features. Part ofJerseyTime.
-
-
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 namejava.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
-
-