Package org.voltdb.rejoin.StreamSnapshotSink

Examples of org.voltdb.rejoin.StreamSnapshotSink.RestoreWork


    public void runForRejoin(SiteProcedureConnection siteConnection,
            TaskLog m_taskLog) throws IOException
    {
        if (!m_schemaHasNoTables) {
            boolean sourcesReady = false;
            RestoreWork rejoinWork = m_rejoinSiteProcessor.poll(m_snapshotBufferAllocator);
            if (rejoinWork != null) {
                restoreBlock(rejoinWork, siteConnection);
                sourcesReady = true;
            }
View Full Code Here


     * @param siteConnection
     */
    private void runForBlockingDataTransfer(SiteProcedureConnection siteConnection)
    {
        boolean sourcesReady = false;
        RestoreWork restoreWork = m_dataSink.poll(m_snapshotBufferAllocator);
        if (restoreWork != null) {
            restoreBlock(restoreWork, siteConnection);
            sourcesReady = true;
        }

View Full Code Here

     *
     * @return true if there was real work done.
     */
    private boolean restoreSnapshotForRejoin() {
        boolean doneWork = false;
        RestoreWork rejoinWork = m_rejoinSnapshotProcessor.poll(new CachedByteBufferAllocator());
        if (rejoinWork != null) {
            rejoinWork.restore(this);
            doneWork = true;
        } else if (m_rejoinSnapshotProcessor.isEOF()) {
            m_rejoinLog.debug("Rejoin snapshot transfer is finished");
            m_rejoinSnapshotProcessor.close();
            m_rejoinSnapshotProcessor = null;
View Full Code Here

TOP

Related Classes of org.voltdb.rejoin.StreamSnapshotSink.RestoreWork

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.