Class ManagedResource

java.lang.Object
org.springframework.jmx.export.metadata.AbstractJmxAttribute
org.springframework.jmx.export.metadata.ManagedResource

public class ManagedResource extends AbstractJmxAttribute
Metadata indicating that instances of an annotated class are to be registered with a JMX server. Only valid when used on a Class.
Since:
1.2
Author:
Rob Harrop
See Also:
  • Constructor Details

    • ManagedResource

      public ManagedResource()
  • Method Details

    • setObjectName

      public void setObjectName(@Nullable String objectName)
      Set the JMX ObjectName of this managed resource.
    • getObjectName

      public @Nullable String getObjectName()
      Return the JMX ObjectName of this managed resource.
    • setLog

      public void setLog(boolean log)
    • isLog

      public boolean isLog()
    • setLogFile

      public void setLogFile(@Nullable String logFile)
    • getLogFile

      public @Nullable String getLogFile()
    • setPersistPolicy

      public void setPersistPolicy(@Nullable String persistPolicy)
    • getPersistPolicy

      public @Nullable String getPersistPolicy()
    • setPersistPeriod

      public void setPersistPeriod(int persistPeriod)
    • getPersistPeriod

      public int getPersistPeriod()
    • setPersistName

      public void setPersistName(@Nullable String persistName)
    • getPersistName

      public @Nullable String getPersistName()
    • setPersistLocation

      public void setPersistLocation(@Nullable String persistLocation)
    • getPersistLocation

      public @Nullable String getPersistLocation()