Package org.elasticsearch.discovery.zen.ping

Examples of org.elasticsearch.discovery.zen.ping.ZenPingException


                datagramPacketSend.setData(cachedEntry.bytes().copiedByteArray());
            } catch (IOException e) {
                if (remove) {
                    receivedResponses.remove(id);
                }
                throw new ZenPingException("Failed to serialize ping request", e);
            } finally {
                CachedStreamOutput.pushEntry(cachedEntry);
            }
            try {
                multicastSocket.send(datagramPacketSend);
                if (logger.isTraceEnabled()) {
                    logger.trace("[{}] sending ping request", id);
                }
            } catch (IOException e) {
                if (remove) {
                    receivedResponses.remove(id);
                }
                if (lifecycle.stoppedOrClosed()) {
                    return;
                }
                throw new ZenPingException("Failed to send ping request over multicast on " + multicastSocket, e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.discovery.zen.ping.ZenPingException

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.