Package org.apache.stratum.jcs.auxiliary.lateral

Examples of org.apache.stratum.jcs.auxiliary.lateral.LateralCacheNoWait


     * @return The {3} value
     * @param cacheName
     */
    public ICache getCache( String cacheName )
    {
        LateralCacheNoWait c = null;
        synchronized ( caches )
        {
            //c = (LateralCache)caches.get(cacheName);
            c = ( LateralCacheNoWait ) caches.get( cacheName );
            if ( c == null )
            {
                c = new LateralCacheNoWait( new LateralCache( lca, lateralService ) );
                caches.put( cacheName, c );
            }
        }

        try
View Full Code Here


            this.lateralService = lateralService;
            // need to implment an observer for some types of laterals( http and tcp)
            //this.lateralWatch.setCacheWatch(lateralWatch);
            for ( Iterator en = caches.values().iterator(); en.hasNext())
            {
                LateralCacheNoWait cache = ( LateralCacheNoWait ) en.next();
                cache.fixCache( this.lateralService );
            }
        }
    }
View Full Code Here

                    // same LateralCacheManager instance are in error.  So we fix them once and for all.
                    for ( Iterator itr2 = mgr.caches.values().iterator(); itr2.hasNext())
                    {
                        if ( itr2.hasNext() )
                        {
                            LateralCacheNoWait c = ( LateralCacheNoWait ) itr2.next();
                            if ( c.getStatus() == c.STATUS_ERROR )
                            {
                                log.debug( "found LateralCacheNoWait in error" );

                                LateralCacheRestore repairer = new LateralCacheRestore( mgr );
                                // If we can't fix them, just skip and re-try in the next round.
View Full Code Here

TOP

Related Classes of org.apache.stratum.jcs.auxiliary.lateral.LateralCacheNoWait

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.