Package org.apache.jcs.auxiliary

Examples of org.apache.jcs.auxiliary.AuxiliaryCache


        RemoteCacheAttributes rca = new RemoteCacheAttributes();
        rca.setRemoteHost( "localhost" );
        rca.setRemotePort( 1101 );

        RemoteCacheManager mgr = RemoteCacheManager.getInstance( rca, cacheMgr );
        AuxiliaryCache cache = mgr.getCache( "testCache" );

        int numMes = 100;
        for ( int i = 0; i < numMes; i++ )
        {
            String message = "adsfasasfasfasdasf";
            CacheElement ce = new CacheElement( "key" + 1, "data" + i, message );
            cache.update( ce );
            System.out.println( "put " + ce );
        }

        // Thread.sleep( 2000 );
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 )
            {
                try
                {
                    allKeys.addAll( aux.getGroupKeys( group ) );
                }
                catch ( IOException e )
                {
                    // ignore
                }
View Full Code Here

     *            Attributes the cache should have.
     * @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 null;
            }
        }

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

     *            the name of the region.
     * @return AuxiliaryCache
     */
    protected AuxiliaryCache parseAuxiliary( CompositeCache cache, Properties props, String auxName, String regName )
    {
        AuxiliaryCache auxCache;

        if ( log.isDebugEnabled() )
        {
            // cache isn't used.
            // TODO change method signature if is isn't needed.
View Full Code Here

        throws IOException
    {
        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

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.