blob: ea81a452af0f56a9e18440a09aaf482edd0035b5 (
plain) (
tree)
|
|
package org.openslx.bwlp.sat.thrift.cache;
import java.util.List;
import org.apache.thrift.TException;
import org.openslx.bwlp.thrift.iface.OperatingSystem;
import org.openslx.thrifthelper.ThriftManager;
/**
* Holds the list of all known organizations. The list is synchronized with
* the master server.
*/
public class OperatingSystemList extends CacheBase<List<OperatingSystem>> {
private static final OperatingSystemList instance = new OperatingSystemList();
public static List<OperatingSystem> get() {
return instance.getInternal();
}
@Override
protected List<OperatingSystem> getCallback() throws TException {
return ThriftManager.getMasterClient().getOperatingSystems();
// TODO: Store in DB
}
}
|