Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    VBTK::Server 0.20

    Download button

    No screenshots available
    Downloads: 535  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brent Henry | More programs
    Perl Artistic License / FREE
    July 15th, 2008, 03:14 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    VBTK::Server description

    VBTK::Server is the main server process for the VBTK toolkit.

    VBTK::Server is the main server process for the VBTK toolkit.

    SYNOPSIS

    Note that defining a VBTK::Server makes use of several modules. A typical configuration would look something like this:

    use VBTK::Server
    use VBTK::Actions::Email
    use VBTK::Actions::Email::Page

    # Setup email actions
    new VBTK::Actions::Email ( Name => 'emailMe', To => 'me@mydomain.com' );
    new VBTK::Actions::Email ( Name => 'emailBob', To => 'bob@mydomain.com' );

    # Setup paging actions
    new VBTK::Actions::Email::Page ( Name => 'pageMe', To => 'page.me@mydomain.com');
    new VBTK::Actions::Email::Page ( Name => 'pageBob', To => 'page.bob@mydomain.com');

    # Setup some action groups
    new VBTK::Actions ( Name => 'emailSA', SubActionList => 'emailMe,emailBob' );
    new VBTK::Actions ( Name => 'pageSA', SubActionList => 'pageMe,pageBob,emailSA' );

    # Initialize a server object.
    $server = new VBTK::Server (
    ObjectPrefix => 'sfo',
    SmtpHost => 'mysmtphost',
    MailFrom => 'vbtk@settomydomain.com',
    CompanyName => 'My Company',
    AdminEmail => 'sysop@settomydomain.com',
    );

    # Point to another VB server with which we will exchange heartbeats
    # and relay requests
    $server->addRemoteServer(
    RemoteURI => 'http://myotherserver:4712' );

    # Create templates to match up status change actions with objects

    # Critical objects, page and email
    $server->addTemplate (
    Pattern => 'nyc.*http|mainserver.*ping',
    StatusChangeActions => {
    Failed => 'pageSA',
    Expired => 'pageSA',
    Warning => 'emailSA' } );

    # Everything else, just email
    $server->addTemplate (
    Pattern => '.*',
    StatusChangeActions => {
    Failed => 'emailSA',
    Expired => 'emailSA',
    Warning => 'emailSA' } );

    # Start the server listening and handling requests.
    $server->run;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    VBTK toolkit | VBTK server | Perl module | VBTK | server | toolkit

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM