edu.isi.pegasus.planner.catalog.site.impl.myosg.util
Class MYOSGSiteCatalogUtil

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.impl.myosg.util.MYOSGSiteCatalogUtil

public class MYOSGSiteCatalogUtil
extends Object

Utility class for converting the Facade object to SiteCatalogEntry object

Author:
Pt

Field Summary
private static LogManager mLogger
           
 
Constructor Summary
MYOSGSiteCatalogUtil()
           
 
Method Summary
static HeadNodeFS createHeadNodeFS(MYOSGSiteInfoFacade sitInfo)
          Creates an object describing the head node filesystem.
static SiteCatalogEntry createSiteCatalogEntry(MYOSGSiteInfoFacade sitInfo)
          Creates a Pegasus SiteCatalogEntry object from the information in VORS.
static WorkerNodeFS createWorkerNodeFS(MYOSGSiteInfoFacade sitInfo)
          Creates an object describing the worker node filesystem.
static String getGsiftp(MYOSGSiteInfoFacade sitInfo)
           
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

MYOSGSiteCatalogUtil

public MYOSGSiteCatalogUtil()
Method Detail

getGsiftp

public static String getGsiftp(MYOSGSiteInfoFacade sitInfo)

createSiteCatalogEntry

public static SiteCatalogEntry createSiteCatalogEntry(MYOSGSiteInfoFacade 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(MYOSGSiteInfoFacade 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(MYOSGSiteInfoFacade 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.