@IntegrationManagedResource public class LifecycleMessageHandlerMetrics extends java.lang.Object implements MessageHandlerMetrics, org.springframework.context.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.IntegrationManagement.ManagementOverrides| Modifier and Type | Field and Description |
|---|---|
protected MessageHandlerMetrics |
delegate |
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
LifecycleMessageHandlerMetrics(org.springframework.context.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() |
java.lang.String |
getManagedName() |
java.lang.String |
getManagedType() |
double |
getMaxDuration() |
double |
getMeanDuration() |
double |
getMinDuration() |
IntegrationManagement.ManagementOverrides |
getOverrides()
Return the overrides.
|
double |
getStandardDeviationDuration() |
boolean |
isCountsEnabled() |
boolean |
isLoggingEnabled() |
boolean |
isRunning() |
boolean |
isStatsEnabled() |
void |
reset() |
void |
setCountsEnabled(boolean countsEnabled) |
void |
setLoggingEnabled(boolean enabled) |
void |
setManagedName(java.lang.String name) |
void |
setManagedType(java.lang.String source) |
void |
setStatsEnabled(boolean statsEnabled) |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterMetricsCaptorprotected final MessageHandlerMetrics delegate
public LifecycleMessageHandlerMetrics(org.springframework.context.Lifecycle lifecycle,
MessageHandlerMetrics delegate)
public MessageHandlerMetrics getDelegate()
public void configureMetrics(AbstractMessageHandlerMetrics metrics)
configureMetrics in interface ConfigurableMetricsAware<AbstractMessageHandlerMetrics>@ManagedAttribute public boolean isRunning()
isRunning in interface org.springframework.context.Lifecycle@ManagedOperation public void start()
start in interface org.springframework.context.Lifecycle@ManagedOperation public void stop()
stop in interface org.springframework.context.Lifecyclepublic 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 java.lang.String getManagedName()
getManagedName in interface MessageHandlerMetricspublic java.lang.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(java.lang.String name)
setManagedName in interface MessageHandlerMetricspublic void setManagedType(java.lang.String source)
setManagedType in interface MessageHandlerMetricspublic IntegrationManagement.ManagementOverrides getOverrides()
IntegrationManagementgetOverrides in interface IntegrationManagement