public interface PersistentMBean
void load() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
MBeanException
- 不支持包装另一个异常或持久性
RuntimeOperationsException
- 从持久化机制中包装异常
InstanceNotFoundException
- 无法从永久存储中找到或加载此MBean
void store() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
使用MBean和属性描述符的持久性策略来指导该方法的执行。 如果'persistPolicy'字段为:MBean应存储
!= "never"
= "always"
= "onTimer" and now > 'lastPersistTime' + 'persistPeriod'
= "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod'
= "onUnregister"
如果'persistPolicy'字段为:不存储MBean:
= "never"
= "onUpdate"
= "onTimer" && now < 'lastPersistTime' + 'persistPeriod'
MBeanException
- 不支持包装另一个异常或持久性
RuntimeOperationsException
- 从持久性机制包装异常
InstanceNotFoundException
- 找不到/访问永久存储
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.