public class RequestProcessorPersistCT extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.lmax.disruptor.dsl.Disruptor<org.apache.omid.tso.AbstractRequestProcessor.RequestEvent> |
disruptor |
protected com.lmax.disruptor.RingBuffer<org.apache.omid.tso.AbstractRequestProcessor.RequestEvent> |
requestRing |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commitRequest(long startTimestamp,
Collection<Long> writeSet,
Collection<Long> tableIdSet,
boolean isRetry,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
fenceRequest(long tableID,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
forwardAbort(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
forwardCommit(long startTimestamp,
long commitTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx,
org.apache.phoenix.thirdparty.com.google.common.base.Optional<Long> lowWatermark) |
void |
forwardCommitRetry(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
forwardTimestamp(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
onEvent(org.apache.omid.tso.AbstractRequestProcessor.RequestEvent event,
long sequence,
boolean endOfBatch) |
void |
onTimeout() |
void |
onTimeout(long sequence) |
void |
timestampRequest(org.jboss.netty.channel.Channel c,
MonitoringContext monCtx) |
void |
update(TSOStateManager.TSOState state)
This should be called when the TSO gets leadership
|
protected final com.lmax.disruptor.dsl.Disruptor<org.apache.omid.tso.AbstractRequestProcessor.RequestEvent> disruptor
protected com.lmax.disruptor.RingBuffer<org.apache.omid.tso.AbstractRequestProcessor.RequestEvent> requestRing
public void forwardCommit(long startTimestamp,
long commitTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx,
org.apache.phoenix.thirdparty.com.google.common.base.Optional<Long> lowWatermark)
throws Exception
Exceptionpublic void forwardCommitRetry(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
throws Exception
Exceptionpublic void forwardAbort(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
throws Exception
Exceptionpublic void forwardTimestamp(long startTimestamp,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
throws Exception
Exceptionpublic void update(TSOStateManager.TSOState state) throws Exception
update in interface TSOStateManager.StateObserverstate - the new TSOStateInterruptedExceptionExceptionpublic void onEvent(org.apache.omid.tso.AbstractRequestProcessor.RequestEvent event, long sequence, boolean endOfBatch) throws Exception
onEvent in interface com.lmax.disruptor.EventHandler<org.apache.omid.tso.AbstractRequestProcessor.RequestEvent>Exceptionpublic void onTimeout(long sequence)
throws Exception
onTimeout in interface com.lmax.disruptor.TimeoutHandlerExceptionpublic void timestampRequest(org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
timestampRequest in interface RequestProcessorpublic void commitRequest(long startTimestamp,
Collection<Long> writeSet,
Collection<Long> tableIdSet,
boolean isRetry,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
commitRequest in interface RequestProcessorpublic void fenceRequest(long tableID,
org.jboss.netty.channel.Channel c,
MonitoringContext monCtx)
fenceRequest in interface RequestProcessorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2020 Apache Software Foundation. All rights reserved.