edu.isi.pegasus.planner.transfer.mapper
public interface OutputMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION
The version of the API of the Output Mapper
|
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Returns a short description of the mapper.
|
void |
initialize(PegasusBag bag,
ADag workflow)
Initializes the mappers.
|
String |
map(String lfn,
String site,
FileServerType.OPERATION operation)
Maps a LFN to a location on the filsystem of a site and returns a single
externally accessible URL corresponding to that location.
|
String |
map(String lfn,
String site,
FileServerType.OPERATION operation,
boolean existing)
Maps a LFN to a location on the filsystem of a site and returns a single
externally accessible URL corresponding to that location.
|
List<String> |
mapAll(String lfn,
String site,
FileServerType.OPERATION operation)
Maps a LFN to a location on the filsystem of a site and returns all the possible
equivalent externally accessible URL corresponding to that location.
|
static final String VERSION
void initialize(PegasusBag bag, ADag workflow) throws MapperException
bag - the bag of objects that is useful for initialization.workflow - the workflow refined so far.MapperException - if unable to construct URL for any reasonString map(String lfn, String site, FileServerType.OPERATION operation) throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLMapperException - if unable to construct URL for any reasonString map(String lfn, String site, FileServerType.OPERATION operation, boolean existing) throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLexisting - indicates whether to create a new location/placement for a file,
or rely on existing placement on the site.MapperException - if unable to construct URL for any reasonList<String> mapAll(String lfn, String site, FileServerType.OPERATION operation) throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLMapperException - if unable to construct URL for any reasonString description()