Skip to content

Commit

Permalink
removal of FileChecker #1
Browse files Browse the repository at this point in the history
  • Loading branch information
marlewe committed Dec 18, 2023
1 parent dd04954 commit eb14fa9
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 840 deletions.
2 changes: 0 additions & 2 deletions src/main/config/logback.xml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
<appender-ref ref="FILE" />
</root>

<logger name="org.icatproject.ids.FileChecker" level="INFO" />

</configuration>
6 changes: 0 additions & 6 deletions src/main/config/run.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ storageUnit = dataset
tidyBlockSize = 500
!enableWrite = true

# File checking properties. Deprecated
!filesCheck.parallelCount = 5
!filesCheck.gapSeconds = 5
!filesCheck.lastIdFile = ${HOME}/ids/lastIdFile
!filesCheck.errorLog = ${HOME}/ids/errorLog

# Link properties. Deprecated
!linkLifetimeSeconds = 3600

Expand Down
350 changes: 0 additions & 350 deletions src/main/java/org/icatproject/ids/FileChecker.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
<appender-ref ref="FILE" />
</root>

<logger name="org.icatproject.ids.FileChecker" level="INFO" />

</configuration>
13 changes: 0 additions & 13 deletions src/main/scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ if arg == "INSTALL":
if not (idsProperties.get("delayDatafileOperationsSeconds")):
abort("delayDatafileOperationsSeconds is not set in run.properties")

if int(idsProperties.get("filesCheck.parallelCount", 0)) > 0:
warnings.warn("The FileChecker is deprecated and slated for removal in ids.server 3.0")
if not idsProperties.get("filesCheck.gapSeconds"): abort("filesCheck.gapSeconds is not set in run.properties")
if not idsProperties.get("filesCheck.lastIdFile"): abort("filesCheck.lastIdFile is not set in run.properties")
parent = os.path.dirname(os.path.expandvars(idsProperties["filesCheck.lastIdFile"]))
if not os.path.exists(parent):
abort("Please create directory " + parent + " for filesCheck.lastIdFile specified in run.properties")
if not idsProperties.get("filesCheck.errorLog"): abort("filesCheck.errorLog is not set in run.properties")
parent = os.path.dirname(os.path.expandvars(idsProperties["filesCheck.errorLog"]))
if not os.path.exists(parent):
abort("Please create directory " + parent + " for filesCheck.errorLog specified in run.properties")
if not idsProperties.get("reader"): abort("reader is not set in run.properties")

if int(idsProperties.get("linkLifetimeSeconds", 0)) > 0:
warnings.warn("The getLink API call is deprecated and slated for removal in ids.server 3.0")

Expand Down
Loading

0 comments on commit eb14fa9

Please sign in to comment.