Utility classes for defining the time saving transfer of data from the reader to the write using a LightQueue as a Pipe between the reader and the writer.
Bases: object
Ensures that image data is written to in the glance client and that it is in correct (‘active’)state.
Bases: object
Class that reads chunks from the input file and writes them to the output file till the transfer is completely done.
Bases: eventlet.queue.LightQueue
The pipe to hold the data which the reader writes to and the writer reads from.
A place-holder to maintain consistency.
Read data from the pipe. Chunksize if ignored for we have ensured that the data chunks written to the pipe by readers is the same as the chunks asked for by the Writer.
Set the file’s current position at the offset.
Get size of the file to be read.
Put a data item in the pipe.