All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.recover.RestartSrv

java.lang.Object
   |
   +----examples.recover.RestartSrv

public class RestartSrv
extends Object
implements Serializable
This class is instanciated and managed by the repository. The repository register and unregister m-beans with the service. After the agent has been restarted the repository calls the service to activate all the m-beans registered for reactivation.

See Also:
RestartList, ActivationFailure

Variable Index

 o RESTARTSRV

Constructor Index

 o RestartSrv(Framework)
Default constructor.

Method Index

 o contains(ObjectName)
Verifies whether an m-bean is registered with the Restart service.
 o deleteCmf()
Warns the user if the service is removed.
 o getFailureList()
Gets the list of activation failures.
 o getNbElements()
Gets the number of m-beans registered with the Restart service.
 o getRestartList()
Gets the list of m-beans registred for activation.
 o register(ObjectName)
Registers the m-bean with the Restart service, for reactivation after the agent has been stopped.
 o restartServices()
Activates all the m-beans registered with the Restart service.
 o unregister(ObjectName)
Unregisters the m-bean with the Restart service.

Variables

 o RESTARTSRV
 public static final ObjectName RESTARTSRV

Constructors

 o RestartSrv
 public RestartSrv(Framework cmf)
Default constructor.

Parameters:
cmf - The current framework.

Methods

 o getRestartList
 public Vector getRestartList()
Gets the list of m-beans registred for activation.

Returns:
A list containing the registered m-beans.
 o getFailureList
 public Vector getFailureList()
Gets the list of activation failures. The list is populated with ActivationFailure objects giving failure information, after the agent has been restarted.

Returns:
A list containing the activation failures.
 o getNbElements
 public int getNbElements()
Gets the number of m-beans registered with the Restart service.

Returns:
The number of m-beans registered with the service.
 o register
 public void register(ObjectName name)
Registers the m-bean with the Restart service, for reactivation after the agent has been stopped.

Parameters:
name - The object name of the m-bean to register.
 o unregister
 public void unregister(ObjectName name)
Unregisters the m-bean with the Restart service.

Parameters:
name - The object name of the m-bean to unregister.
 o contains
 public boolean contains(ObjectName name)
Verifies whether an m-bean is registered with the Restart service.

Parameters:
name - The object name of the m-bean.
Returns:
True if the m-bean is registered with the Restart service, false otherwise.
 o restartServices
 public void restartServices()
Activates all the m-beans registered with the Restart service.

 o deleteCmf
 public void deleteCmf()
Warns the user if the service is removed.


All Packages  Class Hierarchy  This Package  Previous  Next  Index