<<

NAME

Inca::Config::Suite::StoragePolicy - Storage policy for a Inca reporter

SYNOPSIS

  use Inca::Config::Suite::StoragePolicy;
  my $sp = new Inca::Config::Suite::StoragePolicy();
  $sp->addDepots( "cuzco.sdsc.edu:8258", "inca.sdsc.edu:8235" );

DESCRIPTION

A convenience object for handling the storage policy for a reporter. The storage policy is used by the depot to know where and how to store the reporter data. Currently, the storage policy is a list of depots that are interested in the reporter data.

CLASS METHODS

new( )

Class constructor which returns a new Inca::Config::Suite::StoragePolicy object.

addDepots( @depot_uris )

Add an arbitrary number of depot uris to the storage policy. The depot uris indicate the depot interested in the results of a reporter execution. E.g., addDepots( "cuzco.sdsc.edu:7777" )

Arguments:

depot_uris

Any number of strings containing a uri to a depot [host:port, ...]

equals( $sp )

Return true if $sp is equivalent to ourself; false otherwise.

Arguments:

sp

An object of type Inca::Config::Suite::StoragePolicy

AUTHOR

Shava Smallen <ssmallen@sdsc.edu>

CAVEATS/WARNINGS

No known problems.

<<