public void start() { if ( pamProxy == null) { startOnSetPAMProxy = true; return; } if ( descriptorChangeMonitorInterval > 0 ) { try { monitor = new DescriptorChangeMonitor(Thread.currentThread().getThreadGroup(), "PortletApplicationManager Descriptor Change Monitor Thread", pamProxy, descriptorChangeMonitorInterval, maxRetriedStarts); monitor.setContextClassLoader(getClass().getClassLoader()); monitor.start(); log.info("PortletApplicationManager Descriptor Change Monitor started!"); } catch (Exception e) { log.warn("Unable to start PortletApplicationManager Descriptor Change Monitor: "+ e.toString(), e); monitor.safeStop(); monitor = null; } } started = true; }
public void stop() { started = false; if (monitor != null) { monitor.safeStop(); monitor = null; } }