NAME

Bric::Dist::Action::Akamaize - Class to Akamaize resources

VERSION

$Revision: 1.6 $

DATE

$Date: 2002/01/06 04:40:36 $

SYNOPSIS

use Bric::Dist::Action::Akamaize;

my $id = 2; # Assume that this is an akamaize action.
# This line will automatically instantiate the correct subclass.
my $action = Bric::Dist::Action->lookup({ id => $id });

# Access its properties.
my $dns_name = $action->get_dns_name;
$action = $action->set_dns_name($dns_name);
my $cp_code = $action->get_cp_code;
$action = $action->set_cp_code($cp_code);
my $seed_a = $action->get_seed_a;
$action = $action->set_seed_a($seed_a);
my $seed_b = $action->get_seed_b;
$action = $action->set_seed_b($seed_b);

# Perform the action on a list of resources.
action = $action->do_it($resources_href);
# Undo the action on a list of resources.
action = $action->undo_it($resources_href);

DESCRIPTION

This subclass of Bric::Dist::Action handles the Akamiazation of resources. It requires the properties DNS Name, CP Code, Seed A, and Seed B to do its job. See the accessors below.

INTERFACE

Constructors

Inherited from Bric::Dist::Action.

Destructors

$ak->DESTROY

Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Class Methods

my $bool = Bric::Dist::Action::Akamaize->has_more()

Returns true to indicate that this action has more properties than does the base class (Bric::Dist::Action).

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

$meths = Bric::Biz::Person::User->my_meths
(@meths || $meths_aref) = Bric::Biz::Person::User->my_meths(TRUE)

Returns an anonymous hash of instrospection data for this object. If called with a true argument, it will return an ordered list or anonymous array of intrspection data. The format for each introspection item introspection is as follows:

Each hash key is the name of a property or attribute of the object. The value for a hash key is another anonymous hash containing the following keys:

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Instance Methods

In addition to the methods inherited from Bric::Dist::Action, Bric::Dist::Action::Akamaize offers the following class methods:

my $dns_name = $action->get_dns_name

Returns the DNS name required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $action->set_dns_name($dns_name)

Sets the DNS name required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

my $cp_code = $action->get_cp_code

Returns the CP Code required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $action->set_cp_code($cp_code)

Sets the CP Code required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

my $seed_a = $action->get_seed_a

Returns seed A, which is required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $action->set_seed_a($seed_a)

Sets seed A, which is required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

my $seed_b = $action->get_seed_b

Returns seed B, which is required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $action->set_seed_b($seed_b)

Sets seed B, which is required to akamaize files.

Throws:

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $action->do_it($job, $server_type)

Akamaizes the files for a given job and server type.

Throws:

Side Effects: NONE.

Notes: NONE.

PRIVATE

Private Class Methods

NONE.

Private Instance Methods

$action = $action->_clear_attr

Deletes all attributes from this Bric::Dist::Action::Akamaize instnace. Called by Bric::Dist::Action::set_type() above so that all the attributes can be cleared before reblessing the action into a different action subclass.

Throws:

Side Effects: NONE.

Notes: NONE.

Private Functions

my $value = &$get_attr($key, $self, $value, $set)

Thin accessor to attributes. The variables are defined as follows:

Throws:

Side Effects: NONE.

Notes: NONE.

NOTES

NONE.

AUTHOR

David Wheeler <david@wheeler.net>

SEE ALSO

Bric, Bric::Dist::Action

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 125:

'=item' outside of any '=over'

Around line 224:

Expected '=item *'

Around line 226:

Expected '=item *'

Around line 228:

Expected '=item *'

Around line 230:

Expected '=item *'

Around line 232:

Expected '=item *'

Around line 234:

Expected '=item *'

Around line 236:

Expected '=item *'

Around line 354:

You forgot a '=back' before '=head2'

Around line 1093:

=back doesn't take any parameters, but you said =back 4