Examples of TCPLateralCacheAttributes


Examples of org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes

     */
    public void testSimpleUDPDiscovery()
        throws Exception
    {
        // create the attributes for the service
        TCPLateralCacheAttributes lac = new TCPLateralCacheAttributes();
        lac.setTransmissionType( LateralCacheAttributes.TCP );
        lac.setTcpServer( "localhost" + ":" + 1111 );

        ICompositeCacheManager cacheMgr = CompositeCacheManager.getInstance();

        // create the service
        UDPDiscoveryService service = new UDPDiscoveryService( lac.getUdpDiscoveryAddr(), lac.getUdpDiscoveryPort(), lac.getTcpListenerPort(), cacheMgr );
        service.setTcpLateralCacheAttributes( lac );

        // create a no wait facade for the service
        ArrayList noWaits = new ArrayList();
        ILateralCacheAttributes attr = new LateralCacheAttributes();
View Full Code Here

Examples of org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes

        ILateralCacheAttributes attr = new LateralCacheAttributes();
        attr.setCacheName( "testCache1" );
        LateralCacheNoWaitFacade lcnwf = new LateralCacheNoWaitFacade( (LateralCacheNoWait[]) noWaits
            .toArray( new LateralCacheNoWait[0] ), attr );

        TCPLateralCacheAttributes lac = new TCPLateralCacheAttributes();
        lac.setTransmissionType( LateralCacheAttributes.TCP );
        lac.setTcpServer( "localhost" + ":" + 1111 );

        LateralCache cache = new MockLateralCache( lac );

        // add one
        LateralCacheNoWait noWait = new LateralCacheNoWait( cache );
View Full Code Here

Examples of org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes

                    {
                        lca = (ITCPLateralCacheAttributes) service.getTcpLateralCacheAttributes().copy();
                    }
                    else
                    {
                        lca = new TCPLateralCacheAttributes();
                    }
                    lca.setTransmissionType( LateralCacheAttributes.TCP );
                    lca.setTcpServer( message.getHost() + ":" + message.getPort() );
                    LateralTCPCacheManager lcm = LateralTCPCacheManager.getInstance( lca, cacheMgr );
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.