Package edu.isi.pegasus.planner.classes
Class PegasusBag
- java.lang.Object
-
- edu.isi.pegasus.planner.classes.PegasusBag
-
-
Field Summary
Fields Modifier and Type Field Description private LogManagermLoggerThe handle to the LogManager.private PlannerCachemPlannerCacheThe transient replica catalog that tracks the files created or transferred during the workflowprivate PlannerMetricsmPMetricsThe planner metrics to use.private PlannerOptionsmPOptionsThe options passed to the planner.private PegasusPropertiesmPropsThe handle to thePegasusProperties.private ReplicaCatalogmRCHandleThe handle to the replica catalog.private SiteStoremSiteStoreThe site store containing the sites that need to be used.private TransformationCatalogmTCHandleThe handle to the transformation catalog.private MappermTCMapperThe handle to the Transformation Mapper.private booleanmUsesPMCA boolean indicating whether we use PMC or notprivate java.util.Map<java.lang.String,java.lang.String>mWorkerPackageMapWorker Package Map, that indexes execution site with the location of the corresponding worker package in the submit directorystatic java.lang.String[]PEGASUS_INFOArray storing the names of the attributes that are stored with the site.static java.lang.IntegerPEGASUS_LOGMANAGERThe constant to be passed to the accessor functions to get or set the handle to the Logging managerstatic java.lang.IntegerPEGASUS_PROPERTIESThe constant to be passed to the accessor functions to get or set the PegasusProperties.static java.lang.IntegerPLANNER_CACHEThe constant to be passed to the accessor functions to get or set the handle to the planner cache for planning purposes.static java.lang.IntegerPLANNER_METRICSThe constant to be passed to the accessor functions to get or set the the planner metrics that are logged during the planning purposestatic java.lang.IntegerPLANNER_OPTIONSThe constant to be passed to the accessor functions to get or set the options passed to the planner.static java.lang.IntegerREPLICA_CATALOGThe constant to be passed to the accessor functions to get or set the handle to the replica catalogstatic java.lang.IntegerSITE_CATALOGThe constant to be passed to the accessor functions to get or set the handle to the site catalog.static java.lang.IntegerSITE_STOREThe constant to be passed to the accessor functions to get or set the handle to the Site Storestatic java.lang.IntegerTRANSFORMATION_CATALOGThe constant to be passed to the accessor functions to get or set the handle to the transformation catalog.static java.lang.IntegerTRANSFORMATION_MAPPERThe constant to be passed to the accessor functions to get or set the handle to the Transformation Mapper.static java.lang.IntegerUSES_PMCThe constant to be passed to the accessor functions to get or set the whether the planner used PMC or notstatic java.lang.IntegerWORKER_PACKAGE_MAPThe constant to be passed to the accessor functions to get or set the handle to the worker package maps
-
Constructor Summary
Constructors Constructor Description PegasusBag()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Object key, java.lang.Object value)Adds an object to the underlying bag corresponding to a particular key.booleancontainsKey(java.lang.Object key)Returns true if the namespace contains a mapping for the specified key.java.lang.Objectget(java.lang.Object key)Returns an objects corresponding to the key passed.PlannerCachegetHandleToPlannerCache()A convenice method to get the handle to the planner cacheSiteStoregetHandleToSiteStore()A convenice method to get the handle to the site storeTransformationCataloggetHandleToTransformationCatalog()A convenice method to get the handle to the transformation catalog.MappergetHandleToTransformationMapper()A convenice method to get the handle to the transformation mapper.private intgetIntValue(java.lang.Object key)A convenience method to get the intValue for the object passed.LogManagergetLogger()A convenice method to get Logger/PegasusPropertiesgetPegasusProperties()A convenice method to get PegasusPropertiesPlannerOptionsgetPlannerOptions()A convenice method to get PlannerOptionsjava.util.Map<java.lang.String,java.lang.String>getWorkerPackageMap()A convenice method to get the worker packagebooleanplannerUsesPMC()A convenice method to return whether the planner used PMC or not
-
-
-
Field Detail
-
PEGASUS_INFO
public static final java.lang.String[] PEGASUS_INFO
Array storing the names of the attributes that are stored with the site.
-
PEGASUS_PROPERTIES
public static final java.lang.Integer PEGASUS_PROPERTIES
The constant to be passed to the accessor functions to get or set the PegasusProperties.
-
PLANNER_OPTIONS
public static final java.lang.Integer PLANNER_OPTIONS
The constant to be passed to the accessor functions to get or set the options passed to the planner.
-
REPLICA_CATALOG
public static final java.lang.Integer REPLICA_CATALOG
The constant to be passed to the accessor functions to get or set the handle to the replica catalog
-
SITE_CATALOG
public static final java.lang.Integer SITE_CATALOG
The constant to be passed to the accessor functions to get or set the handle to the site catalog.
-
TRANSFORMATION_CATALOG
public static final java.lang.Integer TRANSFORMATION_CATALOG
The constant to be passed to the accessor functions to get or set the handle to the transformation catalog.
-
TRANSFORMATION_MAPPER
public static final java.lang.Integer TRANSFORMATION_MAPPER
The constant to be passed to the accessor functions to get or set the handle to the Transformation Mapper.
-
PEGASUS_LOGMANAGER
public static final java.lang.Integer PEGASUS_LOGMANAGER
The constant to be passed to the accessor functions to get or set the handle to the Logging manager
-
SITE_STORE
public static final java.lang.Integer SITE_STORE
The constant to be passed to the accessor functions to get or set the handle to the Site Store
-
PLANNER_CACHE
public static final java.lang.Integer PLANNER_CACHE
The constant to be passed to the accessor functions to get or set the handle to the planner cache for planning purposes.
-
WORKER_PACKAGE_MAP
public static final java.lang.Integer WORKER_PACKAGE_MAP
The constant to be passed to the accessor functions to get or set the handle to the worker package maps
-
USES_PMC
public static final java.lang.Integer USES_PMC
The constant to be passed to the accessor functions to get or set the whether the planner used PMC or not
-
PLANNER_METRICS
public static final java.lang.Integer PLANNER_METRICS
The constant to be passed to the accessor functions to get or set the the planner metrics that are logged during the planning purpose
-
mProps
private PegasusProperties mProps
The handle to thePegasusProperties.
-
mPOptions
private PlannerOptions mPOptions
The options passed to the planner.
-
mRCHandle
private ReplicaCatalog mRCHandle
The handle to the replica catalog.
-
mTCHandle
private TransformationCatalog mTCHandle
The handle to the transformation catalog.
-
mTCMapper
private Mapper mTCMapper
The handle to the Transformation Mapper.
-
mLogger
private LogManager mLogger
The handle to the LogManager.
-
mSiteStore
private SiteStore mSiteStore
The site store containing the sites that need to be used.
-
mPlannerCache
private PlannerCache mPlannerCache
The transient replica catalog that tracks the files created or transferred during the workflow
-
mWorkerPackageMap
private java.util.Map<java.lang.String,java.lang.String> mWorkerPackageMap
Worker Package Map, that indexes execution site with the location of the corresponding worker package in the submit directory
-
mUsesPMC
private boolean mUsesPMC
A boolean indicating whether we use PMC or not
-
mPMetrics
private PlannerMetrics mPMetrics
The planner metrics to use.
-
-
Method Detail
-
add
public boolean add(java.lang.Object key, java.lang.Object value)Adds an object to the underlying bag corresponding to a particular key.
-
containsKey
public boolean containsKey(java.lang.Object key)
Returns true if the namespace contains a mapping for the specified key.- Specified by:
containsKeyin interfaceBag- Parameters:
key- The key that you want to search for in the bag.- Returns:
- boolean
-
get
public java.lang.Object get(java.lang.Object key)
Returns an objects corresponding to the key passed.
-
getPlannerOptions
public PlannerOptions getPlannerOptions()
A convenice method to get PlannerOptions- Returns:
- the handle to options passed to the planner.
-
getPegasusProperties
public PegasusProperties getPegasusProperties()
A convenice method to get PegasusProperties- Returns:
- the handle to the properties.
-
getLogger
public LogManager getLogger()
A convenice method to get Logger/- Returns:
- the handle to the logger.
-
getHandleToSiteStore
public SiteStore getHandleToSiteStore()
A convenice method to get the handle to the site store- Returns:
- the handle to site store
-
getHandleToPlannerCache
public PlannerCache getHandleToPlannerCache()
A convenice method to get the handle to the planner cache- Returns:
- the handle to transient replica catalog
-
getHandleToTransformationCatalog
public TransformationCatalog getHandleToTransformationCatalog()
A convenice method to get the handle to the transformation catalog.- Returns:
- the handle to transformation catalog
-
getHandleToTransformationMapper
public Mapper getHandleToTransformationMapper()
A convenice method to get the handle to the transformation mapper.- Returns:
- the handle to transformation catalog
-
getWorkerPackageMap
public java.util.Map<java.lang.String,java.lang.String> getWorkerPackageMap()
A convenice method to get the worker package- Returns:
- the handle to worker package map
-
plannerUsesPMC
public boolean plannerUsesPMC()
A convenice method to return whether the planner used PMC or not- Returns:
- boolean indicating whether PMC was used or not
-
getIntValue
private int getIntValue(java.lang.Object key)
A convenience method to get the intValue for the object passed.- Parameters:
key- the key to be converted- Returns:
- the int value if object an integer, else -1
-
-