Lire::DlfStore(3pm)

Lire::DlfStore3pm

Interface to a dlf store

Usage

  use Lire::DlfStore;
  my $store = Lire::DlfStore->open( "mystore", 1 );
  my $avail_streams = $store->dlf_streams;

Overview

open( $store_path, [ $create ] );

Opens a Lire::DlfStore residing in the directory pointed by $store_path and returns a Lire::DlfStore instance that can be used to access its content.

If the store $store_path wasn't created, the method will die unless the $create parameter was set to true.

If the store is locked by another process, the method will also die.

Trying to open the same store twice from the same process will fail.

close()

Calls this method to release the lock held by the current process on the store. If you don't call it, it will be called automatically when the store reference goes out of scope, but you better not rely on this to close your stores.

is_closed()

Returns true if this DlfStore was closed and cannot be used anymore.

path

Returns the path to the store. This is the argument used to create the store.

config

Returns the configuration of the store instantiated as a Lire::Config::ConfigFile.

import_jobs()

Returns as an array ref the list of ImportJob currently configured in the DlfStore

report_jobs()

Returns as an array ref the list of ReportJob currently configured in the DlfStore

has_report_config( $name )

Returns true if there is a report configuration named $name in this DlfStore.

report_configurations()

Returns as an array ref the list of ReporConfig currently configured in the DlfStore

get_report_config( $name )

Returns the Lire::ReportConfig object named $name. Throws an exception if it doesn' exists.

Version

$Id: DlfStore.pm,v 1.41 2011/11/15 16:48:40 wraay Exp $

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Author

  Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.