The Supp process handle PUBLISHER queries about supports.
A score is computed for each local support, based on its age (t).
However if support wasn’t checked recently (checkTTL) its score is set to 0 as it is supposed to be corrupted or lost.
t <= T: score = ({T-t \over T})^{-a} *(M-b))+b
t > T: score = ({1 + c*(t-T)}^{-1}) * b
where: (default values)
is the support time to live (suppTTL)
is the current support age
power that reduce score from age of supports (powSupp)
the maximum score (maxScore)
maximum score for outdated supports (badScore)
factor that reduce score of out-dated supports (factSupp)
Notice: with the default values this gives:
t <= T: score = (\sqrt{T-t \over T} *(9))+1
t > T: score = {1 \over 1 + 2*(t-T)}
Notice:
$ mediatex ls supp or written into /etc/mediatex/mdtx-COLL/servers.txt file). So theses parameters appears both into /etc/mediatex/mdtx.conf and /etc/mediatex/mdtx-COLL/servers.txt.
fileScore parameter from /etc/mediatex/mdtx.conf file was checked recently (fileTTL), else score is set to 0 as it is supposed to be deleted from the file-system.
Process conceptual model:
$ mediatex ls supp$ mediatex add supp supp on path$ mediatex add file path$ mediatex del supp supp$ mediatex note supp supp as text$ mediatex check supp supp on filefrom PUBLISHER (see Who): manage local supports.
withdraw_supp()to conf (see conf): withdraw a local supports from collections.
# /usr/share/mediatex/scripts/mount.sh# /usr/share/mediatex/scripts/umount.shto mount-umount (see mount-umount): manage mounting ISO devices.
<have>to have (see have): tels SERVER a support is now available.
Examples:
Code: