public interface PersistentMBean
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
void |
load() |
thisMBeanインスタンスを永続ストア内のMBean用データでインスタンス化します。
|
void |
store() |
このMBeanインスタンスの現在の状態を取り込み、永続ストアに書き出します。
|
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 - 永続ストアが見つからない場合、またはアクセスできない場合 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。