spring-framework / org.springframework.jmx.export.annotation / ManagedResource

ManagedResource

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) @Inherited class ManagedResource

Class-level annotation that indicates to register instances of a class with a JMX server, corresponding to the ManagedResource attribute.

Note: This annotation is marked as inherited, allowing for generic management-aware base classes. In such a scenario, it is recommended to not specify an object name value since this would lead to naming collisions in case of multiple subclasses getting registered.

Author
Rob Harrop

Author
Juergen Hoeller

Author
Sam Brannen

Since
1.2

See Also
org.springframework.jmx.export.metadata.ManagedResource

Constructors

<init>

ManagedResource(value: String, objectName: String, description: String, currencyTimeLimit: Int, log: Boolean, logFile: String, persistPolicy: String, persistPeriod: Int, persistName: String, persistLocation: String)

Class-level annotation that indicates to register instances of a class with a JMX server, corresponding to the ManagedResource attribute.

Note: This annotation is marked as inherited, allowing for generic management-aware base classes. In such a scenario, it is recommended to not specify an object name value since this would lead to naming collisions in case of multiple subclasses getting registered.

Properties

currencyTimeLimit

val currencyTimeLimit: Int

description

val description: String

log

val log: Boolean

logFile

val logFile: String

objectName

val objectName: String

persistLocation

val persistLocation: String

persistName

val persistName: String

persistPeriod

val persistPeriod: Int

persistPolicy

val persistPolicy: String

value

val value: String

Alias for the #objectName attribute, for simple default usage.