|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.machine.AsynchronousFileWriter
public abstract class AsynchronousFileWriter
Interface to allow the files generated by the compiler to be serialized to the program resource repository on a separate thread. Starts automatically when adding a file to write.
| Nested Class Summary | |
|---|---|
static class |
AsynchronousFileWriter.FileData
The in-memory version of a file. |
| Constructor Summary | |
|---|---|
AsynchronousFileWriter()
|
|
| Method Summary | |
|---|---|
abstract void |
addFileToWrite(AsynchronousFileWriter.FileData fileData,
CompilerMessageLogger logger)
The compilation thread calls this method to add a file to write. |
abstract void |
stopAcceptingFiles()
The compilation thread must call this method after it finishes with all calls to addFileToWrite. |
abstract void |
waitForFilesToBeWritten(CompilerMessageLogger logger)
Wait for the file writer to meet the following conditions: - stopAcceptingFiles() has been called - all files have been written |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousFileWriter()
| Method Detail |
|---|
public abstract void stopAcceptingFiles()
public abstract void addFileToWrite(AsynchronousFileWriter.FileData fileData,
CompilerMessageLogger logger)
fileData - cannot be null.logger - the logger to use for logging error messages.
public abstract void waitForFilesToBeWritten(CompilerMessageLogger logger)
throws InterruptedException
logger - the logger to use for logging error messages.
InterruptedException - if the caller is interrupted while waiting.
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||