Package org.apache.hedwig.exceptions.PubSubException

Examples of org.apache.hedwig.exceptions.PubSubException.CouldNotConnectException


            ByteString hostString = ByteString.copyFromUtf8(HedwigSocketAddress.sockAddrStr(host));
            if (pubSubData.connectFailedServers != null && pubSubData.connectFailedServers.contains(hostString)) {
                // We've already tried to connect to this host before so just
                // invoke the operationFailed callback.
                logger.error("Error connecting to host more than once so just invoke the operationFailed callback!");
                pubSubData.callback.operationFailed(pubSubData.context, new CouldNotConnectException(
                                                        "Could not connect to host: " + host));
            } else {
                if (logger.isDebugEnabled())
                    logger.debug("Try to connect to server: " + host + " again for pubSubData: " + pubSubData);
                // Keep track of this current server that we failed to connect
View Full Code Here


            ByteString hostString = ByteString.copyFromUtf8(HedwigSocketAddress.sockAddrStr(host));
            if (pubSubData.connectFailedServers != null && pubSubData.connectFailedServers.contains(hostString)) {
                // We've already tried to connect to this host before so just
                // invoke the operationFailed callback.
                logger.error("Error connecting to host more than once so just invoke the operationFailed callback!");
                pubSubData.callback.operationFailed(pubSubData.context, new CouldNotConnectException(
                                                        "Could not connect to host: " + host));
            } else {
                if (logger.isDebugEnabled())
                    logger.debug("Try to connect to server: " + host + " again for pubSubData: " + pubSubData);
                // Keep track of this current server that we failed to connect
View Full Code Here

            // We've already tried to connect to this host before so just
            // invoke the operationFailed callback.
            logger.error("Error connecting to host {} more than once so fail the request: {}",
                         va(host, pubSubData));
            pubSubData.getCallback().operationFailed(pubSubData.context,
                new CouldNotConnectException("Could not connect to host: " + host));
        } else {
            logger.error("Retry to connect to default hub server again for pubSubData: {}",
                         pubSubData);
            // Keep track of this current server that we failed to connect
            // to but retry the request on the default server host/VIP.
View Full Code Here

TOP

Related Classes of org.apache.hedwig.exceptions.PubSubException.CouldNotConnectException

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.