[Bio] / Sprout / SapServerTest4.pl Repository:
ViewVC logotype

View of /Sprout/SapServerTest4.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (download) (as text) (annotate)
Mon Jan 16 20:05:49 2012 UTC (7 years, 9 months ago) by parrello
Branch: MAIN
Changes since 1.4: +8 -5 lines
KBase reorg.

### Test program for Ross's project.

use strict;
use SeedEnv;
use Tracer;
use Sapling;
use ALITREserver;

    my ($sap, $sapObject, $altObject);
    if ($ENV{SAS_SERVER} eq 'localhost') {
        $sap = Sapling->new(dbName => 'pubseed_sapling_10', dbhost => 'localhost', port => 3333);
#        $sap = Sapling->new(dbName => 'pseed_sapling_07', dbhost => 'localhost', port => 3333);
        $sapObject = SAPserver->new(sapDB => $sap, url => 'localhost');
        $altObject = ALITREserver->new(sapDB => $sap, url => 'localhost');
        $FIG_Config::orgCache = "P:/vol/public-pseed/SharedData/OrgCache";
        $FIG_Config::attrHost = "localhost";
        $FIG_Config::attrPort = 3333;
    } else {
        $sapObject = SAPserver->new();
#        $altObject = ALITREserver->new();
    }
    my $start = time;
    my $result = $sapObject->ids_to_publications(-ids => 'fig|83333.1.peg.4');
    my $duration = time - $start;
    print "$duration seconds\n";
1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3