gov.bnl.star.offline.scheduler.informationService
Class GridCat

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.informationService.GridCat
All Implemented Interfaces:
InformationService

public class GridCat
extends java.lang.Object
implements InformationService

This class is an information service that recovers data from gridcat via XmlRpc.

Author:
Levente B. Hajdu

Constructor Summary
GridCat()
          Creates a new instance of GridCat
 
Method Summary
 java.lang.String getAppDir()
           
 java.lang.String getDataDir()
           
 java.lang.String getGKGlobusDir()
           
 java.lang.String getService()
           
 java.lang.String getSiteID()
           
 java.lang.String getSiteInfo(java.lang.String site, java.lang.String info)
          The most basic member used to recover data from the information service
 java.lang.String getWNClient()
           
 java.lang.String getWNTmpDir()
           
 void setService(java.lang.String service)
          sets the url to the service.
 void setSiteID(java.lang.String siteID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridCat

public GridCat()
Creates a new instance of GridCat

Method Detail

setService

public void setService(java.lang.String service)
sets the url to the service. Example: http://osg-cat.grid.iu.edu/services.php

Specified by:
setService in interface InformationService
Parameters:
service - A string holding the URL of the service

getService

public java.lang.String getService()
Specified by:
getService in interface InformationService
Returns:
A string holding the URL of the service

setSiteID

public void setSiteID(java.lang.String siteID)
Specified by:
setSiteID in interface InformationService
Parameters:
siteID - A string holding the gridcat site name for with the data will be recoved

getSiteID

public java.lang.String getSiteID()
Specified by:
getSiteID in interface InformationService
Returns:
A string holding the gridcat site name for with the data will be recoved

getSiteInfo

public java.lang.String getSiteInfo(java.lang.String site,
                                    java.lang.String info)
Description copied from interface: InformationService
The most basic member used to recover data from the information service

Specified by:
getSiteInfo in interface InformationService
Parameters:
site - a string used to identify the site to the information service
info - the requested information service parameter name
Returns:
data recoved from information service, always formated as a string (even numbers)

getAppDir

public java.lang.String getAppDir()
Specified by:
getAppDir in interface InformationService
Returns:
The OSG $app location

getDataDir

public java.lang.String getDataDir()
Specified by:
getDataDir in interface InformationService
Returns:
The OSG $data location

getWNTmpDir

public java.lang.String getWNTmpDir()
Specified by:
getWNTmpDir in interface InformationService
Returns:
The temp dir on the worked node

getGKGlobusDir

public java.lang.String getGKGlobusDir()
Specified by:
getGKGlobusDir in interface InformationService
Returns:
The Globus gatekeeper folder

getWNClient

public java.lang.String getWNClient()
Specified by:
getWNClient in interface InformationService
Returns:
The OSG client folder on each worker node


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.