Package org.apache.jcs.auxiliary

Examples of org.apache.jcs.auxiliary.AuxiliaryCache


                // Item not found in memory. If local invocation look in aux
                // caches, even if not local look in disk auxiliaries

                for ( int i = 0; i < auxCaches.length; i++ )
                {
                    AuxiliaryCache aux = auxCaches[i];

                    if ( aux != null )
                    {
                        long cacheType = aux.getCacheType();

                        if ( ! localOnly || cacheType == aux.DISK_CACHE )
                        {
                            if ( log.isDebugEnabled() )
                            {
                                log.debug( "Attempting to get from aux: "
                                     + aux.getCacheName()
                                     + " which is of type: "
                                     + cacheType );
                            }

                            try
                            {
                                element = aux.get( key );
                            }
                            catch ( IOException ex )
                            {
                                log.error( "Error getting from aux", ex );
                            }
View Full Code Here


    {
        HashSet allKeys = new HashSet();
        allKeys.addAll(memCache.getGroupKeys(group));
        for ( int i = 0; i < auxCaches.length; i++ )
        {
            AuxiliaryCache aux = auxCaches[i];
            if ( aux != null )
            {
                allKeys.addAll(aux.getGroupKeys(group));
            }
        }
        return allKeys;
    }
View Full Code Here

            {
                return null;
            }
        }

        AuxiliaryCache auxCache;
        String auxName;
        while ( st.hasMoreTokens() )
        {
            auxName = st.nextToken().trim();
            if ( auxName == null || auxName.equals( "," ) )
View Full Code Here

    /** Get an aux cache for the listed aux for a region. */
    protected AuxiliaryCache parseAuxiliary( Properties props,
                                             String auxName,
                                             String regName )
    {
        AuxiliaryCache auxCache;

        // GET FACTORY
        AuxiliaryCacheFactory auxFac = ccMgr.registryFacGet( auxName );
        if ( auxFac == null )
        {
View Full Code Here

    public Set getGroupKeys(String group)
    {
        HashSet allKeys = new HashSet();
        for ( int i = 0; i < noWaits.length; i++ )
        {
            AuxiliaryCache aux = noWaits[i];
            if ( aux != null )
            {
                allKeys.addAll(aux.getGroupKeys(group));
            }
        }
        return allKeys;
    }
View Full Code Here

    public Set getGroupKeys(String group)
    {
        HashSet allKeys = new HashSet();
        for ( int i = 0; i < noWaits.length; i++ )
        {
            AuxiliaryCache aux = noWaits[i];
            if ( aux != null )
            {
                allKeys.addAll(aux.getGroupKeys(group));
            }
        }
        return allKeys;
    }
View Full Code Here

     * @return A cache, either from the existing set or newly created.
     *
     */
    public AuxiliaryCache getCache( IndexedDiskCacheAttributes cacheAttributes )
    {
        AuxiliaryCache cache = null;

        String cacheName = cacheAttributes.getCacheName();

        log.debug( "Getting cache named: " + cacheName );

View Full Code Here

     *
     * @return The cache value
     */
    public AuxiliaryCache getCache( HSQLCacheAttributes cattr )
    {
        AuxiliaryCache raf = null;

        log.debug( "cacheName = " + cattr.getCacheName() );

        synchronized ( caches )
        {
View Full Code Here

     *
     * @return The cache value
     */
    public AuxiliaryCache getCache( JISPCacheAttributes cattr )
    {
        AuxiliaryCache raf = null;

        log.debug( "cacheName = " + cattr.getCacheName() );

        synchronized ( caches )
        {
View Full Code Here

     * @param cattr
     * @return The cache value
     */
    public AuxiliaryCache getCache( JDBCDiskCacheAttributes cattr )
    {
        AuxiliaryCache diskCache = null;

        log.debug( "cacheName = " + cattr.getCacheName() );

        synchronized ( caches )
        {
View Full Code Here

TOP

Related Classes of org.apache.jcs.auxiliary.AuxiliaryCache

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.