Package org.apache.catalina.cluster.tcp

Examples of org.apache.catalina.cluster.tcp.ReplicationListener


        service.setMcastAddr("228.0.0.4");
        service.setMcastPort(45564);
        service.setMcastFrequency(500l);
        service.setMcastDropTime(3000l);
        cluster.setMembershipService(service);
        ReplicationListener receiver = new ReplicationListener();
        receiver.setTcpListenAddress("auto");
        receiver.setTcpListenPort(4001);
        receiver.setTcpSelectorTimeout(100l);
        receiver.setTcpThreadCount(6);
        cluster.setClusterReceiver(receiver);
        ReplicationTransmitter sender = new ReplicationTransmitter();
        sender.setReplicationMode("pooled");
        cluster.setClusterSender(sender);
        ReplicationValve valve = new ReplicationValve();
View Full Code Here


            throw new LifecycleException
                (sm.getString("cluster.alreadyStarted"));
        log.info("Cluster is about to start");
        try {
            mReplicationListener =
                new ReplicationListener(this,
                                        this.tcpThreadCount,
                                        this.tcpAddress,
                                        this.tcpPort,
                                        this.tcpSelectorTimeout);
            mReplicationListener.setDaemon(true);
View Full Code Here

                Thread t = new Thread(mReplicationListener);
                t.setName("Cluster-TcpListener");
                t.setDaemon(true);
                t.start();
            } else {
                ReplicationListener mReplicationListener =
                    new ReplicationListener(this,
                                            this.tcpThreadCount,
                                            this.tcpAddress,
                                            this.tcpPort,
                                            this.tcpSelectorTimeout,
                                            IDataSenderFactory.SYNC_MODE.equals(replicationMode) ||
                                            IDataSenderFactory.POOLED_SYNC_MODE.equals(replicationMode));
                mReplicationListener.setName("Cluster-ReplicationListener");
                mReplicationListener.setDaemon(true);
                mReplicationListener.start();
            }

            mReplicationTransmitter = new ReplicationTransmitter(new IDataSender[0]);
            mReplicationTransmitter.start();
View Full Code Here

            throw new LifecycleException
                (sm.getString("cluster.alreadyStarted"));
        log.info("Cluster is about to start");
        try {
            mReplicationListener =
                new ReplicationListener(this,
                                        this.tcpThreadCount,
                                        this.tcpAddress,
                                        this.tcpPort);
            mReplicationListener.start();
            mReplicationTransmitter = new ReplicationTransmitter(new SocketSender[0]);
View Full Code Here

        service.setMcastAddr("228.0.0.4");
        service.setMcastPort(45564);
        service.setMcastFrequency(500l);
        service.setMcastDropTime(3000l);
        cluster.setMembershipService(service);
        ReplicationListener receiver = new ReplicationListener();
        receiver.setTcpListenAddress("auto");
        receiver.setTcpListenPort(4001);
        receiver.setTcpSelectorTimeout(100l);
        receiver.setTcpThreadCount(6);
        cluster.setClusterReceiver(receiver);
        ReplicationTransmitter sender = new ReplicationTransmitter();
        sender.setReplicationMode("pooled");
        cluster.setClusterSender(sender);
        ReplicationValve valve = new ReplicationValve();
View Full Code Here

        service.setMcastAddr("228.0.0.4");
        service.setMcastPort(45564);
        service.setMcastFrequency(500l);
        service.setMcastDropTime(3000l);
        cluster.setMembershipService(service);
        ReplicationListener receiver = new ReplicationListener();
        receiver.setTcpListenAddress("auto");
        receiver.setTcpListenPort(4001);
        receiver.setTcpSelectorTimeout(100l);
        receiver.setTcpThreadCount(6);
        cluster.setClusterReceiver(receiver);
        ReplicationTransmitter sender = new ReplicationTransmitter();
        sender.setReplicationMode("pooled");
        cluster.setClusterSender(sender);
        ReplicationValve valve = new ReplicationValve();
View Full Code Here

            throw new LifecycleException
                (sm.getString("cluster.alreadyStarted"));
        log.info("Cluster is about to start");
        try {
            mReplicationListener =
                new ReplicationListener(this,
                                        this.tcpThreadCount,
                                        this.tcpAddress,
                                        this.tcpPort,
                                        this.tcpSelectorTimeout);
            mReplicationListener.setDaemon(true);
View Full Code Here

            throw new LifecycleException
                (sm.getString("cluster.alreadyStarted"));
        log.info("Cluster is about to start");
        try {
            mReplicationListener =
                new ReplicationListener(this,
                                        this.tcpThreadCount,
                                        this.tcpAddress,
                                        this.tcpPort,
                                        this.tcpSelectorTimeout);
            mReplicationListener.setDaemon(true);
View Full Code Here

        if (tlp == -1) {
            throw new ContainerException("Cluster configuration requires tcp-listen-port property");
        }

        ReplicationListener listener = new ReplicationListener();
        listener.setTcpListenAddress(tla);
        listener.setTcpListenPort(tlp);
        listener.setTcpSelectorTimeout(tlt);
        listener.setTcpThreadCount(tlc);
        //listener.setIsSenderSynchronized(false);

        ReplicationTransmitter trans = new ReplicationTransmitter();
        trans.setReplicationMode(ContainerConfig.getPropertyValue(clusterProps, "replication-mode", "pooled"));
View Full Code Here

            throw new LifecycleException
                (sm.getString("cluster.alreadyStarted"));
        log.info("Cluster is about to start");
        try {
            mReplicationListener =
                new ReplicationListener(this,
                                        this.tcpThreadCount,
                                        this.tcpAddress,
                                        this.tcpPort,
                                        this.tcpSelectorTimeout);
            mReplicationListener.setDaemon(true);
View Full Code Here

TOP

Related Classes of org.apache.catalina.cluster.tcp.ReplicationListener

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.