org.griphyn.cPlanner.selector.site
Class Abstract

java.lang.Object
  extended by org.griphyn.cPlanner.selector.site.Abstract
All Implemented Interfaces:
SiteSelector
Direct Known Subclasses:
AbstractPerJob, Group, Heft

public abstract class Abstract
extends Object
implements SiteSelector

The Abstract Site selector.

Version:
$Revision: 298 $
Author:
Karan Vahi, Jens-S. V??ckler, Gaurang Mehta

Field Summary
protected  PegasusBag mBag
          The bag of Pegasus objects.
protected  LogManager mLogger
          The handle to the logger.
protected  PegasusProperties mProps
          The properties passed to Pegasus at runtime.
protected  PoolInfoProvider mSCHandle
          The handle to the site catalog.
protected  Mapper mTCMapper
          The handle to the TCMapper object.
 
Fields inherited from interface org.griphyn.cPlanner.selector.SiteSelector
SITE_NOT_FOUND, VERSION
 
Constructor Summary
Abstract()
           
 
Method Summary
 void initialize(PegasusBag bag)
          Initializes the site selector.
 void mapWorkflow(ADag workflow, List sites)
          Maps the jobs in the workflow to the various grid sites.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.griphyn.cPlanner.selector.SiteSelector
description, mapWorkflow
 

Field Detail

mProps

protected PegasusProperties mProps
The properties passed to Pegasus at runtime.


mLogger

protected LogManager mLogger
The handle to the logger.


mSCHandle

protected PoolInfoProvider mSCHandle
The handle to the site catalog.


mTCMapper

protected Mapper mTCMapper
The handle to the TCMapper object.


mBag

protected PegasusBag mBag
The bag of Pegasus objects.

Constructor Detail

Abstract

public Abstract()
Method Detail

initialize

public void initialize(PegasusBag bag)
Initializes the site selector.

Specified by:
initialize in interface SiteSelector
Parameters:
bag - the bag of objects that is useful for initialization.

mapWorkflow

public void mapWorkflow(ADag workflow,
                        List sites)
Maps the jobs in the workflow to the various grid sites. The jobs are mapped by setting the site handle for the jobs.

Specified by:
mapWorkflow in interface SiteSelector
Parameters:
workflow - the workflow.
sites - the list of String objects representing the execution sites that can be used.


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