Skip to content
Snippets Groups Projects
Commit df4f11af authored by juanf's avatar juanf
Browse files

SSDM-5975 : Updating DSS workspace and queues defaults

SVN: 38995
parent 55cc2738
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,11 @@ data-store-server-code = DSS1 ...@@ -4,8 +4,11 @@ data-store-server-code = DSS1
# The root directory of the data store # The root directory of the data store
storeroot-dir = data/store storeroot-dir = data/store
# The directory where the command queue file is located; defaults to storeroot-dir # The session workspace is stored in the storage root by default to have the same amount of space available that the final storage and allow atomic moves
commandqueue-dir = session-workspace-root-dir = ${storeroot-dir}/sessionWorkspace
# The directory where the command queue file is located; defaults to storeroot-dir but ideally should be on the same computer as the server on a directory that survives upgrades
commandqueue-dir = ../../datastore_commandqueue
# Port # Port
port = 8444 port = 8444
......
...@@ -31,6 +31,10 @@ public final class CommandQueueLister ...@@ -31,6 +31,10 @@ public final class CommandQueueLister
public static void listQueuedCommand() public static void listQueuedCommand()
{ {
final ConfigParameters configParams = DataStoreServer.getConfigParameters(); final ConfigParameters configParams = DataStoreServer.getConfigParameters();
if (!configParams.getCommandQueueDir().exists())
{
configParams.getCommandQueueDir().mkdirs();
}
DataSetCommandExecutor.listQueuedCommands(configParams.getCommandQueueDir()); DataSetCommandExecutor.listQueuedCommands(configParams.getCommandQueueDir());
} }
} }
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