line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::FuncNet::JobStatus; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
65
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
282
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.2'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
WebService::FuncNet::JobStatus - An object representing the status of a FuncNet session |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 0.1 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
This document describes JobStatus version 0.1 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use WebService::FuncNet::JobStatus; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $status = JobStatus->new( $myStatus, $myXmlTrace ); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
print $status->status(); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
print $status->trace(); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 new |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Constructs a new JobStatus object with a status code and XML trace supplied. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub new { |
33
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
34
|
0
|
|
|
|
|
|
my $self = { |
35
|
|
|
|
|
|
|
STATUS => shift, |
36
|
|
|
|
|
|
|
TRACE => shift |
37
|
|
|
|
|
|
|
}; |
38
|
0
|
|
|
|
|
|
bless $self, $class; |
39
|
0
|
|
|
|
|
|
return $self; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 status |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Returns the actual status code of the job: I, I, I, I, I, I. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub status { |
49
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
50
|
0
|
|
|
|
|
|
return $self->{ STATUS }; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 trace |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Returns the raw XML of the status response. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub trace { |
60
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
61
|
0
|
|
|
|
|
|
return $self->{ TRACE }; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
65
|
|
|
|
|
|
|
__END__ |