From 6d8c74f97fe4289a984bdc6bd635c71653d5421c Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 26 Jun 2012 12:41:56 +0200 Subject: Refactored GUI into separate module --- .../java/com/c2kernel/persistency/ClusterStorageManager.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/main/java/com/c2kernel/persistency/ClusterStorageManager.java') diff --git a/src/main/java/com/c2kernel/persistency/ClusterStorageManager.java b/src/main/java/com/c2kernel/persistency/ClusterStorageManager.java index 756ac4d..540b807 100644 --- a/src/main/java/com/c2kernel/persistency/ClusterStorageManager.java +++ b/src/main/java/com/c2kernel/persistency/ClusterStorageManager.java @@ -27,12 +27,11 @@ import com.c2kernel.utils.SoftCache; */ public class ClusterStorageManager { HashMap allStores = new HashMap(); - String[] clusterPriority; + String[] clusterPriority = new String[0]; HashMap> clusterWriters = new HashMap>(); HashMap> clusterReaders = new HashMap>(); // we don't need a soft cache for the top level cache - the proxies and entities clear that when reaped HashMap> memoryCache = new HashMap>(); - boolean ready = false; /** * Initialises all ClusterStorage handlers listed by class name in the property "ClusterStorages" @@ -80,7 +79,6 @@ public class ClusterStorageManager { } } clusterReaders.put(ClusterStorage.ROOT, rootStores); // all storages are queried for clusters at the root level - ready = true; } public void close() { @@ -91,7 +89,6 @@ public class ClusterStorageManager { Logger.error(ex); } } - ready = false; } /** @@ -100,11 +97,6 @@ public class ClusterStorageManager { */ private ArrayList findStorages(String clusterType, boolean forWrite) { - if (!ready) { - Logger.error("ClusterStorageManager.findStorages() - called before init!"); - return null; - } - // choose the right cache for readers or writers HashMap> cache; if (forWrite) -- cgit v1.2.3