28 Nov 2009 11:59:14 UTC
- Distribution: mmm
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (439 / 71 / 12)
- KwaliteeBus factor: 0
- 31.55% Coverage
- License: unknown
- Activity24 month
- Download (134.16KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNANARDON Olivier Thauvin
- COPYRIGHT AND LICENSE
An object to retain host information
Create a MMM::Host object from information found in hash passed as arguments.
my $mirror MMM::Mirror->new( host => 'host.domain' );
Return the hostname of the host
Return the revision of the entry. The revision is an id to identify if an entry is newer than another for same mirror.
Reset revision to current timestamp
Return the latitude and the longitude for this host
Try to use various method to find latitude and longitude and return them
Get and set information from hostip.info website
Try to find geolocalisation from DNS LOC record
Set the geolocalisation for this host
Calcule the distance (angle in degrees) to another host
Compare two host entry and return true if they identify the same computer
Get unknown values from $host if defined.
Return a xml string describing this mirror.
See also <MMM::MirrorList::xml_output>
Olivier Thauvin <email@example.com>
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.