
PITA::Guest::Storage::Simple - A (relatively) simple Guest Storage object

The PITA::Guest::Storage class provides an API for cataloguing and retrieving Guest images, with all the data stored on the filesystem using the native XML file formats.
Guest image location and searching is done the long way, with no indexing.

my $store = PITA::Guest::Storage::Simple->new(
storage_dir => '/var/pita/storage',
);
The new method creates a new simple storage object. It takes a single named param
Returns a PITA::Guest::Storage::Simple object, or throws an exception on error.
The storage_dir accessor returns the location of the directory that serves as the root of the data store.
my $store = PITA::Guest::Storage::Simple->new(
storage_dir =>
);
The create constructor creates a new PITA::Guest::Storage::Simple repository.
The storage_lock method returns the location of the storage lock file.
The lock file is taken by a PITA::Guest::Storage::Simple object at constructor-time, and hold for the duration of the object's existance.
Returns a file path string.
The storage_lock_take method takes a lock on the storage_lock file, creating it if needed (in the create method case).
It does not wait to take the lock, failing immediately if the lock cannot be taken.
Returns true if the lock is taken, false if the lock cannot be taken, or throws an exception on error.
If we have a lock on the storage, returns the lock object for the lock.
Returns a XXXXXX object or false if we do not have a lock
If we have a lock on the storage, release the lock.
Returns true once the lock is released, or throws an exception on error or if the object does not hold the lock.

Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PITA
For other issues, contact the author.

Adam Kennedy <adamk@cpan.org>

PITA::Guest::Storage, PITA, http://ali.as/pita/

Copyright 2005, 2006 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.