org.voltdb.iv2.TransactionTask Maven / Gradle / Ivy
/* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with VoltDB. If not, see .
*/
package org.voltdb.iv2;
import org.voltcore.logging.VoltLogger;
import org.voltdb.SiteProcedureConnection;
import org.voltdb.VoltDB;
import org.voltdb.VoltTable;
import org.voltdb.VoltType;
import org.voltdb.VoltTable.ColumnInfo;
import org.voltdb.dtxn.TransactionState;
import org.voltdb.utils.VoltTableUtil;
import com.google_voltpatches.common.util.concurrent.ListenableFuture;
public abstract class TransactionTask extends SiteTasker
{
protected static final VoltLogger execLog = new VoltLogger("EXEC");
protected static final VoltLogger hostLog = new VoltLogger("HOST");
public static VoltTable DUMMAY_RESULT_TABLE;
protected static final byte[] RAW_DUMMY_RESULT;
static {
VoltTable dummyResult = new VoltTable(new ColumnInfo("UNUSED", VoltType.INTEGER));
dummyResult.setStatusCode(VoltTableUtil.DUMMY_DEPENDENCY_STATUS);
RAW_DUMMY_RESULT = dummyResult.buildReusableDependenyResult();
DUMMAY_RESULT_TABLE = new VoltTable(new ColumnInfo("UNUSED", VoltType.INTEGER));
}
final protected TransactionState m_txnState;
final protected TransactionTaskQueue m_queue;
protected ListenableFuture