Package org.apache.jcs.auxiliary.remote

Examples of org.apache.jcs.auxiliary.remote.RemoteCacheAttributes


     */
    public AuxiliaryCache createCache( AuxiliaryCacheAttributes iaca )
    {
        ArrayList noWaits = new ArrayList();

        RemoteCacheAttributes rca = ( RemoteCacheAttributes ) iaca;

        // create "SYSTEM_CLUSTER" caches for potential use
        if ( rca.getCacheName() == null )
        {
            rca.setCacheName( "SYSTEM_CLUSTER" );
        }
        StringTokenizer it = new StringTokenizer( rca.getClusterServers(), "," );
        while ( it.hasMoreElements() )
        {
            //String server = (String)it.next();
            String server = ( String ) it.nextElement();
            //p( "tcp server = " +  server );
            rca.setRemoteHost( server.substring( 0, server.indexOf( ":" ) ) );
            rca.setRemotePort( Integer.parseInt( server.substring( server.indexOf( ":" ) + 1 ) ) );
            RemoteCacheClusterManager rcm = RemoteCacheClusterManager.getInstance( rca );
            ICache ic = rcm.getCache( rca.getCacheName() );
            if ( ic != null )
            {
                noWaits.add( ic );
            }
            else
View Full Code Here


        throws Exception
    {
        // SETUP
        CompositeCacheManagerMockImpl compositeCacheManager = new CompositeCacheManagerMockImpl();

        RemoteCacheAttributes attributes = new RemoteCacheAttributes();
        attributes.setRemoteHost( "localhost" );
        attributes.setLocalPort( 1202 );
        attributes.setRemotePort( 1101 );

        RemoteCacheManager remoteCacheManager = RemoteCacheManager.getInstance( attributes, compositeCacheManager );
        String regionName = "testSinglePut";
        AuxiliaryCache cache = remoteCacheManager.getCache( regionName );
View Full Code Here

        throws Exception
    {
        // SETUP
        CompositeCacheManagerMockImpl compositeCacheManager = new CompositeCacheManagerMockImpl();

        RemoteCacheAttributes attributes = new RemoteCacheAttributes();
        attributes.setRemoteHost( "localhost" );
        attributes.setLocalPort( 1202 );
        attributes.setRemotePort( 1101 );

        RemoteCacheManager remoteCacheManager = RemoteCacheManager.getInstance( attributes, compositeCacheManager );
        String regionName = "testPutRemove";
        AuxiliaryCache cache = remoteCacheManager.getCache( regionName );
View Full Code Here

        throws Exception
    {
        // SETUP
        CompositeCacheManagerMockImpl compositeCacheManager = new CompositeCacheManagerMockImpl();

        RemoteCacheAttributes attributes = new RemoteCacheAttributes();
        attributes.setRemoteHost( "localhost" );
        attributes.setLocalPort( 1202 );
        attributes.setRemotePort( 1101 );

        RemoteCacheManager remoteCacheManager = RemoteCacheManager.getInstance( attributes, compositeCacheManager );
        String regionName = "testPutAndListen";
        AuxiliaryCache cache = remoteCacheManager.getCache( regionName );
View Full Code Here

        throws Exception
    {
        // SETUP
        CompositeCacheManagerMockImpl compositeCacheManager = new CompositeCacheManagerMockImpl();

        RemoteCacheAttributes attributes = new RemoteCacheAttributes();
        attributes.setRemoteHost( "localhost" );
        attributes.setLocalPort( 1202 );
        attributes.setRemotePort( 1101 );

        RemoteCacheManager remoteCacheManager = RemoteCacheManager.getInstance( attributes, compositeCacheManager );
        String regionName = "testPutAndListen";
        AuxiliaryCache cache = remoteCacheManager.getCache( regionName );
View Full Code Here

TOP

Related Classes of org.apache.jcs.auxiliary.remote.RemoteCacheAttributes

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.