@Override public synchronized void commit() { verifyTaskActive(); checkpoint(); commit(this.checkpoint); this.checkpoint = null; }
private void expireFlowFiles(final Connectable connectable) { // determine if the incoming connections for this Connectable have Expiration configured. boolean expirationConfigured = false; for (final Connection incomingConn : connectable.getIncomingConnections()) { if (FormatUtils.getTimeDuration(incomingConn.getFlowFileQueue().getFlowFileExpiration(), TimeUnit.MILLISECONDS) > 0) { expirationConfigured = true; break; } } // If expiration is not configured... don't bother running through the FlowFileQueue if (!expirationConfigured) { return; } final StandardProcessSession session = createSession(connectable); session.expireFlowFiles(); session.commit(); }
if (batch && rawSession != null) { try { rawSession.commit(); } catch (final RuntimeException re) { logger.error("Unable to commit process session", re);
if (batch) { try { rawSession.commit(); } catch (final Exception e) { final ComponentLog procLog = new SimpleProcessLogger(connectable.getIdentifier(), connectable.getRunnableComponent());