NAME
MMM::Host
DESCRIPTION
An object to retain host information
METHODS
new
Create a MMM::Host object from information found in hash passed as arguments.
my $mirror MMM::Mirror->new( host => 'host.domain' );
hostname
Return the hostname of the host
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
geo
Return the latitude and the longitude for this host
get_geo
Try to use various method to find latitude and longitude and return them
get_hostiploc
Get and set information from hostip.info website
get_dnsloc
Try to find geolocalisation from DNS LOC record
set_geo($latitude, $longitude)
Set the geolocalisation for this host
distance( $host )
Calcule the distance (angle in degrees) to another host
same_host($host)
Compare two host entry and return true if they identify the same computer
sync_host($host)
Get unknown values from $host if defined.
xml_output
Return a xml string describing this mirror.
See also <MMM::MirrorList::xml_output>
AUTHOR
Olivier Thauvin <nanardon@nanardon.zarb.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 Olivier Thauvin
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.