From 4cdaaae2839510af26569c45760934d0c7f36bd9 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Mon, 18 Apr 2011 14:17:49 +0000 Subject: [PATCH] LMS-2172 EVENTS table added to database. Example configuration for deletion/migration/registration added to service.properties SVN: 20945 --- datastore_server/dist/etc/service.properties | 22 ++++++++++++++++ datastore_server/etc/service.properties | 25 ++++++++++++++++++- .../source/sql/postgresql/001/schema-001.sql | 5 ++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/datastore_server/dist/etc/service.properties b/datastore_server/dist/etc/service.properties index 69f74772688..1e1c0f7f092 100644 --- a/datastore_server/dist/etc/service.properties +++ b/datastore_server/dist/etc/service.properties @@ -277,6 +277,28 @@ main-thread.incoming-data-completeness-condition = marker-file # <data-set-location>/original/UNKNOWN-NAME-20100307-1350 #hierarchical-storage-updater.link-from-first-child.<dataset-type> = true +# Maintenance task (performed only once) to create paths of existing data sets in pathinfo database +path-info-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask +path-info-feeding.execute-only-once = true + +# Maintenance task for deleting entries in pathinfo database after deletion of data sets +path-info-deletion.class = ch.systemsx.cisd.etlserver.plugins.DeleteFromExternalDBMaintenanceTask +path-info-deletion.interval = 120 +path-info-deletion.data-source = path-info-db +path-info-deletion.data-set-perm-id = CODE + +# Maintenance task for post registration of all paths of a freshly registered data set to be fed into pathinfo database +post-registration.class = ch.systemsx.cisd.etlserver.postregistration.PostRegistrationMaintenanceTask +post-registration.interval = 30 +post-registration.cleanup-tasks-folder = targets/cleanup-tasks +# The following date should the day when the DDS is started up the first time with PathInfoDatabaseFeedingTask. +# After PathInfoDatabaseFeedingTask has been performed it can be removed and the following line can be deleted. +post-registration.ignore-data-sets-before-date = 2011-04-18 +post-registration.last-seen-data-set-file = ../../last-seen-data-set-for-postregistration.txt +post-registration.post-registration-tasks = pathinfo-feeding +post-registration.pathinfo-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask + + # ---------------- Plugin properties # The extractor class to use for code extraction diff --git a/datastore_server/etc/service.properties b/datastore_server/etc/service.properties index 62d5bb8ce84..8fbde166384 100644 --- a/datastore_server/etc/service.properties +++ b/datastore_server/etc/service.properties @@ -399,4 +399,27 @@ auto-archiver.start = 23:00 # only data sets that are older than specified number of days will be archived (default = 0) #auto-archiver.older-than = 90 # fully qualified class name of a policy that additionally filters data sets to be filtered -#auto-archiver.policy.class = ch.systemsx.cisd.etlserver.plugins.DummyAutoArchiverPolicy \ No newline at end of file +#auto-archiver.policy.class = ch.systemsx.cisd.etlserver.plugins.DummyAutoArchiverPolicy + +# Maintenance task (performed only once) to create paths of existing data sets in pathinfo database +path-info-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask +path-info-feeding.execute-only-once = true + +# Maintenance task for deleting entries in pathinfo database after deletion of data sets +path-info-deletion.class = ch.systemsx.cisd.etlserver.plugins.DeleteFromExternalDBMaintenanceTask +path-info-deletion.interval = 120 +path-info-deletion.data-source = path-info-db +path-info-deletion.data-set-perm-id = CODE + +# Maintenance task for post registration of all paths of a freshly registered data set to be fed into pathinfo database +post-registration.class = ch.systemsx.cisd.etlserver.postregistration.PostRegistrationMaintenanceTask +post-registration.interval = 30 +post-registration.cleanup-tasks-folder = targets/cleanup-tasks +# The following date should the day when the DDS is started up the first time with PathInfoDatabaseFeedingTask. +# After PathInfoDatabaseFeedingTask has been performed it can be removed and the following line can be deleted. +post-registration.ignore-data-sets-before-date = 2011-04-18 +post-registration.last-seen-data-set-file = targets/last-seen-data-set +post-registration.post-registration-tasks = pathinfo-feeding +post-registration.pathinfo-feeding.class = ch.systemsx.cisd.etlserver.path.PathInfoDatabaseFeedingTask + + diff --git a/datastore_server/source/sql/postgresql/001/schema-001.sql b/datastore_server/source/sql/postgresql/001/schema-001.sql index e9819ba2788..6f7bca04ee1 100644 --- a/datastore_server/source/sql/postgresql/001/schema-001.sql +++ b/datastore_server/source/sql/postgresql/001/schema-001.sql @@ -43,3 +43,8 @@ CREATE TABLE DATA_SET_FILES ( CREATE INDEX DATA_SET_FILES_RELATIVE_PATH_IDX ON DATA_SET_FILES (RELATIVE_PATH); CREATE INDEX DATA_SET_FILES_FILE_NAME_IDX ON DATA_SET_FILES (FILE_NAME); + +CREATE TABLE EVENTS ( + LAST_SEEN_DELETION_EVENT_ID TECH_ID NOT NULL +); + -- GitLab