XprioriXMS::ServerUtil - Start/Stop/Get Status/Create Database of XprioriXMS Database
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";
XprioriXMS::ServerUtil is a module for Start/Stop/Get Status/Create Database of XprioriXMS Database
$oSvr = XprioriXMS::ServerUtil->new();
Constructor. Creates a XprioriXMS::ServerUtil object.
$iRes = $oSvr->startServer();
starts XprioriXMS server. returns 1: OK, 0: NG, -1: Already started.
$iRes = $oSvr->stopServer();
stops XprioriXMS server. returns 1: OK, 0: NG, -1: Already stopped.
$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.
$iRes = $oSvr->getStatus();
gets
This module was tested under only Win32.
XprioriXMS::ServerUtil::Win32, XprioriXMS::ServerUtil::Solaris, XprioriXMS::Config
KAWAI,Takanori kwitknr@cpan.org
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.
To install XprioriXMS::Http, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XprioriXMS::Http
CPAN shell
perl -MCPAN -e shell install XprioriXMS::Http
For more information on module installation, please visit the detailed CPAN module installation guide.