public final class ManagementMBeanImpl extends StandardMBean implements ManagementMBean
Constructor and Description |
---|
ManagementMBeanImpl(RMAccountsManager accountsManager) |
Modifier and Type | Method and Description |
---|---|
void |
clearAccoutingCache()
Clears the cache (all precomputed accounts)
|
int |
getAccountingCacheValidityTimeInSeconds()
Returns the accounting cache valid time in seconds.
|
long |
getLastRefreshDurationInMilliseconds()
Returns the last duration in milliseconds of account refresh.
|
void |
refreshConfiguration()
Reload the resource manager configuration, permissions, and log4j config.
|
void |
setAccountingCacheValidityTimeInSeconds(int refreshRateInSeconds)
Sets a new accounting cache valid time in seconds.
|
void |
setDefaultAccountingCacheValidityTimeInSeconds()
Sets the cache refresh rate to the one defined in the configuration file.
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public ManagementMBeanImpl(RMAccountsManager accountsManager) throws NotCompliantMBeanException
NotCompliantMBeanException
public int getAccountingCacheValidityTimeInSeconds()
ManagementMBean
getAccountingCacheValidityTimeInSeconds
in interface ManagementMBean
public void setAccountingCacheValidityTimeInSeconds(int refreshRateInSeconds)
ManagementMBean
setAccountingCacheValidityTimeInSeconds
in interface ManagementMBean
refreshRateInSeconds
- the new cache refresh rate in secondspublic void setDefaultAccountingCacheValidityTimeInSeconds()
ManagementMBean
setDefaultAccountingCacheValidityTimeInSeconds
in interface ManagementMBean
public void clearAccoutingCache()
ManagementMBean
clearAccoutingCache
in interface ManagementMBean
public long getLastRefreshDurationInMilliseconds()
ManagementMBean
getLastRefreshDurationInMilliseconds
in interface ManagementMBean
public void refreshConfiguration()
ManagementMBean
refreshConfiguration
in interface ManagementMBean