|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
fedora.server.journal.JournalConsumerThread
public class JournalConsumerThread
Title: JournalConsumerThread.java
Description: Process the journal entries as a separate Thread, while the JournalConsumer is blocking all calls from outside.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
JournalConsumerThread(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Thread |
|---|
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, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JournalConsumerThread(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String role,
ServerInterface server,
JournalReader reader,
JournalRecoveryLog recoveryLog)
| Method Detail |
|---|
public void setManagementDelegate(ManagementDelegate delegate)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||