Examples of ICacheElement


Examples of org.apache.jcs.engine.behavior.ICacheElement

        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();
            ICacheElement ce = ( ICacheElement ) e.getValue();
            log.debug( "dumpMap> key=" + e.getKey() + ", val=" + ce.getVal() );
         }
     }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

        if ( log.isDebugEnabled() )
        {
            log.debug( "Trying to get from disk: " + key );
        }

        ICacheElement object = null;

        try
        {
            storageLock.readLock();
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

     * @param name Key the object is stored as
     * @return The object if found or null
     */
    public Object get( Object name )
    {
        ICacheElement element = cacheControl.get( ( Serializable ) name );

        return ( element != null ) ? element.getVal() : null;
    }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

        if ( !isAlive )
        {
            return null;
        }

        ICacheElement element = null;

        try
        {
            element = ( CacheElement )
                database.read( new JISPKey( key ), index1 );
        }
        catch ( Exception e )
        {
            log.error( e );
        }

        if ( element == null )
        {
            return null;
        }

        if ( log.isDebugEnabled() )
        {
            log.debug( " " + key + ", val = " + element.getVal() );
        }

        return element;
    }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

        if ( !isAlive )
        {
            return null;
        }

        ICacheElement obj = null;

        byte[] data = null;
        try
        {
            String sqlS = "select ELEMENT from " + cacheName + " where KEY = ?";
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

     * @param group The group name.
     * @return The cached value, null if not found.
     */
    public Object getFromGroup( Object name, String group )
    {
        ICacheElement element
            = cacheControl.get( getGroupAttrName( group, name ) );
        return ( element != null ) ? element.getVal() : null;
    }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

     * @throws IOException
     */
    public ICacheElement get( Serializable key )
        throws IOException
    {
        ICacheElement retVal = null;

        try
        {
            if ( usePoolForGet )
            {
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

            // execute using the pool
            pool.execute( command );

            // used timed get in order to timeout
            ICacheElement ice = (ICacheElement) future.timedGet( timeout );
            if ( log.isDebugEnabled() )
            {
                if ( ice == null )
                {
                    log.debug( "nothing found in remote cache" );
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

     *            The group name.
     * @return The cached value, null if not found.
     */
    public Object getFromGroup( Object name, String group )
    {
        ICacheElement element = this.cacheControl.get( getGroupAttrName( group, name ) );
        return ( element != null ) ? element.getVal() : null;
    }
View Full Code Here

Examples of org.apache.jcs.engine.behavior.ICacheElement

     * @param localOnly
     * @return ICacheElement
     */
    protected ICacheElement get( Serializable key, boolean localOnly )
    {
        ICacheElement element = null;

        boolean found = false;

        if ( log.isDebugEnabled() )
        {
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.