川合 孝典
and 1 contributors

NAME

Xpriori::XMS::ServerUtil - Start/Stop/Get Status/Create Database of Xpriori::XMS Database

SYNOPSIS

    use strict;
    use Xpriori::XMS::ServerUtil;
    my $oSvr = Xpriori::XMS::ServerUtil->new();
    #Create DB
    print "CREATE: " . $oSvr->createDb() . "\n";
    #STOP Server
    print "STOP  : " . $oSvr->stopServer() . "\n";
    #START Server
    print "START : " . $oSvr->startServer() . "\n";

DESCRIPTION

Xpriori::XMS::ServerUtil is a module for Start/Stop/Get Status/Create Database of Xpriori::XMS Database

new

$oSvr = Xpriori::XMS::ServerUtil->new();

Constructor. Creates a Xpriori::XMS::ServerUtil object.

startServer

$iRes = $oSvr->startServer();

starts Xpriori::XMS server. returns 1: OK, 0: NG, -1: Already started.

stopServer

$iRes = $oSvr->stopServer();

stops Xpriori::XMS server. returns 1: OK, 0: NG, -1: Already stopped.

createDb

$iRes = $oSvr->createDb();

deletes old one and creates new database. Path of Xpriori::XMS utility and administrator's password will be read from Xpriori::XMS::Config.(see %Xpriori::XMS::Config::_svrCnf).

CAUTION : Existed Database will be deleted completely.

getStatus

$iRes = $oSvr->getStatus();

gets

NOTICE

This module was tested under only Win32.

SEE ALSO

Xpriori::XMS::ServerUtil::Win32, Xpriori::XMS::ServerUtil::Solaris, Xpriori::XMS::Config

AUTHOR

KAWAI,Takanori kwitknr@cpan.org

COPYRIGHT

The Xpriori::XMS::ServerUtil module is Copyright (c) 2009 KAWAI,Takanori, Japan. All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.