1 23 package com.sun.enterprise.admin.event.pluggable; 24 25 import com.sun.logging.LogDomains; 26 import java.util.Set ; 27 import java.util.HashSet ; 28 import java.util.Iterator ; 29 import java.util.ArrayList ; 30 import java.util.logging.Level ; 31 import java.util.logging.Logger ; 32 33 import com.sun.enterprise.admin.event.RRPersistenceHelper; 34 import com.sun.enterprise.config.ConfigContext; 35 import com.sun.enterprise.server.ApplicationServer; 36 import com.sun.enterprise.server.ServerContext; 37 import com.sun.enterprise.admin.server.core.AdminService; 38 import com.sun.enterprise.admin.event.ElementChangeHelper; 39 40 41 import com.sun.enterprise.util.i18n.StringManager; 43 44 50 public class PERestartEventHelper implements RestartEventHelper{ 51 52 private static Logger _logger = null; 54 55 public PERestartEventHelper() { 56 } 57 58 67 public void setRestartRequiredForTarget(ConfigContext ctx, 68 ArrayList configChangeList ) { 69 70 try { 71 AdminService admServ = AdminService.getAdminService(); 72 73 if ((admServ != null) && (admServ.isDas())) { 74 Set nonDynSet = ElementChangeHelper. 75 getXPathesForDynamicallyNotReconfigurableElements( 76 configChangeList); 77 78 Set targetSet = new HashSet (); 79 Iterator iter = nonDynSet.iterator(); 80 81 if (iter.hasNext()) { 82 RRPersistenceHelper rrHelper = new RRPersistenceHelper(); 83 rrHelper.setRestartRequired(true); 84 } 85 } 86 } catch (Throwable t) { 87 getLogger().log(Level.INFO, "event.exception_during_restart_reset", 88 t); 89 } 90 91 } 92 93 private static Logger getLogger() { 94 if (_logger == null) { 95 _logger = Logger.getLogger(LogDomains.ADMIN_LOGGER); 96 } 97 return _logger; 98 } 99 100 } 101 | Popular Tags |