MMM::Mirror - MMM::Mirror documentation


mmm documentation  | view source Contained in the mmm distribution.

Index


NAME

Top

MMM::Mirror

DESCRIPTION

Top

An object to retain per mirror information

METHODS

Top

new

Create a MMM::Mirror object from information found in hash passed as arguments.

    my $mirror MMM::Mirror->new( url => 'rsync://host/foo/' );

url

Return the url of the mirror

host

Return the hostname of the mirror found in url

level

Return the level of this mirror in mirrors hierarchy

frequency

Period in minutes between sync performed by this mirror

source

Return the mirror source name from which this mirror is part of.

set_source($source)

Set the source name for this mirror.

hostinfo

Return a MMM::Host object proper to the mirror if any

get_geo

Load host geo info if any

random

Return a cached random value assigned to this mirror.

info

Return textual information about this mirror

revision

Return the revision of the entry. The revision is an id to identify if an entry is newer than another for same mirror.

refresh_revision

Reset revision to current timestamp

same_mirror($mirror)

Compare this mirror with another and return 1 if both entries refer to same mirror

sync_mirror($mirror)

Get unknown values from $mirror if defined.

xml_output

Return a xml string describing this mirror.

See also <MMM::MirrorList::xml_output>

AUTHOR

Top

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Top


mmm documentation  | view source Contained in the mmm distribution.