[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] GenericBatch query



Hi Amit,

I think we removed the preferredProtocols setting from the batch file because it shouldn't be necessary if the server's information is registered properly.

Every siteinfo.bin file contains a list of servers, their ports, protocols and functions. This file is what is registered with your prefix in the root handle system. One siteinfo file might contain the following information:
- IP Address: 123.123.123.123
- Public Key: ...
- Interface 1: port=2641; protocol=HDL-TCP; function=Admin+Resolution
- Interface 2: port=2641; protocol=HDL-UDP; function=Admin+Resolution
- Interface 3: port=8000; protocol=HDL-HTTP; function=Admin +Resolution


If the server is not accessible via UDP then Interface 2 should be removed from the site information. This is done automatically if you answer yes to the "disable UDP" question during server setup.

It sounds like your UDP interface needs to be removed from your siteinfo.bin file (and your record in the handle service). If you tell me your prefix I can probably help you do this.

Thanks,
Sean

On Apr 26, 2007, at 12:35 AM, Amit Chaudhary wrote:

Hi All,

We are using class net.handle.apps.batch.GenericBatch in our application for batch Handle updates.
Our handle server is set up to take TCP packets only and as a result we usually set the preferred protocols as TCP in the Handle resolver.


Looking inside GenericBatch constructors it constructs its own resolver and doesn't allow the user to set the preferred protocols as a result the application is
delayed cause first the UDP packages are sent and then TCP to the handle server.


Line 102 in the GenericBatch is commented out which would have solved the purpose.
//this.resolver.setPreferredProtocols(new int[] { Interface.SP_HDL_TCP, Interface.SP_HDL_HTTP });


Do we need to modify the GenericBatch file and bundle again into handle.jar and then use it or is there any better way which we may be missing out ?

--
kind regards,

Amit Chaudhary.
Senior Developer,
PILIN Project, ARROW
Monash University Library
Building 4
Monash University VIC 3800 Australia
Tel   :  (+61 3) 9902 0344
Email :  amit.chaudhary@lib.monash.edu.au


_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info



_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info