Skip to content
Snippets Groups Projects
Commit 4db36f40 authored by felmer's avatar felmer
Browse files

SSDM-1324: Rename property 'data-set-command-executor-mapping' to...

SSDM-1324: Rename property 'data-set-command-executor-mapping' to 'data-set-command-queue-mapping'. Explain new property by comments in service.properties of the distribution.

SVN: 33010
parent c30b8c6f
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,12 @@ import ch.systemsx.cisd.openbis.generic.shared.util.UuidUtil;
public class DataStoreService extends AbstractServiceWithLogger<IDataStoreService> implements
IDataStoreServiceInternal, InitializingBean
{
private static final String COPYING_TO_ARCHIVE_PROCESSING_PLUGIN_KEY = "Copying data sets to archive";
private static final String ARCHIVING_PROCESSING_PLUGIN_KEY = "Archiving";
private static final String UNARCHIVING_PROCESSING_PLUGIN_KEY = "Unarchiving";
private final SessionTokenManager sessionTokenManager;
private final OpenbisSessionTokenCache sessionTokenCache;
......@@ -320,10 +326,9 @@ public class DataStoreService extends AbstractServiceWithLogger<IDataStoreServic
public void unarchiveDatasets(String sessionToken, String userSessionToken,
List<DatasetDescription> datasets, String userId, String userEmailOrNull)
{
String description = "Unarchiving";
IProcessingPluginTask task = new UnarchiveProcessingPluginTask(getArchiverPlugin());
scheduleTask(sessionToken, userSessionToken, description, task, datasets, userId,
scheduleTask(sessionToken, userSessionToken, UNARCHIVING_PROCESSING_PLUGIN_KEY, task, datasets, userId,
userEmailOrNull);
}
......@@ -339,12 +344,10 @@ public class DataStoreService extends AbstractServiceWithLogger<IDataStoreServic
List<DatasetDescription> datasets, String userId, String userEmailOrNull,
boolean removeFromDataStore)
{
String description = removeFromDataStore ? "Archiving" : "Copying data sets to archive";
IProcessingPluginTask task =
new ArchiveProcessingPluginTask(getArchiverPlugin(), removeFromDataStore);
String description = removeFromDataStore ? ARCHIVING_PROCESSING_PLUGIN_KEY : COPYING_TO_ARCHIVE_PROCESSING_PLUGIN_KEY;
IProcessingPluginTask task = new ArchiveProcessingPluginTask(getArchiverPlugin(), removeFromDataStore);
scheduleTask(sessionToken, userSessionToken, description, task, datasets, userId,
userEmailOrNull);
scheduleTask(sessionToken, userSessionToken, description, task, datasets, userId, userEmailOrNull);
}
@Override
......
......@@ -105,7 +105,7 @@
</bean>
<bean id="data-set-command-executor-provider" class="ch.systemsx.cisd.openbis.dss.generic.server.KeyBasedDataSetCommandExecutorProvider">
<constructor-arg value="${data-set-command-executor-mapping}"/>
<constructor-arg value="${data-set-command-queue-mapping}"/>
<constructor-arg value="${commandqueue-dir}"/>
</bean>
......
......@@ -15,9 +15,21 @@ incoming-root-dir = ${root-dir}
# Cache for data set files from other Data Store Servers
cache-workspace-folder = ../../data/dss-cache
# The directory where the command queue file is located; defaults to storeroot-dir
# The directory where the command queue files are located; defaults to storeroot-dir
commandqueue-dir =
# Comma-separated list of definitions of additional queues for processing processing plugins.
# Each entry is of the form <queue name>:<regular expression>
# A corresponding persistent queue is created. All processing plugins with a key matching the corresponding
# regular expression are associated with the corresponding queue.
#
# The key of a processing plugin is its core-plugin name which is the name of the folder containing
# 'plugin.properties'.
#
# In case of archiving is enabled the following three processing plugins are defined:
# 'Archiving', 'Copying data sets to archive', and 'Unarchiving'
#data-set-command-queue-mapping = archiving:Archiving|Copying data sets to archive
# Port
port = 8444
use-ssl = true
......
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