Search in sources :

Example 1 with DummyTransactionResponseMessage

use of org.voltdb.messaging.DummyTransactionResponseMessage in project voltdb by VoltDB.

the class Iv2Trace method logInitiatorRxMsg.

public static void logInitiatorRxMsg(VoltMessage msg, long localHSId) {
    if (IV2_TRACE_ENABLED) {
        if (msg instanceof InitiateResponseMessage) {
            InitiateResponseMessage iresp = (InitiateResponseMessage) msg;
            String logmsg = "rxInitRsp %s from %s ciHandle %s txnId %s spHandle %s status %s";
            iv2log.trace(String.format(logmsg, CoreUtils.hsIdToString(localHSId), CoreUtils.hsIdToString(iresp.m_sourceHSId), ClientInterfaceHandleManager.handleToString(iresp.getClientInterfaceHandle()), txnIdToString(iresp.getTxnId()), txnIdToString(iresp.getSpHandle()), respStatusToString(iresp.getClientResponseData().getStatus())));
        } else if (msg instanceof FragmentResponseMessage) {
            FragmentResponseMessage fresp = (FragmentResponseMessage) msg;
            String logmsg = "rxFragRsp %s from %s txnId %s spHandle %s status %s";
            iv2log.trace(String.format(logmsg, CoreUtils.hsIdToString(localHSId), CoreUtils.hsIdToString(fresp.m_sourceHSId), txnIdToString(fresp.getTxnId()), txnIdToString(fresp.getSpHandle()), fragStatusToString(fresp.getStatusCode())));
        } else if (msg instanceof CompleteTransactionResponseMessage) {
            CompleteTransactionResponseMessage cresp = (CompleteTransactionResponseMessage) msg;
            String logmsg = "rxCompRsp %s from %s txnId %s spHandle %s SPI %s restart %s recovering %s";
            iv2log.trace(String.format(logmsg, CoreUtils.hsIdToString(localHSId), CoreUtils.hsIdToString(cresp.m_sourceHSId), txnIdToString(cresp.getTxnId()), txnIdToString(cresp.getSpHandle()), txnIdToString(cresp.getSPIHSId()), cresp.isRestart(), cresp.isRecovering()));
        } else if (msg instanceof DummyTransactionResponseMessage) {
            DummyTransactionResponseMessage dresp = (DummyTransactionResponseMessage) msg;
            String logmsg = "rxDummyRsp %s from %s to %s for txnId %s";
            iv2log.trace(String.format(logmsg, CoreUtils.hsIdToString(localHSId), CoreUtils.hsIdToString(dresp.m_sourceHSId), txnIdToString(dresp.getSPIHSId()), txnIdToString(dresp.getTxnId())));
        }
    }
}
Also used : CompleteTransactionResponseMessage(org.voltdb.messaging.CompleteTransactionResponseMessage) DummyTransactionResponseMessage(org.voltdb.messaging.DummyTransactionResponseMessage) InitiateResponseMessage(org.voltdb.messaging.InitiateResponseMessage) FragmentResponseMessage(org.voltdb.messaging.FragmentResponseMessage)

Example 2 with DummyTransactionResponseMessage

use of org.voltdb.messaging.DummyTransactionResponseMessage in project voltdb by VoltDB.

the class DummyTransactionTask method generateDummyResponse.

private void generateDummyResponse() {
    doCommonSPICompleteActions();
    DummyTransactionResponseMessage response = new DummyTransactionResponseMessage(this);
    response.m_sourceHSId = m_initiator.getHSId();
    m_initiator.deliver(response);
}
Also used : DummyTransactionResponseMessage(org.voltdb.messaging.DummyTransactionResponseMessage)

Aggregations

DummyTransactionResponseMessage (org.voltdb.messaging.DummyTransactionResponseMessage)2 CompleteTransactionResponseMessage (org.voltdb.messaging.CompleteTransactionResponseMessage)1 FragmentResponseMessage (org.voltdb.messaging.FragmentResponseMessage)1 InitiateResponseMessage (org.voltdb.messaging.InitiateResponseMessage)1