NAME

CA::AutoSys::Job - Object representing an AutoSys job.

INSTANCE METHODS

next_job()

my $job = $jobs->next_job() ;

Returns the next job from a list of jobs previously acquired by a call to find_jobs().

find_children()

my $children = $job->find_children() ;

Returns child jobs for a given job object. The child jobs can be traversed like this:

my $children = $job->find_children() ;
while (my $child = $children->next_child()) {
    # do something
    :
}

next_child()

my $child = $children->next_child() ;

Returns the next child from a list of child jobs previously acquired by a call to "find_children() ".

get_status()

my $status = $job_or_child->get_status() ;

Returns a hashref that can be queried for job status variables. See CA::AutoSys::Status for a list of possible status variables.

has_children()

my $rc = $job->has_children() ;

Returns 1 if the given job/child has children, 0 otherwise.

INSTANCE VARIABLES

job_name

print "job_name: ".$job->{job_name}."\n";

Contains the name of the AutoSys job.

job_type

print "job_type: ".$job->{job_type}."\n";

Contains the type of the job, c=JOB, b=BOX.

joid

print "joid: ".$job->{joid}."\n";

Contains the internal job id in the AutoSys database.

SEE ALSO

CA::AutoSys::Status, CA::AutoSys

AUTHOR

Sinisa Susnjar <sini@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2007 Sinisa Susnjar. All rights reserved.

This program is free software; you can use and redistribute it under the terms of the L-GPL. See the LICENSE file for details.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 169:

L<> starts or ends with whitespace

Around line 187:

L<> starts or ends with whitespace