001    /*
002     * informationService.java
003     *
004     * Created on June 16, 2006, 11:10 AM
005     *
006     * This file is part of the STAR Scheduler.
007     * Copyright (c) 2002-2006 STAR Collaboration - Brookhaven National Laboratory
008     *
009     * STAR Scheduler is free software; you can redistribute it and/or modify
010     * it under the terms of the GNU General Public License as published by
011     * the Free Software Foundation; either version 2 of the License, or
012     * (at your option) any later version.
013     *
014     * STAR Scheduler is distributed in the hope that it will be useful,
015     * but WITHOUT ANY WARRANTY; without even the implied warranty of
016     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
017     * GNU General Public License for more details.
018     *
019     * You should have received a copy of the GNU General Public License
020     * along with STAR Scheduler; if not, write to the Free Software
021     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
022     *
023     */
024    
025    package gov.bnl.star.offline.scheduler.informationService;
026    
027    /**
028     * The base interface for all infromation services.
029     * @author Levente B. Hajdu
030     */
031    public interface InformationService {
032        
033           
034           /** @param siteID a string used to identify the site to the information service **/
035           public void setSiteID(String siteID);
036           /** @return a string used to identify the site with in the  information service **/
037           public String getSiteID();
038        
039           /** @param service the url of the service **/
040           public void setService(String service);
041           /** @return the url of the service **/
042           public String getService();
043       
044           /** 
045            * The most basic member used to recover data from the information service
046            * @param site a string used to identify the site to the information service
047            * @param info the requested information service parameter name 
048            * @return data recoved from information service, always formated as a string (even numbers)
049            **/
050           public String getSiteInfo(String site, String info);
051           
052           /** @return The OSG $app location*/
053           public String getAppDir();
054           /** @return The OSG $data location*/
055           public String getDataDir();
056           /** @return The temp dir on the worked node*/
057           public String getWNTmpDir();
058           /** @return The OSG client folder on each worker node*/
059           public String getWNClient();
060           /** @return The Globus gatekeeper folder */
061           public String getGKGlobusDir(); 
062           
063           
064           
065        
066    }