The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FileArchiveIndexer::Status - reporting indexing status

DESCRIPTION

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.

METHODS

status_log_remainder()

estimate of remaining seconds before all is indexed (assuming rate of indexing continues). returns number

status_log_can_report()

returns boolean if we have at least 2 entries, we can report.

status_log_seconds()

between first and last log entries, how many seconds appart returns number

status_log_count()

between first and last log entries, how many were indexed returns number

status_log_average()

average seconds each file took to index

status_log_remainder()

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.

status_log_enter()

will record timestamp and count of files indexed in the archive.

files_locked()

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

percentage_indexed()

returns percent of files indexed.

total_files_pending()

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

total_files_pending_nocache()

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.

total_files_indexed()

counts entries in the md5sum table

cached in object

total_files()

returns the count of files in the files table

cached in object

SEE ALSO

LFileArchiveIndexer>

AUTHOR

Leo Charre