public void statisticCreated(SPIStatistic s) {
        final String methodName = "statisticCreated()";
        // if (tc.isEntryEnabled()) {
        // Tr.entry(tc, methodName + " cacheName=" + _sCacheName + " statistic=" + s, this);
        // }
        switch (s.getId()) {
        case WSDynamicCacheStats.MaxInMemoryCacheEntryCount:
            _maxInMemoryCacheEntryCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.InMemoryCacheEntryCount:
            _inMemoryCacheEntryCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.HitsInMemoryCount:
            _hitsInMemoryCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.HitsOnDiskCount:
            _hitsOnDiskCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ExplicitInvalidationCount:
            _explicitInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.LruInvalidationCount:
            _lruInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TimeoutInvalidationCount:
            _timeoutInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.InMemoryAndDiskCacheEntryCount:
            _inMemoryAndDiskCacheEntryCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.RemoteHitCount:
            _remoteHitCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.MissCount:
            _missCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ClientRequestCount:
            _clientRequestCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.DistributedRequestCount:
            _distributedRequestCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ExplicitMemoryInvalidationCount:
            _explicitMemoryInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ExplicitDiskInvalidationCount:
            _explicitDiskInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.LocalExplicitInvalidationCount:
            _localExplicitInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.RemoteExplicitInvalidationCount:
            _remoteExplicitInvalidationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.RemoteCreationCount:
            _remoteCreationCount = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ObjectsOnDisk:
            _objectsOnDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.HitsOnDisk:
            _hitsOnDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.ExplicitInvalidationsFromDisk:
            _explicitInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TimeoutInvalidationsFromDisk:
            _timeoutInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.PendingRemovalFromDisk:
            _pendingRemovalFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.DependencyIdsOnDisk:
            _dependencyIdsOnDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.DependencyIdsBufferedForDisk:
            _dependencyIdsBufferedForDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.DependencyIdsOffloadedToDisk:
            _dependencyIdsOffloadedToDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.DependencyIdBasedInvalidationsFromDisk:
            _dependencyIdBasedInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TemplatesOnDisk:
            _templatesOnDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TemplatesBufferedForDisk:
            _templatesBufferedForDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TemplatesOffloadedToDisk:
            _templatesOffloadedToDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.TemplateBasedInvalidationsFromDisk:
            _templateBasedInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.GarbageCollectorInvalidationsFromDisk:
            _garbageCollectorInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        case WSDynamicCacheStats.OverflowInvalidationsFromDisk:
            _overflowInvalidationsFromDisk = (SPICountStatistic) s;
            break;
        default:
            Tr.debug(tc, methodName,
                    "Error - Unknown stats Id for " + WSDynamicCacheStats.NAME + " cacheName=" + _sCacheName + " dataID=" + s.getId());

            assert false;
            break;
        }
    }
public void statisticCreated ( SPIStatistic s ) { final String methodName = "statisticCreated()" ; switch ( s . getId ( ) ) { case WSDynamicCacheStats . MaxInMemoryCacheEntryCount : _maxInMemoryCacheEntryCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . InMemoryCacheEntryCount : _inMemoryCacheEntryCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . HitsInMemoryCount : _hitsInMemoryCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . HitsOnDiskCount : _hitsOnDiskCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ExplicitInvalidationCount : _explicitInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . LruInvalidationCount : _lruInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TimeoutInvalidationCount : _timeoutInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . InMemoryAndDiskCacheEntryCount : _inMemoryAndDiskCacheEntryCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . RemoteHitCount : _remoteHitCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . MissCount : _missCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ClientRequestCount : _clientRequestCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . DistributedRequestCount : _distributedRequestCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ExplicitMemoryInvalidationCount : _explicitMemoryInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ExplicitDiskInvalidationCount : _explicitDiskInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . LocalExplicitInvalidationCount : _localExplicitInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . RemoteExplicitInvalidationCount : _remoteExplicitInvalidationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . RemoteCreationCount : _remoteCreationCount = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ObjectsOnDisk : _objectsOnDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . HitsOnDisk : _hitsOnDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . ExplicitInvalidationsFromDisk : _explicitInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TimeoutInvalidationsFromDisk : _timeoutInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . PendingRemovalFromDisk : _pendingRemovalFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . DependencyIdsOnDisk : _dependencyIdsOnDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . DependencyIdsBufferedForDisk : _dependencyIdsBufferedForDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . DependencyIdsOffloadedToDisk : _dependencyIdsOffloadedToDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . DependencyIdBasedInvalidationsFromDisk : _dependencyIdBasedInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TemplatesOnDisk : _templatesOnDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TemplatesBufferedForDisk : _templatesBufferedForDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TemplatesOffloadedToDisk : _templatesOffloadedToDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . TemplateBasedInvalidationsFromDisk : _templateBasedInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . GarbageCollectorInvalidationsFromDisk : _garbageCollectorInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; case WSDynamicCacheStats . OverflowInvalidationsFromDisk : _overflowInvalidationsFromDisk = ( SPICountStatistic ) s ; break ; default : Tr . debug ( tc , methodName , "Error - Unknown stats Id for " + WSDynamicCacheStats . NAME + " cacheName=" + _sCacheName + " dataID=" + s . getId ( ) ) ; assert false ; break ; } }
Implementing StatisticActionListener interface

Grab a reference to the Statistic