src/main/java/edu/ucla/library/bucketeer/handlers/LoadCsvHandler.java
private void markItemFailed(final Item aItem, final File aSource) {
        if (LOGGER.isWarnEnabled()) {
            final long maxFileSize = myConfig.getLong(Config.MAX_SOURCE_SIZE, DEFAULT_MAX_FILE_SIZE);
            final String fileSize = FileUtils.sizeFromBytes(aSource.length(), true);
            final String maxSize = FileUtils.sizeFromBytes(maxFileSize, true);

            LOGGER.warn(MessageCodes.BUCKETEER_501, aSource, fileSize, maxSize);
        }

        aItem.setWorkflowState(WorkflowState.FAILED);
    }
/**
     * Marks an item as failed because we do not have enough information to do something with it.
     *
     * @param aItem An item in the job being processed
     * @param aSource A source file that's being converted
     */
Marks an item as failed because we do not have enough information to do something with it.
@param aItem An item in the job being processed
@param aSource A source file that's being converted
Marks an item as failed because we do not have enough information to do something with it . @param aItem An item in the job being processed @param aSource A source file that ' s being converted
private void markItemFailed(final Item aItem, final File aSource) {
        if (LOGGER.isWarnEnabled()) {
            final long maxFileSize = myConfig.getLong(Config.MAX_SOURCE_SIZE, DEFAULT_MAX_FILE_SIZE);
            final String fileSize = FileUtils.sizeFromBytes(aSource.length(), true);
            final String maxSize = FileUtils.sizeFromBytes(maxFileSize, true);
            LOGGER.warn(MessageCodes.BUCKETEER_501, aSource, fileSize, maxSize);
        }
        aItem.setWorkflowState(WorkflowState.FAILED);
    }
private void markItemFailed ( final Item aItem , final File aSource ) { if ( LOGGER . isWarnEnabled ( ) ) { final long maxFileSize = myConfig . getLong ( Config . MAX_SOURCE_SIZE , DEFAULT_MAX_FILE_SIZE ) ; final String fileSize = FileUtils . sizeFromBytes ( aSource . length ( ) , true ) ; final String maxSize = FileUtils . sizeFromBytes ( maxFileSize , true ) ; LOGGER . warn ( MessageCodes . BUCKETEER_501 , aSource , fileSize , maxSize ) ; } aItem . setWorkflowState ( WorkflowState . FAILED ) ; }
Marks an item as failed because we do not have enough information to do something with it.
Marks an item as failed because we do not have enough information to do something with it .