NAME

Salvation::Service::State - Service state object

REQUIRES

Moose

METHODS

view_output

$state -> view_output();

Returns an instance of Salvation::Service::View::Stack, or an ArrayRef if such instances (depending on Salvation::Service::View::MULTINODE value), as it has been returned from the view after it has been processed.

output

$state -> output();

Returns a value as it has been set by Salvation::Service::OutputProcessor after its job is done.

stop

$state -> stop();

Mark service as stopped. This will interrupt a service on the next state check which occurs often during the execution flow stage changes.

resume

$state -> resume();

Remove "stopped" mark from service.

stopped

$state -> stopped();

Returns a boolean value indicating whether service is marked as "stopped", or not.

skip_view

$state -> skip_view();

Tells service to ignore upcoming view processing. Should be called at stages before view processing actually began.

use_view

$state -> use_view();

If the service been told to ignore view processing - cancels such ignorance. Should be called at stages before view processing actually began.

need_to_skip_view

$state -> need_to_skip_view();

Returns a boolean value indicating whether service has been told to ignore view processing, or not.