|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.log.LogFlushTask
public class LogFlushTask
This class implements a task to issue asynchronous flush calls on active log files.
Important concurrency note: This class calls back into LogFile instances, which in turn call this class to register themselves. Methods on this class should *not* be synchronized as this would create the possibility of deadlock. Synchronization within this class is handled by the ConncurrentHashMap that contains the log files.
| Constructor Summary | |
|---|---|
LogFlushTask(long flushIntervalMillis)
Creates a new log sync task. |
|
| Method Summary | |
|---|---|
void |
addLogFile(LogFile logFile)
Adds a logFile to the list for regular synchronization. |
void |
cancel()
Signal that the task should end. |
boolean |
isFinished()
Returns true if the task has completed. |
void |
removeLogFile(LogFile logFile)
Removes a logfile from the list. |
void |
run()
Extracts from the relay log until cancelled or we fail. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFlushTask(long flushIntervalMillis)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void addLogFile(LogFile logFile)
logFile - public void removeLogFile(LogFile logFile)
logFile - public void cancel()
public boolean isFinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||