1 22 package org.enhydra.dods.statistics; 23 24 import java.util.Date ; 25 26 34 public interface Statistics { 35 36 40 public static final int TABLE_STATISTICS = 0; 41 42 47 public static final int CACHE_STATISTICS = 1; 48 49 54 public static final int QUERY_CACHE_STATISTICS = 2; 55 56 64 public int getStatisticsType(); 65 66 71 public int getInsertNum(); 72 73 79 public void setInsertNum(int newInsertNum); 80 81 84 public void incrementInsertNum(); 85 86 91 public int getUpdateNum(); 92 93 99 public void setUpdateNum(int newUpdateNum); 100 101 104 public void incrementUpdateNum(); 105 106 111 public int getDeleteNum(); 112 113 119 public void setDeleteNum(int newDeleteNum); 120 121 124 public void incrementDeleteNum(); 125 126 132 public int getDMLNum(); 133 134 139 public int getLazyLoadingNum(); 140 141 147 public void setLazyLoadingNum(int newLazyLoadingNum); 148 149 152 public void incrementLazyLoadingNum(); 153 154 159 public Date getStartTime(); 160 161 166 public void setStartTime(Date startTime); 167 168 173 public Date getStopTime(); 174 175 180 public void setStopTime(Date stopTime); 181 182 185 public void stopTime(); 186 187 194 public int getQueryNum(); 195 196 204 public void setQueryNum(int newQueryNum); 205 206 211 public void incrementQueryNum(); 212 213 220 public int getQueryByOIdNum(); 221 222 230 public void setQueryByOIdNum(int newQueryByOIdNum); 231 232 237 public void incrementQueryByOIdNum(); 238 239 246 public int getQueryAverageTime(); 247 248 255 public void updateQueryAverageTime(int newTime); 256 257 264 public int getQueryByOIdAverageTime(); 265 266 275 public void updateQueryByOIdAverageTime(int newTime, int no); 276 277 280 public void clear(); 281 282 300 public CacheStatistics getCacheStatistics(int type); 301 } 302 | Popular Tags |