Package org.teiid.adminapi.impl

Examples of org.teiid.adminapi.impl.CacheStatisticsMetadata


    }
    return null;
  }
 
  private CacheStatisticsMetadata buildCacheStats(String name, SessionAwareCache cache) {
    CacheStatisticsMetadata stats = new CacheStatisticsMetadata();
    stats.setName(name);
    stats.setHitRatio(cache.getRequestCount() == 0?0:((double)cache.getCacheHitCount()/cache.getRequestCount())*100);
    stats.setTotalEntries(cache.getTotalCacheEntries());
    stats.setRequestCount(cache.getRequestCount());
    return stats;
  }
View Full Code Here

TOP

Related Classes of org.teiid.adminapi.impl.CacheStatisticsMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.