Package org.voltdb.messaging

Examples of org.voltdb.messaging.BorrowTaskMessage


        Map<Integer, List<VoltTable>> results = dut.recursableRun(siteConnection);
        ArgumentCaptor<BorrowTaskMessage> borrowCaptor = ArgumentCaptor.forClass
                (BorrowTaskMessage.class);
        verify(mailbox).send(eq(buddyHSId), borrowCaptor.capture());
        // make sure that the borrow task message doesn't have any dummy dependency tables as input
        BorrowTaskMessage borrowMsg = borrowCaptor.getValue();
        Map<Integer, List<VoltTable>> inputDepMap = borrowMsg.getInputDepMap();
        for (List<VoltTable> tables : inputDepMap.values()) {
            for (VoltTable table : tables) {
                assertNotSame(VoltTableUtil.NULL_DEPENDENCY_STATUS, table.getStatusCode());
            }
        }
View Full Code Here


        }
        // satisified. Clear this defensively. Procedure runner is sloppy with
        // cleaning up if it decides new work is necessary that is local-only.
        m_remoteWork = null;

        BorrowTaskMessage borrowmsg = new BorrowTaskMessage(m_localWork);
        m_localWork.m_sourceHSId = m_mbox.getHSId();
        // if we created a bogus fragment to distribute to serialize restart and borrow tasks,
        // don't include the empty dependencies we got back in the borrow fragment.
        if (!usedNullFragment) {
            borrowmsg.addInputDepMap(m_remoteDepTables);
        }
        m_mbox.send(m_buddyHSId, borrowmsg);

        FragmentResponseMessage msg = pollForResponses();
        m_localWork = null;
View Full Code Here

TOP

Related Classes of org.voltdb.messaging.BorrowTaskMessage

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.