Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
97aef935
Commit
97aef935
authored
13 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2739 Add a switch to turn on/off the pre-staging folder. It is now off by default
SVN: 24238
parent
7e21c408
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/AbstractOmniscientTopLevelDataSetRegistrator.java
+16
-4
16 additions, 4 deletions
...strator/AbstractOmniscientTopLevelDataSetRegistrator.java
with
16 additions
and
4 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/AbstractOmniscientTopLevelDataSetRegistrator.java
+
16
−
4
View file @
97aef935
...
...
@@ -244,6 +244,11 @@ public abstract class AbstractOmniscientTopLevelDataSetRegistrator<T extends Dat
}
/**
* Should registration take advantage of the prestaging area?
*/
private
final
static
boolean
USE_PRE_STAGING
=
false
;
public
static
class
NoOpDelegate
implements
ITopLevelDataSetRegistratorDelegate
{
...
...
@@ -340,11 +345,18 @@ public abstract class AbstractOmniscientTopLevelDataSetRegistrator<T extends Dat
markerFileCleanupAction
=
new
DoNothingDelegatedAction
();
}
// Make a hardlink copy of the file
File
copyOfIncoming
=
copyIncomingFileToPreStaging
(
incomingDataSetFile
);
PostRegistrationCleanUpAction
cleanupAction
=
new
PostRegistrationCleanUpAction
(
incomingDataSetFile
,
copyOfIncoming
,
markerFileCleanupAction
);
if
(
USE_PRE_STAGING
)
{
// Make a hardlink copy of the file
File
copyOfIncoming
=
copyIncomingFileToPreStaging
(
incomingDataSetFile
);
PostRegistrationCleanUpAction
cleanupAction
=
new
PostRegistrationCleanUpAction
(
incomingDataSetFile
,
copyOfIncoming
,
markerFileCleanupAction
);
handle
(
copyOfIncoming
,
null
,
new
NoOpDelegate
(),
cleanupAction
);
handle
(
copyOfIncoming
,
null
,
new
NoOpDelegate
(),
cleanupAction
);
}
else
{
handle
(
incomingDataSetFile
,
null
,
new
NoOpDelegate
(),
markerFileCleanupAction
);
}
}
private
File
copyIncomingFileToPreStaging
(
File
incomingDataSetFile
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment