Class JmxReportCache
- java.lang.Object
-
- org.openbravo.client.application.report.JmxReportCache
-
- All Implemented Interfaces:
JmxReportCacheMBean
@ApplicationScoped public class JmxReportCache extends Object implements JmxReportCacheMBean
An standard MBean that allows to view and clear the cached contents of theCompiledReportManager
through JMX.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MBEAN_NAME
-
Constructor Summary
Constructors Constructor Description JmxReportCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
Clears the content of the compiled reports cache.Set<String>
getCachedReports()
boolean
isEnabled()
void
setEnabled(boolean enabled)
Enables/Disables the reports cache.
-
-
-
Field Detail
-
MBEAN_NAME
public static final String MBEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCachedReports
public Set<String> getCachedReports()
- Specified by:
getCachedReports
in interfaceJmxReportCacheMBean
- Returns:
- the set of report names currently available in cache.
-
clearCache
public void clearCache()
Description copied from interface:JmxReportCacheMBean
Clears the content of the compiled reports cache.- Specified by:
clearCache
in interfaceJmxReportCacheMBean
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceJmxReportCacheMBean
- Returns:
true
if the reports cache is enabled,false
otherwise.
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:JmxReportCacheMBean
Enables/Disables the reports cache.- Specified by:
setEnabled
in interfaceJmxReportCacheMBean
- Parameters:
enabled
-true
to enable the cache,false
otherwise.
-
-