perfsonar-dev - Re: [pS-dev] Questions about implementing LS registration
Subject: perfsonar development work
List archive
- From: Guilherme Fernandes <>
- To: Joost de Mes <>
- Cc:
- Subject: Re: [pS-dev] Questions about implementing LS registration
- Date: Tue, 13 Feb 2007 13:38:11 -0200
Hi,
If the Flow MP is a JAVA service then you can use the generic LS Registration Component. I think we don't have this information on the wiki yet, so I'm forwarding the last email sent about how to properly configure your service to register with this component. If you want to send extra information (e.g. MA's send their configuration files as data), just set the service.ls.registration_file variable to point to the the xml that contains this information. It should be important to notice that the xml files used by the MA's for LS Registration are optional for this task.
Guilherme
Joost de Mes wrote:
Hi,
Currently i'm working on a flowmp service. At the moment I'm trying to find out how i can implement service registration to the lookup service. The wiki contains information about the actual LSRegistrationRequests and responses, but i can't really find any information about how to implement it for my service.
RRDMA and SQLMA have working ls registration, and work with xml description files in /perfsonar/conf/rrd-database_TEST.xml and /perfsonar/conf/sql-database_TEST.xml.
My questions:
- How are these files created (generated, or manually written)?
- If manually written, where (wiki page?) can i find out how to write this xml file?
- Is there any documentation on implementing LS registration using org.perfsonar.service.commons.registration.GenericServiceLSRegistrator?
Joost de Mes
--- Begin Message ---Hi,
- From: Guilherme Fernandes <>
- To: Stijn Verstichel <>
- Cc:
- Subject: Re: [Fwd: Re: [pS-dev] Registering with LS]
- Date: Tue, 21 Nov 2006 16:04:07 -0200
- List-archive: <https://mail.internet2.edu/wws/arc/perfsonar-dev>
- List-id: <perfsonar-dev.internet2.edu>
I just commited the changes to make LS registration without a xml file viable. In this case, the following should be configured:
In component.properties:
scheduler=org.perfsonar.commons.auxiliary.components.simplescheduler.Scheduler
registrator=org.perfsonar.service.commons.registration.LSRegistrationComponent
In service.properties:
component.registrator.interval=<Registration interval (this shouldn't be set too low, I use 300000>
component.registrator.scheduler_component=scheduler
service.r.ls_url=<LS URL> (e.g. http://200.128.80.172:8080/axis/services/LookupService)
service.r.access_point=<Service URL> (e.g. http\://200.237.192.9\:8080/axis/services/CLMPService )
service.r.service_name=<Service Name> (e.g. CLMP)
service.r.service_description=<Service Description> (e.g. CLMP Test)
service.r.service_type=<Service Type> (e.g. CLMP)
service.ls.registration_file=
The last parameter is necessary, even if blank. If it has no value then it will only use the service.r parameters above, if it has the path to a registration file (the xml file you were saying) then it will use that file for registration.
I think that's all that is needed, any problems ask.
Guilherme
Stijn Verstichel wrote:
Hi Guilherme ,
Maciej forwarded my to you with regard to the question below. Could you provide me with an answer to this question?
Regards,
Stijn
-------- Original Message --------
Subject: Re: [pS-dev] Registering with LS
Date: Tue, 21 Nov 2006 11:00:14 +0100
From: Maciej Glowiak
<>
Organization: Poznan Supercomputing and Networking Center
To: Stijn Verstichel
<>
CC:
,
References:
<>
Stijn Verstichel wrote:
Hi All,
I have a question for the Lookup Service developers, but could be of interest to all of you. As things stand in the SSH/Telnet MP, the complete configuration of the service sits in the service.properties file. Currently, while tying to register the service with the LS, I used the code from the Wiki, we are having some problems.
try {
ServiceLSRegistrator registrator = new GenericServiceLSRegistrator
(new PropertiesServiceDescription(),
new InformationXMLFileServiceContent("?????"));
registrator.initRegistrator();
Message responseMessage = registrator.register("http://selena.acad.bg:8070/axis/services/LookupService");
} catch (PerfSONARException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
The problem is that we don't have an XML file, and actually I don't quite get what is supposed to be described in that file.
Could someone shed some light on this?
Cheers,
Stijn
Hi Stijn,
Recently we had discussion with Guilherme () who made some changes to the LS registration that it could accept registration without configuration file.
I am not sure if he commited his changes (I think he did not), but you could contact Guilherme directly and ask him if he is going to commit the changes.
Maciej
--- End Message ---
- Re: [pS-dev] Questions about implementing LS registration, Guilherme Fernandes, 02/13/2007
Archive powered by MHonArc 2.6.16.