mx4j.persist

Class MBeanPersister

Implemented Interfaces:
PersisterMBean

public class MBeanPersister
extends Persister

A persister that delegates the persistence to a registered persister MBean.
Version:
$Revision: 1.7 $

Constructor Summary

MBeanPersister(javax.management.MBeanServer server, javax.management.ObjectName name)
Creates a new MBeanPersister that delegates persistence to a persister MBean registered in the specified MBeanServer with the specified ObjectName.

Method Summary

Object
load()
Loads the information persisted on the storage media.
void
store(Object data)
Store the given information to the storage media.

Constructor Details

MBeanPersister

public MBeanPersister(javax.management.MBeanServer server,
                      javax.management.ObjectName name)
Creates a new MBeanPersister that delegates persistence to a persister MBean registered in the specified MBeanServer with the specified ObjectName.

Method Details

load

public Object load()
            throws javax.management.MBeanException,
                   javax.management.RuntimeOperationsException,
                   javax.management.InstanceNotFoundException
Loads the information persisted on the storage media.
Specified by:
load in interface PersisterMBean

store

public void store(Object data)
            throws javax.management.MBeanException,
                   javax.management.RuntimeOperationsException,
                   javax.management.InstanceNotFoundException
Store the given information to the storage media.
Specified by:
store in interface PersisterMBean

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.