edu.isi.pegasus.planner.catalog.site.classes
Class VORSSiteCatalogUtil

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.classes.VORSSiteCatalogUtil

public class VORSSiteCatalogUtil
extends Object


Field Summary
private static LogManager mLogger
           
 
Constructor Summary
VORSSiteCatalogUtil()
           
 
Method Summary
static HeadNodeFS createHeadNodeFS(VORSSiteInfo sitInfo)
          Creates an object describing the head node filesystem.
static SiteCatalogEntry createSiteCatalogEntry(VORSSiteInfo sitInfo)
          Creates a Pegasus SiteCatalogEntry object from the information in VORS.
static WorkerNodeFS createWorkerNodeFS(VORSSiteInfo sitInfo)
          Creates an object describing the worker node filesystem.
static List<VORSVOInfo> get_sites_in_grid(String host, String port, String vo, String grid)
           
static VORSSiteInfo get_sites_info(String host, String port, String vo, String grid, String id)
           
static String getGsiftp(VORSSiteInfo sitInfo)
           
static VORSSiteInfo getLocalSiteInfo(String vo)
           
private static GridGateway.SCHEDULER_TYPE getSchedulerType(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLogger

private static LogManager mLogger
Constructor Detail

VORSSiteCatalogUtil

public VORSSiteCatalogUtil()
Method Detail

get_sites_in_grid

public static List<VORSVOInfo> get_sites_in_grid(String host,
                                                 String port,
                                                 String vo,
                                                 String grid)

get_sites_info

public static VORSSiteInfo get_sites_info(String host,
                                          String port,
                                          String vo,
                                          String grid,
                                          String id)

getLocalSiteInfo

public static VORSSiteInfo getLocalSiteInfo(String vo)

getGsiftp

public static String getGsiftp(VORSSiteInfo sitInfo)

createSiteCatalogEntry

public static SiteCatalogEntry createSiteCatalogEntry(VORSSiteInfo sitInfo)
Creates a Pegasus SiteCatalogEntry object from the information in VORS. The following coventions are followed for determining the worker node and storage node directories.
 head node shared -> data_loc
 head node local -> tmp_loc
 worker node shared ->data_loc
 worker node local -> wntmp_loc
 

Parameters:
sitInfo -
Returns:
SiteCatalogEntry object.

getSchedulerType

private static GridGateway.SCHEDULER_TYPE getSchedulerType(String url)

createHeadNodeFS

public static HeadNodeFS createHeadNodeFS(VORSSiteInfo sitInfo)
Creates an object describing the head node filesystem. The following conventions are followed.
        shared:
            scratch data_loc
            storage data_loc
        local:   
            scratch tmp_loc
            storage tmp_loc
 
 

Returns:
the HeadNodeFS

createWorkerNodeFS

public static WorkerNodeFS createWorkerNodeFS(VORSSiteInfo sitInfo)
Creates an object describing the worker node filesystem. The following conventions are followed.
  shared:
            scratch data
            storage data
        local:   
            scratch wntmp
            storage wntmp
 

Returns:
the WorkerNodeFS


Copyright © 2011 The University of Southern California. All Rights Reserved.