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 AnalyzedBindingsCount
Count of bindings from registered modules which were analyzed for extensions.BindingsCount
Count of elements found in user modules (note that element is wider then binding and include listeners and other configurations).BindingsResolutionTime
Guice SPI time of modules elements resolution.BundleResolutionTime
Bundles resolution time only (lookup mechanism).BundleTime
Bundles resolution, creation, initialization and run time (combined from both configuration and run phases).CommandTime
Commands processing time.ConfigurationTime
Guicey time in dropwizard configuration phase.DropwizardBundleInitTime
Initialization time of registered dropwizard bundles.ExtensionsInstallationTime
Time spent installing extensions with registered installers.ExtensionsRecognitionTime
Time spent on extensions resolution (matching all extension classes with configured installers ).GuiceyBundleInitTime
Initialization time of registered guicey bundles.GuiceyTime
Overall guicey startup time (including configuration, run and jersey parts).InjectorCreationTime
Guice injector creation time.InstallersTime
Installers resolution, instantiation and execution time.JerseyInstallerTime
Time spent byJerseyInstaller
to install jersey related features.JerseyTime
Guicey initialization time inside jersey context.ModulesProcessingTime
Modules pre processing time (include Aware* interfaces processing and bindings analysis).RemovedBindingsCount
Removed configuration elements count.RemovedInnerModules
Count of removed inner guice modules.RunTime
Guicey time in dropwizard run phase (without jersey time).ScanClassesCount
Count of classes loaded during classpath scan.ScanTime
Classpath 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 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.
-
-
-
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 ofGuiceyTime
.
-
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 ofConfigurationTime
and 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.
-
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
.
-
RunTime
public static final Stat RunTime
Guicey time in dropwizard run phase (without jersey time). Part ofGuiceyTime
.
-
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. When bindings inspection is disabled withGuiceyOptions.AnalyzeGuiceModules
, this time become a part of overall injector creation time.
-
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 byJerseyInstaller
to 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
-
-