POE::Component::Supervisor::Handle - Base role for supervision handles


POE-Component-Supervisor documentation  | view source Contained in the POE-Component-Supervisor distribution.

Index


NAME

Top

POE::Component::Supervisor::Handle - Base role for supervision handles

SYNOPSIS

Top

    # see Handle::Proc and Handle::Session

DESCRIPTION

Top

This is a base role for supervision handles.

ATTRIBUTES

Top

supervisor

The POE::Component::Supervisor utilizing over this handle.

child

The child descriptor this handle was spawned for.

spawned_callback
stopped_callback

These callbacks are called as handle methods with the arguments sent to the supervisor.

Note that they are not invoked with POE's calling convention, but rather arbitrary arguments from the supervision handle.

METHODS

Top

stop

Stops the running supervised thingy.

Required.

is_running

Checks if the supervised thingy is running.

Required.

stop_for_restart

By default an alias to stop.

If stopping for the purpose of a restart should be handled differently this can be overridden.


POE-Component-Supervisor documentation  | view source Contained in the POE-Component-Supervisor distribution.