Skip to content
Snippets Groups Projects
Commit e4faae68 authored by buczekp's avatar buczekp
Browse files

[LMS-1878] minor: renaming (refactoring for easier testing and code extraction - part 1)

SVN: 18562
parent dfd83820
No related branches found
No related tags found
No related merge requests found
......@@ -51,14 +51,14 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.ScriptPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.properties.EntityKind;
/**
* A default {@link IDynamicPropertyEvaluator}.
* A default {@link IBatchDynamicPropertyEvaluator}.
*
* @author Piotr Buczek
*/
final class DefaultDynamicPropertyEvaluator implements IDynamicPropertyEvaluator
final class DefaultBatchDynamicPropertyEvaluator implements IBatchDynamicPropertyEvaluator
{
private static final Logger operationLog = LogFactory.getLogger(LogCategory.OPERATION,
DefaultDynamicPropertyEvaluator.class);
DefaultBatchDynamicPropertyEvaluator.class);
private static String ID_PROPERTY_NAME = "id";
......@@ -80,7 +80,7 @@ final class DefaultDynamicPropertyEvaluator implements IDynamicPropertyEvaluator
private final int batchSize;
DefaultDynamicPropertyEvaluator(final int batchSize)
DefaultBatchDynamicPropertyEvaluator(final int batchSize)
{
assert batchSize > -1 : "Batch size can not be negative.";
this.batchSize = batchSize;
......
......@@ -52,7 +52,7 @@ public final class DynamicPropertyEvaluationRunnable extends HibernateDaoSupport
private static final Logger notificationLog = LogFactory.getLogger(LogCategory.NOTIFY,
DynamicPropertyEvaluationRunnable.class);
private final IDynamicPropertyEvaluator evaluator;
private final IBatchDynamicPropertyEvaluator evaluator;
private final IExtendedBlockingQueue<DynamicPropertyEvaluationOperation> evaluatorQueue;
......@@ -63,7 +63,7 @@ public final class DynamicPropertyEvaluationRunnable extends HibernateDaoSupport
{
this.fullTextIndexUpdateScheduler = fullTextIndexUpdateScheduler;
setSessionFactory(sessionFactory);
evaluator = new DefaultDynamicPropertyEvaluator(BATCH_SIZE);
evaluator = new DefaultBatchDynamicPropertyEvaluator(BATCH_SIZE);
final File queueFile = getEvaluatorQueueFile();
operationLog.info(String.format("Evaluator queue file: %s.", queueFile.getAbsolutePath()));
......
......@@ -24,12 +24,12 @@ import org.springframework.dao.DataAccessException;
import ch.systemsx.cisd.openbis.generic.shared.dto.IEntityInformationWithPropertiesHolder;
/**
* Each implementation is able to evaluate dynamic properties. After evaluation of properties the
* entities will be reindexed.
* Each implementation is able to evaluate dynamic properties of specified entities in batches.
* After evaluation of properties the entities will be reindexed.
*
* @author Piotr Buczek
*/
public interface IDynamicPropertyEvaluator
public interface IBatchDynamicPropertyEvaluator
{
/**
......
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