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

Annotation of /Sprout/SapServerTest4.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (view) (download) (as text)

1 : parrello 1.1 ### Test program for Ross's project.
2 :    
3 :     use strict;
4 :     use SeedEnv;
5 :     use Tracer;
6 : parrello 1.2 use Sapling;
7 :     use ALITREserver;
8 : parrello 1.1
9 : parrello 1.2 my ($sap, $sapObject, $altObject);
10 :     if ($ENV{SAS_SERVER} eq 'localhost') {
11 : parrello 1.5 $sap = Sapling->new(dbName => 'pubseed_sapling_10', dbhost => 'localhost', port => 3333);
12 : parrello 1.2 # $sap = Sapling->new(dbName => 'pseed_sapling_07', dbhost => 'localhost', port => 3333);
13 :     $sapObject = SAPserver->new(sapDB => $sap, url => 'localhost');
14 : parrello 1.5 $altObject = ALITREserver->new(sapDB => $sap, url => 'localhost');
15 : parrello 1.3 $FIG_Config::orgCache = "P:/vol/public-pseed/SharedData/OrgCache";
16 : parrello 1.5 $FIG_Config::attrHost = "localhost";
17 :     $FIG_Config::attrPort = 3333;
18 : parrello 1.2 } else {
19 :     $sapObject = SAPserver->new();
20 : parrello 1.4 # $altObject = ALITREserver->new();
21 : parrello 1.2 }
22 : parrello 1.5 my $start = time;
23 :     my $result = $sapObject->ids_to_publications(-ids => 'fig|83333.1.peg.4');
24 :     my $duration = time - $start;
25 :     print "$duration seconds\n";
26 : parrello 1.1 1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3