diff options
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java index 472f2578..898f75e9 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/App.java @@ -43,6 +43,7 @@ import org.openslx.util.AppUtil; import org.openslx.util.GrowingThreadPoolExecutor; import org.openslx.util.PrioThreadFactory; import org.openslx.util.QuickTimer; +import org.openslx.util.QuickTimer.Task; public class App { @@ -144,6 +145,14 @@ public class App { + " Please make sure this server can connect to the internet."); return; } + // Update once an hour + QuickTimer.scheduleAtFixedDelay(new Task() { + public void fire() { + VirtualizerList.get(); + OperatingSystemList.get(); + OrganizationList.get(); + } + }, 3601_000, 3601_000 * 3); // Start file transfer server if (!FileServer.instance().start()) { @@ -152,7 +161,7 @@ public class App { } // Start watch dog to ensure nobody else is messing with the vmstore - QuickTimer.scheduleAtFixedDelay(new StorageUseCheck(), 10000, 60000); + QuickTimer.scheduleAtFixedDelay(new StorageUseCheck(), 10_000, 60_000); // Set a flag that we need to convert userids if applicable DbUser.checkIfLegacyUsersExist(); |