NAME
NexTrieve::Daemon - handle NexTrieve as a daemon
SYNOPSIS
use NexTrieve;
die unless NexTrieve::Daemon->executable;
$ntv = NexTrieve->new( | {method => value} );
# using collections
$collection = $ntv->Collection( path );
$daemon = $collection->Daemon( mnemonic );
# using direct access
$resource = $ntv->Resource( | file | xml | {method => value} );
$daemon = $ntv->Daemon( | file | $resource, | server:port, | {method => value} );
DESCRIPTION
The Daemon object of the Perl support for NexTrieve. Do not create directly, but through the Daemon method of the NexTrieve or the NexTrieve::Collection object.
CLASS METHODS
These methods are available as class methods.
executable
$executable = NexTrieve::Daemon->executable;
METHODS
These methods are available to the NexTrieve::Daemon object.
auto_shutdown
$daemon->auto_shutdown( 1 );
$auto_shutdown = $daemon->auto_shutdown;
indexdir
$daemon->indexdir( directory );
$directory = $daemon->indexdir;
Resource
$resource = $daemon->Resource( | file | xml | {method => value} );
serverport
$daemon->serverport( server:port | port );
$serverport = $daemon->serverport;
pid
$pid = $daemon->pid;
pidfile
$pidfile = $daemon->pidfile;
ping
$alive = $daemon->ping;
start
$exit = $daemon->start( | server:port | port, | user );
stop
$killed = $daemon->stop;
AUTHOR
Elizabeth Mattijsen, <liz@nextrieve.com>.
Please report bugs to <perlbugs@nextrieve.com>.
COPYRIGHT
Copyright (c) 1995-2002 Elizabeth Mattijsen <liz@nextrieve.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://www.nextrieve.com, the NexTrieve.pm and the other NexTrieve::xxx modules.