Package org.apache.openjpa.datacache

Examples of org.apache.openjpa.datacache.CacheStatistics$Default


    public void setContextRef(String cref) {
        _configRef = cref;
    }

    public long getHitCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getHitCount();
        return NO_STATS;
    }
View Full Code Here


            return stats.getHitCount();
        return NO_STATS;
    }

    public long getReadCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getReadCount();
        return NO_STATS;
    }
View Full Code Here

            return stats.getReadCount();
        return NO_STATS;
    }

    public long getTotalHitCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getTotalHitCount();
        return NO_STATS;
    }
View Full Code Here

            return stats.getTotalHitCount();
        return NO_STATS;
    }

    public long getTotalReadCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getTotalReadCount();
        return NO_STATS;
    }
View Full Code Here

            return stats.getTotalReadCount();
        return NO_STATS;
    }

    public long getTotalWriteCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getTotalWriteCount();
        return NO_STATS;
    }
View Full Code Here

            return stats.getTotalWriteCount();
        return NO_STATS;
    }

    public long getWriteCount() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getWriteCount();
        return NO_STATS;
    }
View Full Code Here

            return stats.getWriteCount();
        return NO_STATS;
    }

    public void reset() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            stats.reset();
    }
View Full Code Here

        if (stats != null)
            stats.reset();
    }

    public Date sinceDate() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.since();
        return null;
    }
View Full Code Here

            return stats.since();
        return null;
    }

    public Date startDate() {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.start();
        return null;
    }
View Full Code Here

        }
        return null;
    }

    public long getWriteCount(String c) {
        CacheStatistics stats = getStatistics();
        if (stats != null)
            return stats.getWriteCount(c);
        return NO_STATS;
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.datacache.CacheStatistics$Default

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.