Skip to content
Snippets Groups Projects
Commit 3143ac83 authored by felmer's avatar felmer
Browse files

SP-539, BIS-339: clean ups and improved logging.

SVN: 28586
parent aea8e5e1
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,16 @@ public class PathInfoDatabaseFeedingTask implements IMaintenanceTask, IPostRegis
PropertyUtils.getInt(properties, MAX_NUMBER_OF_CHUNKS_KEY,
DEFAULT_MAX_NUMBER_OF_DATA_SETS);
timeLimit = DateTimeUtils.getDurationInMillis(properties, TIME_LIMIT_KEY, 0);
StringBuilder builder = new StringBuilder(pluginName);
builder.append(" intialized with chunk size = ").append(chunkSize).append(".");
if (timeLimit > 0)
{
builder.append(" Time limit: ").append(DateTimeUtils.renderDuration(timeLimit));
} else if (maxNumerOfChunks > 0)
{
builder.append(" Maximum number of chunks: ").append(maxNumerOfChunks);
}
operationLog.info(builder.toString());
}
private static boolean getComputeChecksumFlag(Properties properties)
......
......@@ -38,8 +38,6 @@ import ch.systemsx.cisd.openbis.common.io.hierarchical_content.DefaultFileBasedH
*/
public class DatabaseBasedDataSetPathsInfoFeederTest extends AbstractFileSystemTestCase
{
private static final Date TIME_STAMP = new Date(4711);
private static final String ROOT_PATH = DatabaseBasedDataSetPathsInfoFeederTest.class.getName();
private Mockery context;
......
......@@ -23,7 +23,6 @@ import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.Properties;
import org.jmock.Expectations;
import org.jmock.Mockery;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment