Package org.exist.storage.cache

Examples of org.exist.storage.cache.Cache.resize()


                        if( LOG.isDebugEnabled() ) {
                            final NumberFormat nf = NumberFormat.getNumberInstance();
                            LOG.debug( "Shrinking cache: " + cache.getFileName() + " (a " + cache.getClass().getName() + ") to " + nf.format( cache.getBuffers() ) );
                        }
                        currentPageCount -= cache.getBuffers();
                        cache.resize( getDefaultInitialSize() );
                        currentPageCount += getDefaultInitialSize();
                    }
                }
            }
        }
View Full Code Here


                if( LOG.isDebugEnabled() ) {
                    final NumberFormat nf = NumberFormat.getNumberInstance();
                    LOG.debug( "Shrinking cache: " + cache.getFileName() + " (a " + cache.getClass().getName() + ") to " + nf.format( newSize ) );
                }
                currentPageCount -= cache.getBuffers();
                cache.resize( newSize );
                currentPageCount += newSize;
                break;
            }
        }
        lastRequest = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.