1 20 package org.enhydra.dods.cache; 21 22 import org.enhydra.dods.statistics.Statistics; 23 import org.enhydra.dods.exceptions.CacheObjectException; 24 import com.lutris.util.Config; 25 26 35 public abstract class ConfigurationAdministration { 36 37 49 public abstract CacheAdministration getCacheAdministration(int cacheType); 50 51 58 public abstract String getInitialQueryCache(); 59 60 67 protected abstract void setInitialQueryCache(String initQ); 68 69 74 public abstract Statistics getStatistics(); 75 76 79 public abstract void refreshStatistics(); 80 81 91 public abstract void checkFull(); 92 93 102 public abstract boolean isFull(); 103 104 113 public abstract String getCacheType(); 114 115 125 public abstract int getLevelOfCaching(); 126 127 134 public abstract TableConfiguration getTableConfiguration(); 135 136 151 public abstract double getReserveFactor(); 152 153 168 protected abstract void setReserveFactor(double res); 169 170 175 public abstract boolean isDisabled(); 176 177 180 public abstract double getCachePercentage(); 181 182 protected abstract void setCachePercentage(double cp); 183 184 185 188 public abstract int getInitialCacheFetchSize() ; 189 190 193 public abstract int getInitialDSCacheSize() ; 194 195 198 public abstract void setInitialCacheFetchSize(int i); 199 200 201 204 public abstract void setInitialDSCacheSize(int i) ; 205 206 207 208 209 public abstract void readConfiguration(Config tableConfig, Config cacheConfig, String dbName) throws CacheObjectException; 210 } 211 | Popular Tags |