com.atlassian.plugin
Interface Plugin.EnabledMetricsSource

All Known Implementing Classes:
AbstractDelegatingPlugin, AbstractPlugin, DefaultDynamicPlugin, OsgiBundlePlugin, OsgiPlugin, StaticPlugin, UnloadablePlugin, XmlDynamicPlugin
Enclosing interface:
Plugin

@ExperimentalApi
public static interface Plugin.EnabledMetricsSource

Extension interface providing access to enable time metrics.

Since:
3.2.0

Nested Class Summary
static class Plugin.EnabledMetricsSource.Default
          Host to default implementations of the Plugin.EnabledMetricsSource methods.
 
Method Summary
 Date getDateEnabled()
          Obtain the date that the plugin system most recently completed enabling of this plugin.
 Date getDateEnabling()
          Obtain the date that the plugin system most recently commenced enabling this plugin.
 

Method Detail

getDateEnabling

@Nullable
Date getDateEnabling()
Obtain the date that the plugin system most recently commenced enabling this plugin. This may return null if the plugin has never commenced enabling, or if the value is unavailable for other reasons, such as wrappers around legacy implementations.

Returns:
the date that the plugin most recently entered PluginState.ENABLING.

getDateEnabled

@Nullable
Date getDateEnabled()
Obtain the date that the plugin system most recently completed enabling of this plugin. This will return null if the plugin has never been enabled, has not completed enabling since it most recently started enabling, or if the value is unavailable for any other reason, such as wrappers around legacy implementations.

Returns:
the date that the plugin most recently entered PluginState.ENABLED, if this was not before the most recent PluginState.ENABLING, otherwise null.


Copyright © 2015 Atlassian. All rights reserved.