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


Xpriori-XMS documentation  | view source Contained in the Xpriori-XMS distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    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

Top

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

Top

This module was tested under only Win32.

SEE ALSO

Top

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

AUTHOR

Top

KAWAI,Takanori kwitknr@cpan.org

COPYRIGHT

Top


Xpriori-XMS documentation  | view source Contained in the Xpriori-XMS distribution.