summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java
index 6c3d2be5..f7ed44e3 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/MetaDataCache.java
@@ -1,6 +1,5 @@
package org.openslx.dozmod.thrift.cache;
-import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
@@ -51,19 +50,20 @@ public class MetaDataCache {
CACHE_TIME_MS) {
@Override
protected List<Location> update() throws TException {
- List<Location> testLocationList = new ArrayList<Location>();
- testLocationList.add(new Location(1, "RZ - Raum 100"));
- testLocationList.add(new Location(2, "RZ - Raum 101"));
- testLocationList.add(new Location(3, "RZ - Raum 113"));
- testLocationList.add(new Location(4, "RZ - Raum 114"));
- return testLocationList;
// enable this code when the server call is implemented
-// try {
-// return ThriftManager.getSatClient().getLocations();
-// } catch (TException e) {
-// LOGGER.warn("Could not get location list from satellite, trying master for backup...", e);
-// }
-// return null; // HACK
+ try {
+ return ThriftManager.getSatClient().getLocations();
+ } catch (TException e) {
+ LOGGER.warn("Could not get locations list from the satellite...", e);
+ }
+ // querying masterserver does not make sense for locations
+ return null;
+// List<Location> testLocationList = new ArrayList<Location>();
+// testLocationList.add(new Location(1, "RZ - Raum 100"));
+// testLocationList.add(new Location(2, "RZ - Raum 101"));
+// testLocationList.add(new Location(3, "RZ - Raum 113"));
+// testLocationList.add(new Location(4, "RZ - Raum 114"));
+// return testLocationList;
}
};