[seek-dev] get operation in ecogrid query

Jing Tao tao at nceas.ucsb.edu
Tue Dec 2 14:58:41 PST 2003


Hi, everyone:

After struggling with some issues, the framework of get operation in  
ecogrid query interface is almost done(I have not implmented read document 
from metacat part, but that is not hard). Before I do that, I would 
like to get some response.

The get method looks like: 

int get(URI source, URI destination, String identifier).

This method is base on gsiftp and will return 1 if transfer successfully, 
otherwise return 0. Besides server to client transfer, this method also 
support third party transfer (ftp sever to another ftp server) too.

Now the query porttype is secured because running gsiftp need the user's 
credential. So user should have a certification if he need to run the 
client.

Some issues:
1.
The tansfer is base on file system. For example, you call the method like 
this way: 
URI source = new URI("gsiftp://pine.nceas.ucsb.edu:5678");
URI dest   = new URI("file:///tmp/file1");
get(source, dest, "tao.11.1");

Metacat would like read tao.11.1 from database and write it to a file. 
Then gsiftp server will transfer this file  to local file /tmp/file1. It has 
lot of I/Os. Maybe this way is good for srb (they store data as file). 

2.
In the code, System.out.println is used for debug info. I am think if we 
need a debug class for whole seek java code or for ecogrid java code?

Any comments and suggestion are appreciated!

Jing


-- 
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101





More information about the Seek-dev mailing list