diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTask.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTask.java index 36c6c6127dc81cae0be2245338693bc166d87d47..1729ecddd252263030ad9ede4cef49f5ce69f58b 100644 --- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTask.java +++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTask.java @@ -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) diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/DatabaseBasedDataSetPathsInfoFeederTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/DatabaseBasedDataSetPathsInfoFeederTest.java index 4fdd15625973adca0fc715891c2cd774a091f9b7..f285d7c5bef839da9b13a5c06af57e3640ef9623 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/DatabaseBasedDataSetPathsInfoFeederTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/DatabaseBasedDataSetPathsInfoFeederTest.java @@ -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; diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTaskTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTaskTest.java index 3a7beb19cdb7528be964b65c43c99239f1101959..d50de359250cdf7f08f05eb2fd0eb6d1994a6818 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTaskTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/path/PathInfoDatabaseFeedingTaskTest.java @@ -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;