public interface PersistentMBean
void load() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
MBeanException
包一个例外或坚持不支持
RuntimeOperationsException
包从持久性机制的例外
InstanceNotFoundException
-找不到或者从持久性存储区加载这个MBean
void store() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
从MBean属性描述符的持久性策略用于指导本法执行。MBean应该如果persistpolicy”字段存储:
!“永远”“总是”=“>”lastpersisttime OnTimer”和现在的“+”persistperiod”=“nomoreoftenthan”和现在的“+”> lastpersisttime persistperiod”=“onunregister”
不要存储MBean如果persistpolicy场:
“永远”=“更新”=“OnTimer”和现在的“+”<< 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.