A listing of files within multifiles for management of client-side synchronization with a server-provided set of files.
More...
|
| __init__ () |
| Primarily used for testing. More...
|
|
| __init__ (Filename server_file, Filename client_file) |
| Create a download db with these client and server dbs. More...
|
|
| __init__ (Ramfile server_file, Filename client_file) |
| Create a download db with these client and server dbs. More...
|
|
| addClientMultifile (str server_mfname) |
|
| addVersion (const Filename name, const HashVal hash, int version) |
| Appends a new version of the file onto the end of the list, or changes the hash associated with a version previously added. More...
|
|
bool | clientMultifileComplete (str mfname) |
| A multifile is complete when it is completely downloaded. Note: it may already be decompressed or extracted and it is still complete. More...
|
|
bool | clientMultifileDecompressed (str mfname) |
|
bool | clientMultifileExists (str mfname) |
|
bool | clientMultifileExtracted (str mfname) |
|
| createNewServerDb () |
| Used on the server side makefiles to create a new clean server db. More...
|
|
| deleteClientMultifile (str mfname) |
|
| expandClientMultifile (str mfname) |
|
HashVal | getClientMultifileHash (str mfname) |
| Return the hash value of the file we are working on. More...
|
|
str | getClientMultifileName (int index) |
|
Phase | getClientMultifilePhase (str mfname) |
|
int | getClientMultifileSize (str mfname) |
|
int | getClientNumMultifiles () |
|
const HashVal | getHash (const Filename name, int version) |
| Returns the MD5 hash associated with the indicated version of the indicated file. More...
|
|
int | getNumVersions (const Filename name) |
| Returns the number of versions stored for the indicated file. More...
|
|
str | getServerFileName (str mfname, int index) |
|
HashVal | getServerMultifileHash (str mfname) |
| Return the hash value of the server file. More...
|
|
str | getServerMultifileName (int index) |
|
Phase | getServerMultifilePhase (str mfname) |
|
int | getServerMultifileSize (str mfname) |
|
int | getServerNumFiles (str mfname) |
|
int | getServerNumMultifiles () |
|
int | getVersion (const Filename name, const HashVal hash) |
| Returns the version number of this particular file, determined by looking up the hash generated from the file. Returns -1 if the version number cannot be determined. More...
|
|
bool | hasVersion (const Filename name) |
| Returns true if the indicated file has version information, false otherwise. Some files recorded in the database may not bother to track versions. More...
|
|
| insertNewVersion (const Filename name, const HashVal hash) |
| Inserts a new version 1 copy of the file, sliding all the other versions up by one. More...
|
|
| output (Ostream out) |
|
DownloadDb::Db | readDb (Filename file, bool want_server_info) |
|
DownloadDb::Db | readDb (Ramfile file, bool want_server_info) |
|
| serverAddFile (str mfname, str fname) |
|
| serverAddMultifile (str mfname, Phase phase, int size, int status) |
|
| setClientMultifileComplete (str mfname) |
|
| setClientMultifileDecompressed (str mfname) |
|
int | setClientMultifileDeltaSize (str mfname, int size) |
|
| setClientMultifileExtracted (str mfname) |
|
| setClientMultifileHash (str mfname, HashVal val) |
| Set the hash value of file we are working on. More...
|
|
| setClientMultifileIncomplete (str mfname) |
|
| setClientMultifileSize (str mfname, int size) |
|
| setNumVersions (const Filename name, int num_versions) |
| Reduces the number of versions of a particular file stored in the ddb by throwing away all versions higher than the indicated index. More...
|
|
| setServerMultifileHash (str mfname, HashVal val) |
| Set the hash value of file we are working on. More...
|
|
| setServerMultifileSize (str mfname, int size) |
|
| write (Ostream out) |
|
bool | writeClientDb (Filename file) |
|
bool | writeDb (Filename file, DownloadDb::Db db, bool want_server_info) |
|
bool | writeServerDb (Filename file) |
|
| writeVersionMap (Ostream out) |
|
A listing of files within multifiles for management of client-side synchronization with a server-provided set of files.
This class manages one copy of the database for the client, representing the files on the client system, and another copy for the server, representing the files the server has available.