]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterCollectorSupportImpl.java
Cluster loading problem fix made by Antti
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / ClusterCollectorSupportImpl.java
index 3c6d0eabe3ada0a5cd7b01d1d62a3ae59083c6de..2c8e43c12b0b20c6a4abb234b69de92ee23cda21 100644 (file)
@@ -1,39 +1,39 @@
-package fi.vtt.simantics.procore.internal;\r
-\r
-import org.simantics.db.service.ClusterCollectorPolicy;\r
-import org.simantics.db.service.ClusterCollectorPolicy.CollectorCluster;\r
-\r
-class ClusterCollectorSupportImpl implements ClusterCollectorSupport {\r
-\r
-       private final ClusterTable clusterTable;\r
-\r
-       ClusterCollectorSupportImpl(ClusterTable clusterTable) {\r
-               this.clusterTable = clusterTable;\r
-       }\r
-\r
-       @Override\r
-       public void setPolicy(ClusterCollectorPolicy policy) {\r
-               clusterTable.setCollectorPolicy(policy);\r
-       }\r
-       \r
-       @Override\r
-       public int getCurrentSize() {\r
-               return (int)this.clusterTable.getSizeInBytes();\r
-       }\r
-       \r
-       @Override\r
-       public long getClusterSize(CollectorCluster id) {\r
-           return clusterTable.getClusterByClusterId(id.getClusterId()).getCachedSize();\r
-       }\r
-       \r
-       @Override\r
-       public Iterable<CollectorCluster> getResidentClusters() {\r
-               return clusterTable.importanceMap.values();\r
-       }\r
-\r
-       @Override\r
-       public void release(CollectorCluster id) {\r
-               clusterTable.release(id);\r
-       }\r
-       \r
+package fi.vtt.simantics.procore.internal;
+
+import org.simantics.db.service.ClusterCollectorPolicy;
+import org.simantics.db.service.ClusterCollectorPolicy.CollectorCluster;
+
+class ClusterCollectorSupportImpl implements ClusterCollectorSupport {
+
+       private final ClusterTable clusterTable;
+
+       ClusterCollectorSupportImpl(ClusterTable clusterTable) {
+               this.clusterTable = clusterTable;
+       }
+
+       @Override
+       public void setPolicy(ClusterCollectorPolicy policy) {
+               clusterTable.setCollectorPolicy(policy);
+       }
+       
+       @Override
+       public int getCurrentSize() {
+               return (int)this.clusterTable.getSizeInBytes();
+       }
+       
+       @Override
+       public long getClusterSize(CollectorCluster id) {
+           return clusterTable.getClusterByClusterId(id.getClusterId()).getCachedSize();
+       }
+       
+       @Override
+       public Iterable<CollectorCluster> getResidentClusters() {
+               return clusterTable.importanceMap.values();
+       }
+
+       @Override
+       public void release(CollectorCluster id) {
+               clusterTable.release(id);
+       }
+       
 }
\ No newline at end of file