Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
JournalConsumerThread(Map<String,String> parameters,
String role,
ServerInterface server,
JournalReader reader,
JournalRecoveryLog recoveryLog)
Store references to all of this stuff, but we can't start work without a
ManagementDelegate is provided, and we won't get that until the
post-initialization stage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Wait until the server completes its initialization, then process journal
entries until the reader says there are no more, or until a shutdown is
requested.
|
void |
setManagementDelegate(ManagementDelegate delegate)
Now that we have a ManagementDelegate to perform the operations, we can
start working.
|
void |
shutdown()
Set the flag saying that it's time to quit.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic JournalConsumerThread(Map<String,String> parameters, String role, ServerInterface server, JournalReader reader, JournalRecoveryLog recoveryLog)
public void setManagementDelegate(ManagementDelegate delegate)
public void run()
public void shutdown()
Copyright © 2013 DuraSpace. All Rights Reserved.