| Xpriori-XMS documentation | view source | Contained in the Xpriori-XMS distribution. |
Xpriori::XMS::ServerUtil - Start/Stop/Get Status/Create Database of Xpriori::XMS Database
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";
Xpriori::XMS::ServerUtil is a module for Start/Stop/Get Status/Create Database of Xpriori::XMS Database
$oSvr = Xpriori::XMS::ServerUtil->new();
Constructor. Creates a Xpriori::XMS::ServerUtil object.
$iRes = $oSvr->startServer();
starts Xpriori::XMS server. returns 1: OK, 0: NG, -1: Already started.
$iRes = $oSvr->stopServer();
stops Xpriori::XMS server. returns 1: OK, 0: NG, -1: Already stopped.
$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.
$iRes = $oSvr->getStatus();
gets
This module was tested under only Win32.
Xpriori::XMS::ServerUtil::Win32, Xpriori::XMS::ServerUtil::Solaris, Xpriori::XMS::Config
KAWAI,Takanori kwitknr@cpan.org
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.
| Xpriori-XMS documentation | view source | Contained in the Xpriori-XMS distribution. |