All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.recover.RecoveryRepSrv

java.lang.Object
   |
   +----com.sun.jaw.impl.agent.services.light.RepositorySrv
           |
           +----com.sun.jaw.impl.agent.services.persistent.PersistentRepSrv
                   |
                   +----examples.recover.RecoveryRepSrv

public class RecoveryRepSrv
extends PersistentRepSrv
This class provides a simple implementation of a persistent repository, coupled with a Restart service to provide a recovery mechanism. As soon as the framework has registered the repository will either retrieve and activate the Restart service or if it is not present register it with the framework enabling recovery. All the m-beans that implements the ActivatableIf interface and is registered persistently in the repository is recoverable and will be registered with the Restart service.

See Also:
RestartSrv, MoRepSrvIf, ActivatableIf, ObjectOutputStream, Serializable, Externalizable

Constructor Index

 o RecoveryRepSrv()
Default constructor.

Method Index

 o getRecoverMode()
Gets the recovery mode of the repository.
 o registerDB(Object, ObjectName)
Invoked by the core management framework to register an m-bean with the repository, if the m-bean implements the ActivatableIf it will also be registered with the Restart service.
 o setRecoverMode(boolean)
Sets the recovery mode of the repository.

Constructors

 o RecoveryRepSrv
 public RecoveryRepSrv()
Default constructor.

Methods

 o registerDB
 public void registerDB(Object object,
                        ObjectName name) throws InstanceAlreadyExistException
Invoked by the core management framework to register an m-bean with the repository, if the m-bean implements the ActivatableIf it will also be registered with the Restart service.

Note - The m-bean will be persistent.

Parameters:
object - The m-bean to be registered.
name - The object name with which the m-bean is to be registered.
Throws: InstanceAlreadyExistException
The m-bean is already registered in the object repository.
Overrides:
registerDB in class PersistentRepSrv
 o setRecoverMode
 public void setRecoverMode(boolean mode)
Sets the recovery mode of the repository.

 o getRecoverMode
 public boolean getRecoverMode()
Gets the recovery mode of the repository.


All Packages  Class Hierarchy  This Package  Previous  Next  Index