// constructor public FlowSLA(UInt32 flowID) { flowCacheSize = 0; flowCacheSizeUsedBytes = 0; cacheEntries = new LinkedList<FileCacheElement>(); cacheAccessesTotalHits = 0; cacheAccessesTotal = 0; flowBytesAccessed = 0; cacheTotalEvictions = 0; this.flowID = flowID; this.ghostCache = null; }
public bool destroyGhostCache() { if (this.ghostCache != null) { this.ghostCache = null; return true; } return false; }
public bool createGhostCache(UInt32 ioRequestSize, UInt64 maxCacheSizeBytes, bool noisyOutput) { if (this.ghostCache != null) // If a ghost cache already exists, don't make a new one { return false; } else { this.ioRequestSize = ioRequestSize; this.ghostCache = new MattsonGhostCache(ioRequestSize, maxCacheSizeBytes, noisyOutput); return true; } }