001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.cache.eh.remote.rest.sax; 020 021public class CacheStatistics { 022 023 024 private double averageGetTime; 025 private int cacheHits; 026 private int diskStoreSize; 027 private int evictionCount; 028 private int inMemoryHits; 029 private int memoryStoreSize; 030 private int misses; 031 private int onDiskHits; 032 private int size; 033 private String statisticsAccuracy; 034 035 /** 036 * @return the averageGetTime 037 */ 038 public double getAverageGetTime() { 039 return averageGetTime; 040 } 041 /** 042 * @param averageGetTime the averageGetTime to set 043 */ 044 public void setAverageGetTime(double averageGetTime) { 045 this.averageGetTime = averageGetTime; 046 } 047 /** 048 * @return the cacheHits 049 */ 050 public int getCacheHits() { 051 return cacheHits; 052 } 053 /** 054 * @param cacheHits the cacheHits to set 055 */ 056 public void setCacheHits(int cacheHits) { 057 this.cacheHits = cacheHits; 058 } 059 /** 060 * @return the diskStoreSize 061 */ 062 public int getDiskStoreSize() { 063 return diskStoreSize; 064 } 065 /** 066 * @param diskStoreSize the diskStoreSize to set 067 */ 068 public void setDiskStoreSize(int diskStoreSize) { 069 this.diskStoreSize = diskStoreSize; 070 } 071 /** 072 * @return the evictionCount 073 */ 074 public int getEvictionCount() { 075 return evictionCount; 076 } 077 /** 078 * @param evictionCount the evictionCount to set 079 */ 080 public void setEvictionCount(int evictionCount) { 081 this.evictionCount = evictionCount; 082 } 083 /** 084 * @return the inMemoryHits 085 */ 086 public int getInMemoryHits() { 087 return inMemoryHits; 088 } 089 /** 090 * @param inMemoryHits the inMemoryHits to set 091 */ 092 public void setInMemoryHits(int inMemoryHits) { 093 this.inMemoryHits = inMemoryHits; 094 } 095 /** 096 * @return the memoryStoreSize 097 */ 098 public int getMemoryStoreSize() { 099 return memoryStoreSize; 100 } 101 /** 102 * @param memoryStoreSize the memoryStoreSize to set 103 */ 104 public void setMemoryStoreSize(int memoryStoreSize) { 105 this.memoryStoreSize = memoryStoreSize; 106 } 107 /** 108 * @return the misses 109 */ 110 public int getMisses() { 111 return misses; 112 } 113 /** 114 * @param misses the misses to set 115 */ 116 public void setMisses(int misses) { 117 this.misses = misses; 118 } 119 /** 120 * @return the onDiskHits 121 */ 122 public int getOnDiskHits() { 123 return onDiskHits; 124 } 125 /** 126 * @param onDiskHits the onDiskHits to set 127 */ 128 public void setOnDiskHits(int onDiskHits) { 129 this.onDiskHits = onDiskHits; 130 } 131 /** 132 * @return the size 133 */ 134 public int getSize() { 135 return size; 136 } 137 /** 138 * @param size the size to set 139 */ 140 public void setSize(int size) { 141 this.size = size; 142 } 143 /** 144 * @return the statisticsAccuracy 145 */ 146 public String getStatisticsAccuracy() { 147 return statisticsAccuracy; 148 } 149 /** 150 * @param statisticsAccuracy the statisticsAccuracy to set 151 */ 152 public void setStatisticsAccuracy(String statisticsAccuracy) { 153 this.statisticsAccuracy = statisticsAccuracy; 154 } 155 156}