| 1 | package GRID::Cluster::Handle; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use GRID::Machine; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use GRID::Cluster::Handle; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use IO::Select; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | # Constructor | ||||||||||
| 11 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 12 | 0 | my $class = shift; | |||||||||
| 13 | |||||||||||
| 14 | 0 | my %opts = @_; | |||||||||
| 15 | |||||||||||
| 16 | 0 | my $self = \%opts; | |||||||||
| 17 | |||||||||||
| 18 | 0 | bless $self, $class; | |||||||||
| 19 | 0 | return $self; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | # Getters | ||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub get_readset { | ||||||||
|
Subroutine
get_readset: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 25 | 0 | my $self = shift; | |||||||||
| 26 | 0 | ▶ | return $self->{readset} if defined($self->{readset}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub get_proc { | ||||||||
|
Subroutine
get_proc: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 30 | 0 | my $self = shift; | |||||||||
| 31 | 0 | ▶ | return $self->{proc} if defined($self->{proc}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | sub get_rproc { | ||||||||
|
Subroutine
get_rproc: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 35 | 0 | my $self = shift; | |||||||||
| 36 | 0 | ▶ | return $self->{rproc} if defined($self->{rproc}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 0 | ▶ | sub get_wproc { | ||||||||
|
Subroutine
get_wproc: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 40 | 0 | my $self = shift; | |||||||||
| 41 | 0 | ▶ | return $self->{wproc} if defined($self->{wproc}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | 0 | ▶ | sub get_pid { | ||||||||
|
Subroutine
get_pid: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 45 | 0 | my $self = shift; | |||||||||
| 46 | 0 | ▶ | return $self->{pid} if defined($self->{pid}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | 0 | ▶ | sub get_id { | ||||||||
|
Subroutine
get_id: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 50 | 0 | my $self = shift; | |||||||||
| 51 | 0 | ▶ | return $self->{id} if defined($self->{id}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | 0 | ▶ | sub get_map_id_machine { | ||||||||
|
Subroutine
get_map_id_machine: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 55 | 0 | my $self = shift; | |||||||||
| 56 | 0 | ▶ | return $self->{map_id_machine} if defined($self->{map_id_machine}); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 57 | } | ||||||||||
| 58 | |||||||||||
| 59 | 1 | 1; | |||||||||
| 60 | |||||||||||
| 61 | __END__ | ||||||||||