Bio::EnsEMBL::Hive
AnalysisJob
Toolbar
Summary
Bio::EnsEMBL::Hive::AnalysisJob
Package variables
No package variables defined.
Included modules
Synopsis
No synopsis!
Description
An AnalysisJob is the link between the input_id control data, the analysis and
the rule system. It also tracks the state of the job as it is processed
Methods
adaptor | No description | Code |
analysis_id | No description | Code |
branch_code | No description | Code |
completed | No description | Code |
dbID | No description | Code |
hive_id | No description | Code |
input_id | No description | Code |
job_claim | No description | Code |
new | No description | Code |
print_job | No description | Code |
query_count | No description | Code |
retry_count | No description | Code |
runtime_msec | No description | Code |
status | No description | Code |
stderr_file | No description | Code |
stdout_file | No description | Code |
update_status | No description | Code |
Methods description
None available.
Methods code
sub adaptor
{ my $self = shift;
$self->{'_adaptor'} = shift if(@_);
return $self->{'_adaptor'}; } |
sub analysis_id
{ my $self = shift;
$self->{'_analysis_id'} = shift if(@_);
return $self->{'_analysis_id'}; } |
sub branch_code
{ my $self = shift;
$self->{'_branch_code'} = shift if(@_);
$self->{'_branch_code'} = 1 unless(defined($self->{'_branch_code'}));
return $self->{'_branch_code'}; } |
sub completed
{ my $self = shift;
$self->{'_completed'} = shift if(@_);
return $self->{'_completed'}; } |
sub dbID
{ my $self = shift;
$self->{'_dbID'} = shift if(@_);
return $self->{'_dbID'}; } |
sub hive_id
{ my $self = shift;
$self->{'_hive_id'} = shift if(@_);
return $self->{'_hive_id'}; } |
sub input_id
{ my $self = shift;
$self->{'_input_id'} = shift if(@_);
return $self->{'_input_id'}; } |
sub job_claim
{ my $self = shift;
$self->{'_job_claim'} = shift if(@_);
return $self->{'_job_claim'}; } |
sub new
{ my ($class,@args) = @_;
my $self = bless {}, $class;
return $self; } |
sub print_job
{ my $self = shift;
my $logic_name ='';
$logic_name = $self->adaptor->db->get_AnalysisAdaptor->fetch_by_dbID($self->analysis_id)->logic_name if($self->adaptor);
printf("job_id=%d %s(%d) retry=%d input_id='%s'\n",
$self->dbID,
$logic_name,
$self->analysis_id,
$self->retry_count,
$self->input_id);
}
1; } |
sub query_count
{ my $self = shift;
$self->{'_query_count'} = shift if(@_);
$self->{'_query_count'} = 0 unless(defined($self->{'_query_count'}));
return $self->{'_query_count'}; } |
sub retry_count
{ my $self = shift;
$self->{'_retry_count'} = shift if(@_);
$self->{'_retry_count'} = 0 unless(defined($self->{'_retry_count'}));
return $self->{'_retry_count'}; } |
sub runtime_msec
{ my $self = shift;
$self->{'_runtime_msec'} = shift if(@_);
$self->{'_runtime_msec'} = 0 unless(defined($self->{'_runtime_msec'}));
return $self->{'_runtime_msec'}; } |
sub status
{ my $self = shift;
$self->{'_status'} = shift if(@_);
return $self->{'_status'}; } |
sub stderr_file
{ my $self = shift;
$self->{'_stderr_file'} = shift if(@_);
return $self->{'_stderr_file'}; } |
sub stdout_file
{ my $self = shift;
$self->{'_stdout_file'} = shift if(@_);
return $self->{'_stdout_file'}; } |
update_status | description | prev | next | Top |
sub update_status
{ my ($self, $status ) = @_;
return unless($self->adaptor);
$self->status($status);
$self->adaptor->update_status($self); } |
General documentation
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _