예제 #1
0
 // 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;
 }
예제 #2
0
 public bool destroyGhostCache()
 {
     if (this.ghostCache != null)
     {
         this.ghostCache = null;
         return true;
     }
     return false;
 }
예제 #3
0
        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;
            }
        }