NAME

Data::AnyXfer::Elastic::Import::SpawnTask::Process - represents a spawned import task process on a remote host

DESCRIPTION

Used by Data::AnyXfer::Elastic::Import::SpawnTask::Remote to represent a spawned task process.

Uses Data::AnyXfer::Elastic::Import::SpawnTask::Remote::Host underneath.

ATTRIBUTES

host_instance

REQUIRED.

A Data::AnyXfer::Elastic::Import::SpawnTask::Remote::Host instance for the target host.

METHODS

alive

if ( $process->alive ) { }

Check whether the process is still alive.

wait

$process->wait;

Blocks until the process finishes.

terminate

$process->terminate;

Attempts to terminate the process. It will try SIGHUP, SIGQUIT, SIGINT, and SIGKILL, once a second in turn (maximum try count is 5), before giving up.

COPYRIGHT

This software is copyright (c) 2019, Anthony Lucas.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.