NAME
ObjStore::ServerDB - Generic Real-Time Database Server
SYNOPSIS
require ObjStore::ServerDB;
require E::GUI;
$$o{app} = ObjStore::ServerDB->new('/research/tmp/qsg_gui');
my $top = $$o{app}->hash;
$top->new_object('preferences', 'E::GUI');
DESCRIPTION
Provides a remote method invokation service for persistent objects.
BOOT METHOD
Normally, you would just call $top-
new_object(...)> once the database was open (as above), but sometimes you really need the database to be created already. Inherit the class and override the boot
method.
sub boot {
my ($o) = @_;
require E::Icache;
$$o{icache} ||= E::Icache->new($o->create_segment('icache'));
require E::Basket;
$$o{baskets} ||= E::BasketTable->new($o->create_segment('baskets'));
}
SEE ALSO
osperlserver, ObjStore::Process
, ObjStore::notify