package jalview.ws.sifts;
+import java.util.Objects;
+
public class SiftsSettings
{
private static boolean mapWithSifts = false;
private static String siftDownloadDirectory;
+ private static int cacheThresholdInDays;
+
+ private static int failSafePIDThreshold;
+
public static boolean isMapWithSifts()
{
return mapWithSifts;
{
SiftsSettings.siftDownloadDirectory = siftDownloadDirectory;
}
+
+ public static int getCacheThresholdInDays()
+ {
+ return cacheThresholdInDays;
+ }
+
+ public static void setCacheThresholdInDays(String cacheThresholdInDays)
+ {
+ Objects.requireNonNull(cacheThresholdInDays);
+ SiftsSettings.cacheThresholdInDays = Integer
+ .valueOf(cacheThresholdInDays);
+ }
+
+ public static int getFailSafePIDThreshold()
+ {
+ return failSafePIDThreshold;
+ }
+
+ public static void setFailSafePIDThreshold(String failSafePIDThreshold)
+ {
+ Objects.requireNonNull(failSafePIDThreshold);
+ SiftsSettings.failSafePIDThreshold = Integer
+ .valueOf(failSafePIDThreshold);
+ }
}