@Override
    public String[] getAllCacheStatistics() {
        DCache cache = null;
        if (ServerCache.servletCacheEnabled) {
            cache = ServerCache.cache;
        }
        String stats[] = null;
        if (cache != null) {
            Map statistics = getCacheStatisticsMap(cache.getCacheStatistics());
            Iterator keys = statistics.keySet().iterator();
            Iterator values = statistics.values().iterator();
            stats = new String[statistics.size()];
            int i = 0;
            while (keys.hasNext()) {
                stats[i] = keys.next() + "=" + values.next();
                i++;
            }
        } else {
            stats = new String[0];
            // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet cache service has not be started.
            Tr.error(tc, "DYNA1059W", new Object[] { DCacheBase.DEFAULT_CACHE_NAME });
        }

        return stats;
    }
@ Override public String [ ] getAllCacheStatistics ( ) { DCache cache = null ; if ( ServerCache . servletCacheEnabled ) { cache = ServerCache . cache ; } String stats [ ] = null ; if ( cache != null ) { Map statistics = getCacheStatisticsMap ( cache . getCacheStatistics ( ) ) ; Iterator keys = statistics . keySet ( ) . iterator ( ) ; Iterator values = statistics . values ( ) . iterator ( ) ; stats = new String [ statistics . size ( ) ] ; int i = 0 ; while ( keys . hasNext ( ) ) { stats [ i ] = keys . next ( ) + "=" + values . next ( ) ; i ++ ; } } else { stats = new String [ 0 ] ; Tr . error ( tc , "DYNA1059W" , new Object [ ] { DCacheBase . DEFAULT_CACHE_NAME } ) ; } return stats ; }
/*
(non-Javadoc)

@see com.ibm.websphere.cache.CacheAdminMBean#getAllCacheStatistics()