MeterFacade.
Built-in metrics will be removed in a future release.@Deprecated @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
Deprecated.
|
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
LifecycleMessageHandlerMetrics(org.springframework.context.Lifecycle lifecycle,
MessageHandlerMetrics delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureMetrics(AbstractMessageHandlerMetrics metrics)
Deprecated.
|
void |
destroy()
Deprecated.
|
int |
getActiveCount()
Deprecated.
|
long |
getActiveCountLong()
Deprecated.
|
MessageHandlerMetrics |
getDelegate()
Deprecated.
|
Statistics |
getDuration()
Deprecated.
|
int |
getErrorCount()
Deprecated.
|
long |
getErrorCountLong()
Deprecated.
|
int |
getHandleCount()
Deprecated.
|
long |
getHandleCountLong()
Deprecated.
|
java.lang.String |
getManagedName()
Deprecated.
|
java.lang.String |
getManagedType()
Deprecated.
|
double |
getMaxDuration()
Deprecated.
|
double |
getMeanDuration()
Deprecated.
|
double |
getMinDuration()
Deprecated.
|
IntegrationManagement.ManagementOverrides |
getOverrides()
Deprecated.
Return the overrides.
|
double |
getStandardDeviationDuration()
Deprecated.
|
boolean |
isCountsEnabled()
Deprecated.
Deprecated.
|
boolean |
isLoggingEnabled()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
boolean |
isStatsEnabled()
Deprecated.
|
void |
reset()
Deprecated.
Deprecated.
|
void |
setCountsEnabled(boolean countsEnabled)
Deprecated.
Deprecated.
|
void |
setLoggingEnabled(boolean enabled)
Deprecated.
|
void |
setManagedName(java.lang.String name)
Deprecated.
|
void |
setManagedType(java.lang.String source)
Deprecated.
|
void |
setStatsEnabled(boolean statsEnabled)
Deprecated.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiterrorCount, handleCountregisterMetricsCaptorprotected 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()
IntegrationManagementreset 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)
IntegrationManagementsetCountsEnabled in interface IntegrationManagementcountsEnabled - the countsEnabledpublic boolean isStatsEnabled()
isStatsEnabled in interface IntegrationStatsManagementpublic boolean isCountsEnabled()
IntegrationManagementisCountsEnabled 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 IntegrationManagementpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in interface IntegrationManagement