use of org.olat.core.util.coordinate.CoordinatorManager in project OpenOLAT by OpenOLAT.
the class AllCachesController method loadModel.
private void loadModel() {
Set<String> names = new HashSet<>();
List<CacheInfos> infos = new ArrayList<>();
// our cache first
try {
CoordinatorManager coordinator = CoreSpringFactory.getImpl(CoordinatorManager.class);
Cacher cacher = coordinator.getCoordinator().getCacher();
loadModel(infos, names, cacher.getCacheContainer());
} catch (Exception e) {
log.error("", e);
}
try {
loadModel(infos, names, ((DBImpl) DBFactory.getInstance()).getCacheContainer());
} catch (Exception e) {
log.error("", e);
}
tdm = new AllCachesTableDataModel(infos);
tableCtr.setTableDataModel(tdm);
}
use of org.olat.core.util.coordinate.CoordinatorManager in project openolat by klemens.
the class AllCachesController method loadModel.
private void loadModel() {
Set<String> names = new HashSet<>();
List<CacheInfos> infos = new ArrayList<>();
// our cache first
try {
CoordinatorManager coordinator = CoreSpringFactory.getImpl(CoordinatorManager.class);
Cacher cacher = coordinator.getCoordinator().getCacher();
loadModel(infos, names, cacher.getCacheContainer());
} catch (Exception e) {
log.error("", e);
}
try {
loadModel(infos, names, ((DBImpl) DBFactory.getInstance()).getCacheContainer());
} catch (Exception e) {
log.error("", e);
}
tdm = new AllCachesTableDataModel(infos);
tableCtr.setTableDataModel(tdm);
}
use of org.olat.core.util.coordinate.CoordinatorManager in project OpenOLAT by OpenOLAT.
the class ICalFileCalendarManagerTest method emptyCalendarCache.
private final void emptyCalendarCache() {
CoordinatorManager coordinator = CoreSpringFactory.getImpl(CoordinatorManager.class);
Cacher cacher = coordinator.getCoordinator().getCacher();
EmbeddedCacheManager cm = cacher.getCacheContainer();
cm.getCache("CalendarManager@calendar").clear();
}
use of org.olat.core.util.coordinate.CoordinatorManager in project openolat by klemens.
the class ICalFileCalendarManagerTest method emptyCalendarCache.
private final void emptyCalendarCache() {
CoordinatorManager coordinator = CoreSpringFactory.getImpl(CoordinatorManager.class);
Cacher cacher = coordinator.getCoordinator().getCacher();
EmbeddedCacheManager cm = cacher.getCacheContainer();
cm.getCache("CalendarManager@calendar").clear();
}
Aggregations