NAME

Bio::BioVeL::AsynchronousService::Mock - example asynchronous service

DESCRIPTION

This dummy service runs the 'sleep' shell command for the provided number of seconds, then returns with a simple text message.

METHODS

new

The constructor defines a single object property: the number of seconds the service should sleep for.

launch

Runs the shell's sleep command to demonstrate asynchronous operation. Updates the status as needed to indicate success or failure.

response_body

Returns a simple text string that specifies how long the process has slept for.