[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geclipse-dev] Get specific Services from info system
|
Mateusz Pabis' wrote:
What I'm looking forward is to have an easy way to figure out what is
the endpoint for the SRM service on host abc.somwhere.com.
I am thinking of adding the following method in the BDIIService class
which is the info service for the projects with voms vo:
public IGridService[] queryService( final String serviceType, // the
type of the service for example SRM for srm 2.
final String
hostName) // the hostname.
The above method will return all the services with the specific
serviceType that belong to the specific hostName and are supported by
the currentVO. If serviceType or hostName are null, they are not taken
under account. For example by calling queryService(null,
"plethon.grid.ucy.ac.cy") you will get all the two srm services of plethon.
You can get the endpoint of it with the following code:
IGridService[] resultArray;
resultArray = this.queryService( null, "plethon.grid.ucy.ac.cy" );
GridGlueService myService = (GridGlueService) resultArray[0];
String myEndpoint = myService.getGlueService().endpoint;
I don't think you will add any additional dependencies as
GridGlueService is on eu.geclipse.info plugin and you should already a
dependency to it. Is that satisfactory?
Any comments or suggestions are welcome.
Thanks,
Nick.