List of usage examples for com.liferay.portal.kernel.scheduler SchedulerException SchedulerException
public SchedulerException(Throwable cause)
From source file:com.liferay.portlet.PortletBagFactory.java
License:Open Source License
protected void initScheduler(SchedulerEntry schedulerEntry) throws Exception { String propertyKey = schedulerEntry.getPropertyKey(); if (Validator.isNotNull(propertyKey)) { String triggerValue = null; if (_warFile) { triggerValue = getPluginPropertyValue(propertyKey); } else {//from w ww .j av a 2 s .com triggerValue = PrefsPropsUtil.getString(propertyKey); } if (_log.isDebugEnabled()) { _log.debug("Scheduler property key " + propertyKey + " has trigger value " + triggerValue); } if (Validator.isNull(triggerValue)) { throw new SchedulerException("Property key " + propertyKey + " requires a value"); } schedulerEntry.setTriggerValue(triggerValue); } SchedulerEngineUtil.schedule(schedulerEntry, StorageType.MEMORY_CLUSTERED, _classLoader, 0); }