Package org.voltdb.messaging

Examples of org.voltdb.messaging.SnapshotCheckResponseMessage


                // Wait for responses from all hosts for a certain amount of time
                Map<Integer, VoltTable> responses = Maps.newHashMap();
                final long timeoutMs = 10 * 1000; // 10s timeout
                final long endTime = System.currentTimeMillis() + timeoutMs;
                SnapshotCheckResponseMessage response;
                while ((response = (SnapshotCheckResponseMessage) m_mb.recvBlocking(timeoutMs)) != null) {
                    // ignore responses to previous requests
                    if (jsObj.getString("path").equals(response.getPath()) &&
                        jsObj.getString("nonce").equals(response.getNonce())) {
                        responses.put(CoreUtils.getHostIdFromHSId(response.m_sourceHSId), response.getResponse());
                    }

                    if (responses.size() == liveHosts.size() || System.currentTimeMillis() > endTime) {
                        break;
                    }
View Full Code Here

TOP

Related Classes of org.voltdb.messaging.SnapshotCheckResponseMessage

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.