FileDocCategorySizeDatePackage
PERestartEventHelper.javaAPI DocGlassfish v2 API4235Fri May 04 22:33:42 BST 2007com.sun.enterprise.admin.event.pluggable

PERestartEventHelper

public final class PERestartEventHelper extends Object implements RestartEventHelper
Restart event Helper - class providing support for informing server(s) to set its(their) restart required state to true or false.
author:
Satish Viswanatham

Fields Summary
private static final Logger
_logger
Constructors Summary
public PERestartEventHelper()

    
      
    
Methods Summary
public voidsetRestartRequiredForTarget(com.sun.enterprise.config.ConfigContext ctx, java.util.ArrayList configChangeList)
Given a config change list, this method figures out if that list contains any non dynamic recofigurable changes. If there is any change which can not be applied dynamically, if sets the restart status on the appropriate target servers.

param
ctx Config context of DAS
param
list config change list

   
        try {
            AdminService admServ = AdminService.getAdminService();

            if ((admServ != null) && (admServ.isDas())) {
                Set nonDynSet = ElementChangeHelper.
                    getXPathesForDynamicallyNotReconfigurableElements(
                    configChangeList);

                Iterator iter = nonDynSet.iterator();

                if (iter.hasNext()) {
                    RRPersistenceHelper rrHelper = new RRPersistenceHelper();
                    rrHelper.setRestartRequired(true);
                }
            }
        } catch (Throwable t) {
            _logger.log(Level.INFO, "event.exception_during_restart_reset",
                        t);
        }