NAME
Parallel::Mpich::MPD::Job - Mpich MPD job wrapper
SYNOPSIS
EXPORT
FUNCTIONS
METHOD
infos()
Get information of this job. Information contains these values:
my %info=$job->infos(); $info{jobid}; $info{jobalias}; $info{username}; $info{hosts}[0..N]{host}; $info{hosts}[0..N]{pid}; $info{hosts}[0..N]{sid}; $info{hosts}[0..N]{rank}; $info{hosts}[0..N]{cmd};
kill()
Kill this job. See examples:
Parallel::Mpich::MPD::findJob(alias => 'olivier1')->kill(); Parallel::Mpich::MPD::findJob(jobid => '1@linux02_32996')->kill();
signal()
Send a sig to this job.
It return false if not ok.
examples:
# SIGQUIT, SIGKILL, SIGSTOP, SIGCONT, SIGXCPU, SIGUSR1, SIGUSR2
Parallel::Mpich::MPD::findJob(alias => 'olivier1')->signal("SIGSTOP"); Parallel::Mpich::MPD::findJob(alias => 'olivier1')->signal("SIGCONT"); Parallel::Mpich::MPD::findJob(jobid => '1@linux02_32996')->kill();
sig_stop()
Stop this job.
return false if not ok
# NOTE:
# You cloud check the state with the following ps command:
# ps -eo state,nice,user,comm
# ps state des:
#D Uninterruptible sleep (usually IO)
#R Running or runnable (on run queue)
#S Interruptible sleep (waiting for an event to complete)
#T Stopped, either by a job control signal or because it is being traced.
#W paging (not valid since the 2.6.xx kernel)
#X dead (should never be seen)
#Z Defunct ("zombie") process, terminated but not reaped by its parent.
sig_cont()
Continue this job.
return false if not ok
kill()
Send a kill signal
equals($job)
compare towo jobs and return true/false
TODO: this function is not finished .
toSummaryString()
return a string for the current job
AUTHOR
Olivier Evalet, Alexandre Masselot, <alexandre.masselot at genebio.com>
BUGS
Please report any bugs or feature requests to bug-parallel-mpich-mpd at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parallel-Mpich-MPD. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Parallel::Mpich::MPD
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2006 Olivier Evalet, Alexandre Masselot, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.