public ResultsFuture<?> commit() throws XATransactionException { final String threadId = DQPWorkContext.getWorkContext().getSessionId(); Callable<Void> processor = new Callable<Void>() { @Override public Void call() throws Exception { getTransactionService().commit(threadId); return null; } }; return addWork(processor, 0); }
public ResultsFuture<?> commit() throws XATransactionException { final String threadId = DQPWorkContext.getWorkContext().getSessionId(); Callable<Void> processor = new Callable<Void>() { @Override public Void call() throws Exception { getTransactionService().commit(threadId); return null; } }; return addWork(processor, 0); }
public ResultsFuture<?> commit() throws XATransactionException { final String threadId = DQPWorkContext.getWorkContext().getSessionId(); Callable<Void> processor = new Callable<Void>() { @Override public Void call() throws Exception { getTransactionService().commit(threadId); return null; } }; return addWork(processor, 0); }
public ResultsFuture<?> rollback() throws XATransactionException { final String threadId = DQPWorkContext.getWorkContext().getSessionId(); Callable<Void> processor = new Callable<Void>() { @Override public Void call() throws Exception { getTransactionService().rollback(threadId); return null; } }; return addWork(processor, 0); }
@Override public Void call() throws Exception { getTransactionService().start(workContext.getSessionId(), xid, flags, timeout, false); return null; } };
public AtomicRequestMessage(RequestMessage requestMessage, DQPWorkContext parent, int nodeId){ this.workContext = parent; this.requestID = new RequestID(parent.getSessionId(), requestMessage.getExecutionId()); this.atomicRequestId = new AtomicRequestID(this.requestID, nodeId, EXECUTION_COUNT.getAndIncrement()); }
public AtomicRequestMessage(RequestMessage requestMessage, DQPWorkContext parent, int nodeId){ this.workContext = parent; this.requestID = new RequestID(parent.getSessionId(), requestMessage.getExecutionId()); this.atomicRequestId = new AtomicRequestID(this.requestID, nodeId, EXECUTION_COUNT.getAndIncrement()); }
void removeRequest(final RequestWorkItem workItem) { finishProcessing(workItem); this.requests.remove(workItem.requestID); ClientState state = getClientState(workItem.getDqpWorkContext().getSessionId(), false); if (state != null) { state.removeRequest(workItem.requestID); } }
public ResultsFuture<?> ping() throws InvalidSessionException,TeiidComponentException { // ping is double used to alert the aliveness of the client, as well as check the server instance is // alive by socket server instance, so that they can be cached. String id = DQPWorkContext.getWorkContext().getSessionId(); if (id != null) { this.service.pingServer(id); } LogManager.logTrace(LogConstants.CTX_SECURITY, "Ping", id); //$NON-NLS-1$ return ResultsFuture.NULL_FUTURE; }
public ResultsFuture<?> begin() throws XATransactionException { String threadId = DQPWorkContext.getWorkContext().getSessionId(); this.getTransactionService().begin(threadId); return ResultsFuture.NULL_FUTURE; }
void removeRequest(final RequestWorkItem workItem) { finishProcessing(workItem); this.requests.remove(workItem.requestID); ClientState state = getClientState(workItem.getDqpWorkContext().getSessionId(), false); if (state != null) { state.removeRequest(workItem.requestID); } }
@Override public Void call() throws Exception { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); getTransactionService().commit(workContext.getSessionId(), xid, onePhase, workContext.getSession().isEmbedded()); return null; } };
public ResultsFuture<?> forget(XidImpl xid) throws XATransactionException { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); this.getTransactionService().forget(workContext.getSessionId(), xid, workContext.getSession().isEmbedded()); return ResultsFuture.NULL_FUTURE; }
public ResultsFuture<?> forget(XidImpl xid) throws XATransactionException { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); this.getTransactionService().forget(workContext.getSessionId(), xid, workContext.getSession().isEmbedded()); return ResultsFuture.NULL_FUTURE; }
@Override public Integer call() throws Exception { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); return getTransactionService().prepare(workContext.getSessionId(),xid, workContext.getSession().isEmbedded()); } };
public ResultsFuture<?> forget(XidImpl xid) throws XATransactionException { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); this.getTransactionService().forget(workContext.getSessionId(), xid, workContext.getSession().isEmbedded()); return ResultsFuture.NULL_FUTURE; }
public ResultsFuture<?> end(XidImpl xid, int flags) throws XATransactionException { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); this.getTransactionService().end(workContext.getSessionId(), xid, flags, workContext.getSession().isEmbedded()); return ResultsFuture.NULL_FUTURE; } // global txn
@Override public Void call() throws Exception { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); getTransactionService().commit(workContext.getSessionId(), xid, onePhase, workContext.getSession().isEmbedded()); return null; } };
@Override public Void call() throws Exception { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); getTransactionService().rollback(workContext.getSessionId(),xid, workContext.getSession().isEmbedded()); return null; } };
@Override public Void call() throws Exception { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); getTransactionService().rollback(workContext.getSessionId(),xid, workContext.getSession().isEmbedded()); return null; } };