Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geclipse-dev] Get specific Services from info system

Nick Tsioutsias pisze:
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?

I need one more method, which is similar to this one, probably it looks like:
public IGridStorage queryStorage( final String hostname )

I need it, because only from storage I can get home directory, which is somehow essential to properly mount SRM service.

But this leads to the situation that I have to integrate these information in EFS plugin, which is not a problem, but I think it should be done somewhere between eu.geclipse.info and eu.geclipse.efs

--
Mateusz Pabis


Back to the top