Class SlaveController.SlaveLogReceiverThread
java.lang.Object
java.lang.Thread
org.apache.derby.impl.store.replication.slave.SlaveController.SlaveLogReceiverThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
SlaveController
Thread that listens for incoming messages from the master and
applies chunks of log records to the local log files.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SlaveLogReceiverThread with a debugging-friendly thread name. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleLogChunk
(byte[] logChunk) Parses a chunk of log received from the master, and applies the individual log records to the local log file.void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
SlaveLogReceiverThread
SlaveLogReceiverThread()Creates a new instance of SlaveLogReceiverThread with a debugging-friendly thread name.
-
-
Method Details
-
run
public void run() -
handleLogChunk
Parses a chunk of log received from the master, and applies the individual log records to the local log file.- Parameters:
logChunk
- A chunk of log records received from the master- Throws:
StandardException
- If the chunk of log records could not be parsed or the local log file is out of synch with the master log file.
-