Package org.apache.stratum.jcs.engine.memory

Examples of org.apache.stratum.jcs.engine.memory.MemoryElementDescriptor


    {

        try
        {

            MemoryElementDescriptor me = new MemoryElementDescriptor( ce );
            ce.getElementAttributes().setLastAccessTimeNow();
            map.put( ce.getKey(), me );

        }
        catch ( Exception ex )
View Full Code Here


     * @exception IOException
     */
    public Serializable get( Serializable key, boolean container )
        throws IOException
    {
        MemoryElementDescriptor me = null;
        ICacheElement ce = null;
        boolean found = false;

        try
        {
View Full Code Here

            }
        }
        else
        {
            // remove single item.
            MemoryElementDescriptor ce = ( MemoryElementDescriptor ) map.remove( key );
            if ( ce != null )
            {
                removed = true;
            }
        }
View Full Code Here

        log.debug( "dumpingMap" );
        for ( Iterator itr = map.entrySet().iterator(); itr.hasNext())
        {
            //for ( Iterator itr = memCache.getIterator(); itr.hasNext();) {
            Map.Entry e = ( Map.Entry ) itr.next();
            MemoryElementDescriptor me = ( MemoryElementDescriptor ) e.getValue();
            log.debug( "dumpMap> key=" + e.getKey() + ", val=" + me.ce.getVal() );
        }
    }
View Full Code Here

            java.util.Iterator itr = cache.getIterator();

            while ( itr.hasNext() )
            {
                Map.Entry e = ( Map.Entry ) itr.next();
                MemoryElementDescriptor me = ( MemoryElementDescriptor ) e.getValue();

                long now = System.currentTimeMillis();

                // Memory idle, to disk shrinkage
                if ( cache.getCacheAttributes().getMaxMemoryIdleTimeSeconds() != -1 )
View Full Code Here

TOP

Related Classes of org.apache.stratum.jcs.engine.memory.MemoryElementDescriptor

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.