edu.isi.pegasus.planner.common
public class Shiwa extends Object
| Modifier and Type | Field and Description |
|---|---|
private LogManager |
mLogger
The handle to pegasus logger
|
static String |
PROPERTIES_LFN |
static String |
REPLICA_CATALOG_IMPLEMENTER
The name of the Replica Catalog Implementer to which port and output
locations are written out from the bundle
|
static String |
REPLICA_CATALOG_KEY
The name of the source key for Replica Catalog Implementer t
|
static String |
SITE_CATALOG_LFN |
static String |
TRANSFORMATION_CATALOG_LFN |
| Constructor and Description |
|---|
Shiwa(LogManager logger)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPortsToReplicaCatalog(ReplicaCatalog rc,
Collection<org.shiwa.desktop.data.description.handler.TransferPort> ports,
boolean inputPort)
Adds the ports specified in the bundle to the replica catalog file.
|
String |
generateReplicaCatalogFile(org.shiwa.desktop.data.description.handler.TransferSignature signature,
File directory)
Generates a Replica Catalog file based on the input and output ports in
the Shiwa Bundle
|
void |
readBundle(String shiwaBundle,
PegasusProperties properties,
PlannerOptions options)
Untars a shiwa bundle and updates the properties and options to refer to
the contents of the bundle
|
public static final String PROPERTIES_LFN
public static final String SITE_CATALOG_LFN
public static final String TRANSFORMATION_CATALOG_LFN
public static final String REPLICA_CATALOG_KEY
public static final String REPLICA_CATALOG_IMPLEMENTER
private LogManager mLogger
public Shiwa(LogManager logger)
logger - public void readBundle(String shiwaBundle, PegasusProperties properties, PlannerOptions options)
shiwaBundle - the SHIWA Bundleproperties - the properties object that is updatedoptions - the planner options that are updatedpublic String generateReplicaCatalogFile(org.shiwa.desktop.data.description.handler.TransferSignature signature, File directory)
signature - the transfer signature for the SHIWA Bundledirectory - the directory in which the replica catalog should be
generatedpublic void addPortsToReplicaCatalog(ReplicaCatalog rc, Collection<org.shiwa.desktop.data.description.handler.TransferPort> ports, boolean inputPort)
rc - handle to the replica catalogports - the collection of portsinputPort - boolean indicating whether the ports passed are input ports