NAME

XprioriXMS::ServerUtil - Start/Stop/Get Status/Create Database of XprioriXMS Database

SYNOPSIS

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

DESCRIPTION

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

new

$oSvr = XprioriXMS::ServerUtil->new();

Constructor. Creates a XprioriXMS::ServerUtil object.

startServer

$iRes = $oSvr->startServer();

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

stopServer

$iRes = $oSvr->stopServer();

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

createDb

$iRes = $oSvr->createDb();

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

CAUTION : Existed Database will be deleted completely.

getStatus

$iRes = $oSvr->getStatus();

gets

NOTICE

This module was tested under only Win32.

SEE ALSO

XprioriXMS::ServerUtil::Win32, XprioriXMS::ServerUtil::Solaris, XprioriXMS::Config

AUTHOR

KAWAI,Takanori kwitknr@cpan.org

COPYRIGHT

The XprioriXMS::ServerUtil module is Copyright (c) 2007 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.