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
-
RESTARTSRV
-
-
RestartSrv(Framework)
- Default constructor.
-
contains(ObjectName)
- Verifies whether an m-bean is registered with the Restart service.
-
deleteCmf()
- Warns the user if the service is removed.
-
getFailureList()
- Gets the list of activation failures.
-
getNbElements()
- Gets the number of m-beans registered with the Restart service.
-
getRestartList()
- Gets the list of m-beans registred for activation.
-
register(ObjectName)
- Registers the m-bean with the Restart service, for reactivation after
the agent has been stopped.
-
restartServices()
- Activates all the m-beans registered with the Restart service.
-
unregister(ObjectName)
- Unregisters the m-bean with the Restart service.
RESTARTSRV
public static final ObjectName RESTARTSRV
RestartSrv
public RestartSrv(Framework cmf)
- Default constructor.
- Parameters:
- cmf - The current framework.
getRestartList
public Vector getRestartList()
- Gets the list of m-beans registred for activation.
- Returns:
- A list containing the registered m-beans.
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.
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.
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.
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.
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.
restartServices
public void restartServices()
- Activates all the m-beans registered with the Restart service.
deleteCmf
public void deleteCmf()
- Warns the user if the service is removed.
All Packages Class Hierarchy This Package Previous Next Index