public XATransaction(NodeEngine nodeEngine, List<TransactionLogRecord> logs, String txnId, SerializableXID xid, String txOwnerUuid, long timeoutMillis, long startTime) { this.nodeEngine = nodeEngine; this.transactionLog = new TransactionLog(logs); this.timeoutMillis = timeoutMillis; this.txnId = txnId; this.xid = xid; this.txOwnerUuid = txOwnerUuid; ILogger logger = nodeEngine.getLogger(getClass()); this.commitExceptionHandler = logAllExceptions(logger, "Error during commit!", Level.WARNING); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.WARNING); this.startTime = startTime; state = PREPARED; }
public XATransaction(NodeEngine nodeEngine, List<TransactionLogRecord> logs, String txnId, SerializableXID xid, String txOwnerUuid, long timeoutMillis, long startTime) { this.nodeEngine = nodeEngine; this.transactionLog = new TransactionLog(logs); this.timeoutMillis = timeoutMillis; this.txnId = txnId; this.xid = xid; this.txOwnerUuid = txOwnerUuid; ILogger logger = nodeEngine.getLogger(getClass()); this.commitExceptionHandler = logAllExceptions(logger, "Error during commit!", Level.WARNING); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.WARNING); this.startTime = startTime; state = PREPARED; }
TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, String txnId, List<TransactionLogRecord> transactionLog, long timeoutMillis, long startTime, String txOwnerUuid) { this.transactionLog = new TransactionLog(transactionLog); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = txnId; this.timeoutMillis = timeoutMillis; this.startTime = startTime; this.durability = 0; this.transactionType = TWO_PHASE; this.state = PREPARED; this.txOwnerUuid = txOwnerUuid; this.checkThreadAccess = false; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); }
TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, String txnId, List<TransactionLogRecord> transactionLog, long timeoutMillis, long startTime, String txOwnerUuid) { this.transactionLog = new TransactionLog(transactionLog); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = txnId; this.timeoutMillis = timeoutMillis; this.startTime = startTime; this.durability = 0; this.transactionType = TWO_PHASE; this.state = PREPARED; this.txOwnerUuid = txOwnerUuid; this.checkThreadAccess = false; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); }
public XATransaction(NodeEngine nodeEngine, Xid xid, String txOwnerUuid, int timeout, boolean originatedFromClient) { this.nodeEngine = nodeEngine; this.transactionLog = new TransactionLog(); this.timeoutMillis = SECONDS.toMillis(timeout); this.txnId = UuidUtil.newUnsecureUuidString(); this.xid = new SerializableXID(xid.getFormatId(), xid.getGlobalTransactionId(), xid.getBranchQualifier()); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; ILogger logger = nodeEngine.getLogger(getClass()); this.commitExceptionHandler = logAllExceptions(logger, "Error during commit!", Level.WARNING); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.WARNING); this.originatedFromClient = originatedFromClient; }
public XATransaction(NodeEngine nodeEngine, Xid xid, String txOwnerUuid, int timeout, boolean originatedFromClient) { this.nodeEngine = nodeEngine; this.transactionLog = new TransactionLog(); this.timeoutMillis = SECONDS.toMillis(timeout); this.txnId = UuidUtil.newUnsecureUuidString(); this.xid = new SerializableXID(xid.getFormatId(), xid.getGlobalTransactionId(), xid.getBranchQualifier()); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; ILogger logger = nodeEngine.getLogger(getClass()); this.commitExceptionHandler = logAllExceptions(logger, "Error during commit!", Level.WARNING); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.WARNING); this.originatedFromClient = originatedFromClient; }
public TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, TransactionOptions options, String txOwnerUuid, boolean originatedFromClient) { this.transactionLog = new TransactionLog(); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = newUnsecureUuidString(); this.timeoutMillis = options.getTimeoutMillis(); this.transactionType = options.getTransactionType() == LOCAL ? ONE_PHASE : options.getTransactionType(); this.durability = transactionType == ONE_PHASE ? 0 : options.getDurability(); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; this.checkThreadAccess = txOwnerUuid == null; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); this.originatedFromClient = originatedFromClient; }
public TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, TransactionOptions options, String txOwnerUuid, boolean originatedFromClient) { this.transactionLog = new TransactionLog(); this.transactionManagerService = transactionManagerService; this.nodeEngine = nodeEngine; this.txnId = newUnsecureUuidString(); this.timeoutMillis = options.getTimeoutMillis(); this.transactionType = options.getTransactionType() == LOCAL ? ONE_PHASE : options.getTransactionType(); this.durability = transactionType == ONE_PHASE ? 0 : options.getDurability(); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; this.checkThreadAccess = txOwnerUuid == null; this.logger = nodeEngine.getLogger(getClass()); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.FINEST); this.rollbackTxExceptionHandler = logAllExceptions(logger, "Error during tx rollback backup!", Level.FINEST); this.replicationTxExceptionHandler = createReplicationTxExceptionHandler(logger); this.originatedFromClient = originatedFromClient; }