@IntegrationManagedResource public class LifecycleMessageHandlerMetrics extends Object implements MessageHandlerMetrics, Lifecycle, ConfigurableMetricsAware<AbstractMessageHandlerMetrics>
MessageHandlerMetrics that exposes in addition the Lifecycle interface. The lifecycle methods can
be used to stop and start polling endpoints, for instance, in a live system.| Modifier and Type | Field and Description |
|---|---|
protected MessageHandlerMetrics |
delegate |
| Constructor and Description |
|---|
LifecycleMessageHandlerMetrics(Lifecycle lifecycle,
MessageHandlerMetrics delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureMetrics(AbstractMessageHandlerMetrics metrics) |
int |
getActiveCount() |
long |
getActiveCountLong() |
MessageHandlerMetrics |
getDelegate() |
Statistics |
getDuration() |
int |
getErrorCount() |
long |
getErrorCountLong() |
int |
getHandleCount() |
long |
getHandleCountLong() |
String |
getManagedName() |
String |
getManagedType() |
double |
getMaxDuration() |
double |
getMeanDuration() |
double |
getMinDuration() |
double |
getStandardDeviationDuration() |
boolean |
isCountsEnabled() |
boolean |
isLoggingEnabled() |
boolean |
isRunning() |
boolean |
isStatsEnabled() |
void |
reset() |
void |
setCountsEnabled(boolean countsEnabled) |
void |
setLoggingEnabled(boolean enabled) |
void |
setManagedName(String name) |
void |
setManagedType(String source) |
void |
setStatsEnabled(boolean statsEnabled) |
void |
start() |
void |
stop() |
protected final MessageHandlerMetrics delegate
public LifecycleMessageHandlerMetrics(Lifecycle lifecycle, MessageHandlerMetrics delegate)
public MessageHandlerMetrics getDelegate()
public void configureMetrics(AbstractMessageHandlerMetrics metrics)
configureMetrics in interface ConfigurableMetricsAware<AbstractMessageHandlerMetrics>@ManagedAttribute public boolean isRunning()
@ManagedOperation public void start()
@ManagedOperation public void stop()
public void reset()
reset in interface IntegrationManagementpublic int getErrorCount()
getErrorCount in interface MessageHandlerMetricspublic int getHandleCount()
getHandleCount in interface MessageHandlerMetricspublic double getMaxDuration()
getMaxDuration in interface MessageHandlerMetricspublic double getMeanDuration()
getMeanDuration in interface MessageHandlerMetricspublic double getMinDuration()
getMinDuration in interface MessageHandlerMetricspublic double getStandardDeviationDuration()
getStandardDeviationDuration in interface MessageHandlerMetricspublic Statistics getDuration()
getDuration in interface MessageHandlerMetricspublic String getManagedName()
getManagedName in interface MessageHandlerMetricspublic String getManagedType()
getManagedType in interface MessageHandlerMetricspublic int getActiveCount()
getActiveCount in interface MessageHandlerMetricspublic long getHandleCountLong()
getHandleCountLong in interface MessageHandlerMetricspublic long getErrorCountLong()
getErrorCountLong in interface MessageHandlerMetricspublic long getActiveCountLong()
getActiveCountLong in interface MessageHandlerMetricspublic void setStatsEnabled(boolean statsEnabled)
setStatsEnabled in interface IntegrationStatsManagementpublic void setCountsEnabled(boolean countsEnabled)
setCountsEnabled in interface IntegrationManagementpublic boolean isStatsEnabled()
isStatsEnabled in interface IntegrationStatsManagementpublic boolean isCountsEnabled()
isCountsEnabled in interface IntegrationManagementpublic void setLoggingEnabled(boolean enabled)
setLoggingEnabled in interface IntegrationManagementpublic boolean isLoggingEnabled()
isLoggingEnabled in interface IntegrationManagementpublic void setManagedName(String name)
setManagedName in interface MessageHandlerMetricspublic void setManagedType(String source)
setManagedType in interface MessageHandlerMetrics