public class CommitLogPostProcessor extends AbstractProcessor
CommitLogPostProcessor is used to post-process commit logs in the COMMIT_LOG_RELOCATION_DIR
once the commit log has been processed by the CommitLogProcessor. How the commit log is post-processed
depends on the implementation detail of the CommitLogTransfer.| Modifier and Type | Field and Description |
|---|---|
private String |
commitLogRelocationDir |
private CommitLogTransfer |
commitLogTransfer |
private ExecutorService |
executor |
private static String |
NAME |
private static int |
SLEEP_MS |
private static int |
TERMINATION_WAIT_TIME_SECONDS |
private static int |
THREAD_POOL_SIZE |
| Constructor and Description |
|---|
CommitLogPostProcessor(CassandraConnectorContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Override destroy to clean up resources after stopping the processor
|
void |
process()
The actual work the processor is doing.
|
(package private) void |
shutDown(boolean await) |
getName, initialize, isRunning, start, stopprivate static final String NAME
private static final int SLEEP_MS
private static final int THREAD_POOL_SIZE
private static final int TERMINATION_WAIT_TIME_SECONDS
private final ExecutorService executor
private final String commitLogRelocationDir
private final CommitLogTransfer commitLogTransfer
public CommitLogPostProcessor(CassandraConnectorContext context)
public void process()
AbstractProcessorprocess in class AbstractProcessorpublic void destroy()
throws Exception
AbstractProcessordestroy in class AbstractProcessorExceptionvoid shutDown(boolean await)
Copyright © 2020 JBoss by Red Hat. All rights reserved.