FileArchiveIndexer::Status - reporting indexing status
This is to report on status of indexing and the database. This module is not to be used standalone- the methods in this module are inherited by FileArchiveIndexer.
estimate of remaining seconds before all is indexed (assuming rate of indexing continues). returns number
returns boolean if we have at least 2 entries, we can report.
between first and last log entries, how many seconds appart returns number
between first and last log entries, how many were indexed returns number
average seconds each file took to index
guess of how many more seconds until all files indexed this is assuming indexing rate continues as has been bettween first interval and last interval.
will record timestamp and count of files indexed in the archive.
returns array ref of files locked for indexing each element is an array ref with abs path, timestamp, and hostname of the lock hostname may be undef(?) TODO
returns percent of files indexed.
returns number of files awaiting indexing, not cached in object this is a rough number for statistical purposes only it really returns the total files minuss the total indexed.
please note that 3 files in different locations in the files table who share the same md5sum (copies) are counted as 1 file
same as total_files_pending, but not cached in object if you want to get count of files pending, then index, and count again in same object instance, call total_files_indexed_nocache() instead.
The multiple options may seem redundant, but because of the nature of the cpu usage, both are useful.
counts entries in the md5sum table
cached in object
returns the count of files in the files table
LFileArchiveIndexer>
Leo Charre
To install FileArchiveIndexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FileArchiveIndexer
CPAN shell
perl -MCPAN -e shell install FileArchiveIndexer
For more information on module installation, please visit the detailed CPAN module installation guide.