File: Schedule.pod

package info (click to toggle)
libnetapp-perl 500.002-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: perl: 5,695; makefile: 2
file content (47 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

=head1 NAME

NetApp::Snapshot::Schedule -- OO class which represents a snapshot schedule

=head1 SYNOPSIS

    use NetApp::Filer;
    use NetApp::Aggregate;
    use NetApp::Volume;
    use NetApp::Snapshot;

    my $filer = NetApp::Filer->new({ .... });

    my $volume = $filer->get_volume( $volname );

    my $schedule = $volume->get_snapshot_schedule;

    $volume->set_snapshot_schedule(
        weekly		=> 0,
        daily		=> 2,
        hourly  	=> 4,
        hourlist	=> [ 4, 8, 12, 16 ],
    );

=head1 DESCRIPTION

This class encapsulates a snapshot schedule for an aggregate of volume.

=head1 INSTANCE METHODS

=head2 get_parent

This method returns the parent object for the schedule, which is
either a NetApp::Aggregate or NetApp::Volume object.

=head2 get_weekly, get_daily, get_hourly

These methods return the number of weekly, daily, or hourly snapshots
in the schedule.

=head2 get_hourlist

This method returns a list of integers, each of which is one of the
hours at which to create an hourly snapshot.

=cut