@Override public void setupAttemptOutput(OutputAttemptContext context) throws IOException, InterruptedException { core.setupAttemptOutput(context); }
@Override public void setupAttemptOutput(OutputAttemptContext 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.setupAttemptOutput(context); } finally { heartbeat.unregister(counter); } }
try { DirectDataSource repo = repository.getRelatedDataSource(containerPath); repo.setupAttemptOutput(context); } catch (IOException e) { LOG.error(MessageFormat.format(
try { dataSource.setupTransactionOutput(outputContext.getTransactionContext()); dataSource.setupAttemptOutput(outputContext); Counter counter = new Counter(); ModelOutput<T> output = dataSource.openOutput(outputContext, definition, basePath, outputPath, counter);
ds.setupAttemptOutput(aContext); try (ModelOutput<StringBuilder> output = ds.openOutput( aContext,