@Override public void commitTransactionOutput(OutputTransactionContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.commitTransactionOutput(context); } finally { heartbeat.unregister(counter); } }
@Override public void setupTransactionOutput(OutputTransactionContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.setupTransactionOutput(context); } finally { heartbeat.unregister(counter); } }
@Override public void cleanupTransactionOutput(OutputTransactionContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.cleanupTransactionOutput(context); } finally { heartbeat.unregister(counter); } }
containerPath)).initCause(e); context.getCounter().add(1);
containerPath)).initCause(e); context.getCounter().add(1);
@Override public void commitTransactionOutput(OutputTransactionContext context) throws IOException, InterruptedException { if (profile.isOutputStaging()) { FileSystem fs = profile.getFileSystem(); Path staging = getStagingOutput(context); Path target = profile.getFileSystemPath(); if (LOG.isDebugEnabled()) { LOG.debug(MessageFormat.format( "Commit staging area (id={0}, path={1})", //$NON-NLS-1$ profile.getId(), staging)); } HadoopDataSourceUtil.move(context.getCounter(), fs, staging, target, profile.getRollforwardThreads()); } }
pattern)); boolean succeed = repo.delete(basePath, resources, true, context.getCounter()); if (LOG.isDebugEnabled()) { LOG.debug(MessageFormat.format(
containerPath)).initCause(e); context.getCounter().add(1);