public void updateDiskCacheStatistics(long objectsOnDisk, long pendingRemoval, long depidsOnDisk, long depidsBuffered, long depidsOffloaded,
            long depidBasedInvalidations, long templatesOnDisk, long templatesBuffered, long templatesOffloaded, long templateBasedInvalidations) {

        final String methodName = "updateDiskCacheStatistics()";
        boolean anyStatChangedValue = false;

        if (_csmDisk != null && _csmDisk._enable) {

            if (_csmDisk._objectsOnDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._objectsOnDisk, objectsOnDisk);
                _csmDisk._objectsOnDisk.setCount(objectsOnDisk);
            }
            if (_csmDisk._pendingRemovalFromDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._pendingRemovalFromDisk, pendingRemoval);
                _csmDisk._pendingRemovalFromDisk.setCount(pendingRemoval);
            }
            if (_csmDisk._dependencyIdsOnDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._dependencyIdsOnDisk, depidsOnDisk);
                _csmDisk._dependencyIdsOnDisk.setCount(depidsOnDisk);
            }
            if (_csmDisk._dependencyIdsBufferedForDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._dependencyIdsBufferedForDisk, depidsBuffered);
                _csmDisk._dependencyIdsBufferedForDisk.setCount(depidsBuffered);
            }
            if (_csmDisk._dependencyIdsOffloadedToDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._dependencyIdsOffloadedToDisk, depidsOffloaded);
                _csmDisk._dependencyIdsOffloadedToDisk.setCount(depidsOffloaded);
            }
            if (_csmDisk._dependencyIdBasedInvalidationsFromDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._dependencyIdBasedInvalidationsFromDisk, depidBasedInvalidations);
                _csmDisk._dependencyIdBasedInvalidationsFromDisk.setCount(depidBasedInvalidations);
            }
            if (_csmDisk._templatesOnDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._templatesOnDisk, templatesOnDisk);
                _csmDisk._templatesOnDisk.setCount(templatesOnDisk);
            }
            if (_csmDisk._templatesBufferedForDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._templatesBufferedForDisk, templatesBuffered);
                _csmDisk._templatesBufferedForDisk.setCount(templatesBuffered);
            }
            if (_csmDisk._templatesOffloadedToDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._templatesOffloadedToDisk, templatesOffloaded);
                _csmDisk._templatesOffloadedToDisk.setCount(templatesOffloaded);
            }
            if (_csmDisk._templateBasedInvalidationsFromDisk != null) {
                if (!anyStatChangedValue)
                    anyStatChangedValue = anyValueChanged(_csmDisk._templateBasedInvalidationsFromDisk, templateBasedInvalidations);
                _csmDisk._templateBasedInvalidationsFromDisk.setCount(templateBasedInvalidations);
            }

            if (tc.isDebugEnabled() && anyStatChangedValue)
                Tr.debug(tc, methodName + " cacheName=" + _sCacheName + " updateCacheStatistics, objectsOnDisk=" + objectsOnDisk
                        + " pendingRemovalFromDisk=" + pendingRemoval + " dependencyIdsOnDisk=" + depidsOnDisk + " dependencyIdsBufferedForDisk="
                        + depidsBuffered + " dependencyIdsOffloadedToDisk=" + depidsOffloaded + " dependencyIdBasedInvalidations="
                        + depidBasedInvalidations + " templatesOnDisk=" + templatesOnDisk + " templatesBufferedForDisk=" + templatesBuffered
                        + " templatesOffloadedToDisk=" + templatesOffloaded + " templateBasedInvalidations=" + templateBasedInvalidations
                        + " enable=" + _csmDisk._enable + " " + this);

        }
    }
public void updateDiskCacheStatistics ( long objectsOnDisk , long pendingRemoval , long depidsOnDisk , long depidsBuffered , long depidsOffloaded , long depidBasedInvalidations , long templatesOnDisk , long templatesBuffered , long templatesOffloaded , long templateBasedInvalidations ) { final String methodName = "updateDiskCacheStatistics()" ; boolean anyStatChangedValue = false ; if ( _csmDisk != null && _csmDisk . _enable ) { if ( _csmDisk . _objectsOnDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _objectsOnDisk , objectsOnDisk ) ; _csmDisk . _objectsOnDisk . setCount ( objectsOnDisk ) ; } if ( _csmDisk . _pendingRemovalFromDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _pendingRemovalFromDisk , pendingRemoval ) ; _csmDisk . _pendingRemovalFromDisk . setCount ( pendingRemoval ) ; } if ( _csmDisk . _dependencyIdsOnDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _dependencyIdsOnDisk , depidsOnDisk ) ; _csmDisk . _dependencyIdsOnDisk . setCount ( depidsOnDisk ) ; } if ( _csmDisk . _dependencyIdsBufferedForDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _dependencyIdsBufferedForDisk , depidsBuffered ) ; _csmDisk . _dependencyIdsBufferedForDisk . setCount ( depidsBuffered ) ; } if ( _csmDisk . _dependencyIdsOffloadedToDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _dependencyIdsOffloadedToDisk , depidsOffloaded ) ; _csmDisk . _dependencyIdsOffloadedToDisk . setCount ( depidsOffloaded ) ; } if ( _csmDisk . _dependencyIdBasedInvalidationsFromDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _dependencyIdBasedInvalidationsFromDisk , depidBasedInvalidations ) ; _csmDisk . _dependencyIdBasedInvalidationsFromDisk . setCount ( depidBasedInvalidations ) ; } if ( _csmDisk . _templatesOnDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _templatesOnDisk , templatesOnDisk ) ; _csmDisk . _templatesOnDisk . setCount ( templatesOnDisk ) ; } if ( _csmDisk . _templatesBufferedForDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _templatesBufferedForDisk , templatesBuffered ) ; _csmDisk . _templatesBufferedForDisk . setCount ( templatesBuffered ) ; } if ( _csmDisk . _templatesOffloadedToDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _templatesOffloadedToDisk , templatesOffloaded ) ; _csmDisk . _templatesOffloadedToDisk . setCount ( templatesOffloaded ) ; } if ( _csmDisk . _templateBasedInvalidationsFromDisk != null ) { if ( ! anyStatChangedValue ) anyStatChangedValue = anyValueChanged ( _csmDisk . _templateBasedInvalidationsFromDisk , templateBasedInvalidations ) ; _csmDisk . _templateBasedInvalidationsFromDisk . setCount ( templateBasedInvalidations ) ; } if ( tc . isDebugEnabled ( ) && anyStatChangedValue ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " updateCacheStatistics, objectsOnDisk=" + objectsOnDisk + " pendingRemovalFromDisk=" + pendingRemoval + " dependencyIdsOnDisk=" + depidsOnDisk + " dependencyIdsBufferedForDisk=" + depidsBuffered + " dependencyIdsOffloadedToDisk=" + depidsOffloaded + " dependencyIdBasedInvalidations=" + depidBasedInvalidations + " templatesOnDisk=" + templatesOnDisk + " templatesBufferedForDisk=" + templatesBuffered + " templatesOffloadedToDisk=" + templatesOffloaded + " templateBasedInvalidations=" + templateBasedInvalidations + " enable=" + _csmDisk . _enable + " " + this ) ; } }
/*
updates the global statistics for disk information

@param objectsOnDisk number of cache entries that are currently on disk

@param pendingRemoval number of objects that have been invalidated by are yet to be removed from disk

@param depidsOnDisk number of dependency ids that are currently on disk

@param depidsBuffered number of dependency ids that have been currently bufferred in memory for the disk

@param depidsOffloaded number of dependency ids offloaded to disk

@param depidBasedInvalidations number of dependency id based invalidations

@param templatesOnDisk number of templates that are currently on disk

@param templatesBuffered number of templates that have been currently bufferred in memory for the disk

@param templatesOffloaded number of templates offloaded to disk

@param templateBasedInvalidations number of template based invalidations