/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * @return the report for this publish job */ public I_CmsReport getReport() { return m_publishJob.getPublishReport(); } }
/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * @return the report for this publish job */ public I_CmsReport getReport() { return m_publishJob.getPublishReport(); } }
/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * @return the report for this publish job * * @see CmsPublishJobEnqueued#getReport() */ public I_CmsReport getReport() { return m_publishJob.getPublishReport(); }
/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * @return the report for this publish job * * @see CmsPublishJobEnqueued#getReport() */ public I_CmsReport getReport() { return m_publishJob.getPublishReport(); }
/** * Fires a remove event to all listeners.<p> * * @param publishJob the publish job that is going to be removed. */ protected void fireRemove(CmsPublishJobFinished publishJob) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_PUBLISH_JOB_REMOVE_0)); } for (Iterator<I_CmsPublishEventListener> it = iterator(); it.hasNext();) { I_CmsPublishEventListener listener = it.next(); try { listener.onRemove(publishJob); } catch (Throwable t) { // catch every thing including runtime exceptions if (LOG.isErrorEnabled()) { LOG.error( Messages.get().getBundle().key( Messages.ERR_PUBLISH_JOB_REMOVE_ERROR_1, listener.getClass().getName()), t); } if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t); } } } }
/** * Fires an enqueue event to all listeners.<p> * * @param publishJob the publish job that is going to be enqueued. */ protected void fireEnqueued(CmsPublishJobBase publishJob) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_PUBLISH_JOB_ENQUEUE_0)); } for (Iterator it = iterator(); it.hasNext();) { I_CmsPublishEventListener listener = (I_CmsPublishEventListener)it.next(); try { listener.onEnqueue(publishJob); } catch (Throwable t) { // catch every thing including runtime exceptions if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key( Messages.ERR_PUBLISH_JOB_ENQUEUE_ERROR_1, listener.getClass().getName()), t); } if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t); } } } }
/** * Fires a remove event to all listeners.<p> * * @param publishJob the publish job that is going to be removed. */ protected void fireRemove(CmsPublishJobFinished publishJob) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_PUBLISH_JOB_REMOVE_0)); } for (Iterator it = iterator(); it.hasNext();) { I_CmsPublishEventListener listener = (I_CmsPublishEventListener)it.next(); try { listener.onRemove(publishJob); } catch (Throwable t) { // catch every thing including runtime exceptions if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key( Messages.ERR_PUBLISH_JOB_REMOVE_ERROR_1, listener.getClass().getName()), t); } if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t); } } } }
/** * Fires an enqueue event to all listeners.<p> * * @param publishJob the publish job that is going to be enqueued. */ protected void fireEnqueued(CmsPublishJobBase publishJob) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_PUBLISH_JOB_ENQUEUE_0)); } for (Iterator<I_CmsPublishEventListener> it = iterator(); it.hasNext();) { I_CmsPublishEventListener listener = it.next(); try { listener.onEnqueue(publishJob); } catch (Throwable t) { // catch every thing including runtime exceptions if (LOG.isErrorEnabled()) { LOG.error( Messages.get().getBundle().key( Messages.ERR_PUBLISH_JOB_ENQUEUE_ERROR_1, listener.getClass().getName()), t); } if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t); } } } }
/** * Signalizes the start of the publish job.<p> * Actually sets the starting time, writes the report header and sets the running thread uuid.<p> * * @param threadUUID the running thread uuid */ protected void start(CmsUUID threadUUID) { if (m_startTime != 0) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_PUBLISH_JOB_ALREADY_STARTED_0)); } m_startTime = System.currentTimeMillis(); m_threadUUID = threadUUID; if (getPublishReport() instanceof CmsPublishReport) { ((CmsPublishReport)m_publishReport).start(); } } }
/** * Signalizes the start of the publish job.<p> * Actually sets the starting time, writes the report header and sets the running thread uuid.<p> * * @param threadUUID the running thread uuid */ protected void start(CmsUUID threadUUID) { if (m_startTime != 0) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_PUBLISH_JOB_ALREADY_STARTED_0)); } m_startTime = System.currentTimeMillis(); m_threadUUID = threadUUID; if (getPublishReport() instanceof CmsPublishReport) { ((CmsPublishReport)m_publishReport).start(); } } }
t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
eventData.put(I_CmsEventListener.KEY_REPORT, publishJob.getPublishReport()); eventData.put( I_CmsEventListener.KEY_PUBLISHID, publishJob.getPublishReport().println(t); } finally { if (dbc != null) {
listener.getClass().getName()), t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
listener.getClass().getName()), t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
eventData.put(I_CmsEventListener.KEY_REPORT, publishJob.getPublishReport()); eventData.put( I_CmsEventListener.KEY_PUBLISHID, } catch (Throwable t) { publishJob.getPublishReport().println(t); } finally { try {
listener.getClass().getName()), t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
t); if (publishJob.m_publishJob.getPublishReport() != null) { publishJob.m_publishJob.getPublishReport().println(t);
m_report = m_publishJob.getPublishReport();
m_report = m_publishJob.getPublishReport();