@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=IntegrationMBeanExportConfiguration.class) public @interface EnableIntegrationMBeanExport
@ManagedResource annotated beans.
The resulting IntegrationMBeanExporter
bean is defined under the name integrationMbeanExporter. Alternatively, consider defining a
custom IntegrationMBeanExporter bean explicitly.
This annotation is modeled after and functionally equivalent to Spring Integration XML's
<int-jmx:mbean-export/> element.
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
countsEnabled
A list of simple patterns for component names for which message counts will be
enabled (defaults to '*').
|
String |
defaultDomain
The default domain to use when generating JMX ObjectNames.
|
String[] |
managedComponents
A list of simple patterns for component names to register (defaults to '*').
|
RegistrationPolicy |
registration
The policy to use when attempting to register an MBean under an
ObjectName that already exists. |
String |
server
The bean name of the MBeanServer to which MBeans should be exported.
|
String[] |
statsEnabled
A list of simple patterns for component names for which message statistics will be
enabled (response times, rates etc), as well as counts (a positive match here
overrides
countsEnabled, you can't have statistics without
counts). |
public abstract String defaultDomain
${project.domain}).public abstract String server
${project.mbeanServer})
and SpEL expression (e.g. #{mbeanServer}).public abstract RegistrationPolicy registration
ObjectName that already exists. Defaults to
RegistrationPolicy.FAIL_ON_EXISTING.public abstract String[] managedComponents
$ managed.components}). Can be applied for each element.public abstract String[] countsEnabled
managedComponents will be considered. Enables message
counting (`sendCount`, `errorCount`, `receiveCount`) for those components that
support counters (channels, message handlers, etc). This is the initial setting
only, individual components can have counts enabled/disabled at runtime. May be
overridden by an entry in statsEnabled which is additional
functionality over simple counts. If a pattern starts with `!`, counts are disabled
for matches. For components that match multiple patterns, the first pattern wins.
Disabling counts at runtime also disables stats.public abstract String[] statsEnabled
countsEnabled, you can't have statistics without
counts). (defaults to '*'). Only patterns that also match
managedComponents will be considered. Enables
statistics for those components that support statistics (channels - when sending,
message handlers, etc). This is the initial setting only, individual components can
have stats enabled/disabled at runtime. If a pattern starts with `!`, stats (and
counts) are disabled for matches. Note: this means that '!foo' here will disable
stats and counts for 'foo' even if counts are enabled for 'foo' in
countsEnabled. For components
that match multiple patterns, the first pattern wins. Enabling stats at runtime
also enables counts.