GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Ubic::Result::Class(3) User Contributed Perl Documentation Ubic::Result::Class(3)

Ubic::Result::Class - ubic result object

version 1.58

    use Ubic::Result qw(result);

    my $result = result("already running");
    print $result->status; # running
    print "$result"; # already running

Ubic::Result::Class instances represent service operation results.

Many service actions can *do* something and *result* in something. So, this class dissects service operation into "action()" and "status()". For example, "already running" result means that current service status is "running" and action is "none".

Also, it carry custom comment and serialize result into common stringified form.

Ubic::Result::Class instances are usually created via "result()" function from Ubic::Result package.

Possible statuses:
running
not running
broken
down
autostarting

Actions are something that was done which resulted in current status by invoked method.

Possible actions:

started
stopped
none
reloaded

new({ type => $type, msg => $msg })
Constructor.
status()
Get status, see above for possible values.
action()
Get action.
as_string()
Get string representation.

Ubic::Result - service action's result.

Vyacheslav Matyukhin <mmcleric@yandex-team.ru>

This software is copyright (c) 2015 by Yandex LLC.

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

2015-01-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.